
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2025-27407 is a critical vulnerability in graphql-ruby, a Ruby implementation of GraphQL. The vulnerability affects versions starting from 1.11.5 and prior to versions 1.11.8, 1.12.25, 1.13.24, 2.0.32, 2.1.14, 2.2.17, and 2.3.21. The issue was discovered in March 2025 and allows remote code execution when loading malicious schema definitions through GraphQL::Schema.from_introspection or GraphQL::Schema::Loader.load functions (NVD, Security Online).
The vulnerability has a CVSS v3.1 base score of 9.1 (Critical) with the vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H. The issue specifically affects systems that load schemas by JSON from untrusted sources, including applications that use GraphQL::Client to load external schemas via GraphQL introspection. The vulnerability is classified as CWE-94 (Improper Control of Generation of Code) (GitHub Advisory).
The vulnerability can lead to remote code execution, potentially allowing attackers to gain full control of affected servers. With over 136 million downloads of the library, the potential impact is significant. The vulnerability could result in data breaches, system disruption, and other malicious activities (Security Online).
The vulnerability can be exploited when an attacker-controlled authenticated user account attempts to transfer a maliciously-crafted project via the Direct Transfer feature. The Direct Transfer feature is in beta stage and is disabled by default for all self-managed GitLab instances (GitLab Release).
For users who cannot immediately update, the following mitigation steps are recommended: 1) Disable migration of groups and projects by direct transfer if enabled (it is disabled by default). 2) Update to one of the patched versions: 1.11.8, 1.12.25, 1.13.24, 2.0.32, 2.1.14, 2.2.17, or 2.3.21 (GitHub Advisory).
GitLab has responded to this vulnerability by implementing patches in their versions 17.9.2, 17.8.5, and 17.7.7. They strongly recommend that all self-managed GitLab installations be upgraded to one of these versions immediately. GitLab.com has already been patched to address this vulnerability (GitLab Release).
Fix availability across major Linux distributions and their releases.
bookworm
ruby-graphql
sid
ruby-graphql: 2.2.17-1
trixie
ruby-graphql: 2.2.17-1
devel
ruby-graphql
focal (esm-apps)
ruby-graphql
jammy
ruby-graphql
jammy (esm-apps)
ruby-graphql
noble
ruby-graphql
noble (esm-apps)
ruby-graphql
resolute
ruby-graphql
resolute (esm-apps)
ruby-graphql
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."