NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
💎
💎 RubyGems
Not in CISA KEV
CRITICAL severity

CVE-2025-27407 — graphql

CRITICALFix: rmosolgo/graphql-ruby@28233b1

CVE-2025-27407 is a critical-severity (CVSS 9) Code Injection vulnerability in graphql. A fix is available for graphql — see the affected versions and patch details below.

Remote code execution when loading a crafted GraphQL schema

Also known asGHSA-q92j-grw3-h492
Published
Updated
Affected
8 pkgs
Patched
8 / 8
Exploits
None indexed
Exploitation data as of Oct 31, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

Exploitation Status

No confirmed exploitation observed yet

  • A successful exploit gives an attacker total control of the affected component, not partial access.
  • CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.

Exploitation and automatability from CISA’s SSVC triage for CVE-2025-27407.

EPSS Exploitation Probability

via FIRST.org ↗
3.1%probability of exploitation in next 30 days
Lower Risk0.00%
Lower risk than most CVEs88th percentile — riskier than 88% of all scored CVEsHighest risk
0.84%1.77%2.70%3.62%1.4%3.1%May 26Aug 26Oct 26

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

How urgent is this, really

Where this sits among everything scored

Real-World Exposure

8 pkgs affected
💎graphql💎graphql💎graphql💎graphql💎graphql💎graphql💎graphql💎graphql

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects RubyGems packages — download data is not available via public APIs for these ecosystems.

Description

graphql-ruby is a Ruby implementation of GraphQL. Starting in version 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, loading a malicious schema definition in GraphQL::Schema.from_introspection (or GraphQL::Schema::Loader.load) can result in remote code execution. Any system which loads a schema by JSON from an untrusted source is vulnerable, including those that use GraphQL::Client to load external schemas via GraphQL introspection. Versions 1.11.8, 1.12.25, 1.13.24, 2.0.32, 2.1.14, 2.2.17, and 2.3.21 contain a patch for the issue.

Affected Packages

8 total 8 fixed
EcosystemPackageVulnerable rangeFix
💎RubyGemsgraphql≥ 2.4.0&&< 2.4.132.4.13bundle update graphql --conservative
💎RubyGemsgraphql≥ 2.3.0&&< 2.3.212.3.21bundle update graphql --conservative
💎RubyGemsgraphql≥ 2.2.0&&< 2.2.172.2.17bundle update graphql --conservative
💎RubyGemsgraphql≥ 2.1.0&&< 2.1.152.1.15bundle update graphql --conservative
💎RubyGemsgraphql≥ 2.0.0&&< 2.0.322.0.32bundle update graphql --conservative
💎RubyGemsgraphql≥ 1.13.0&&< 1.13.241.13.24bundle update graphql --conservative

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for graphql, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update graphql to 2.4.13 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2025-27407 is resolved across your whole dependency graph.

  3. Workarounds

    Stop passing untrusted input into the interpreter or shell: call the affected binary with an argument array rather than a composed command string, reject anything outside a strict allowlist of expected values, and run the component under an account that cannot reach beyond the work it legitimately does.

Fixing This On Your OS

If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.

Red HatImportant

This vulnerability is marked as Important rather than Critical because interaction with the vulnerable GraphQL library is restricted to only authenticated users in Red Hat Satellite. Satellite does not dynamically load schemas from external sources, further reducing the feasibility of exploitation.

Workaround published by Red Hat
A successful exploitation of this flaw requires GraphQL schema loading. Limiting the schema loading to trusted or authenticated users will limit the impact of the vulnerability. Coupling that with a strict input validation for all GraphQL schema being loaded would reduce the risk of a successful attack and cover as a possible mitigation strategy for this vulnerability.
Source: Red Hat security advisory for CVE-2025-27407 (CC BY 4.0)
ProductFixed inAdvisory
Red Hat Satellite 6.14 for RHEL 8rubygem-graphql-0:1.13.24-1.el8satRHSA-2025:3492
Red Hat Satellite 6.15 for RHEL 8rubygem-graphql-0:1.13.24-1.el8satRHSA-2025:3491
Red Hat Satellite 6.16 for RHEL 8rubygem-graphql-0:1.13.24-1.el8satRHSA-2025:3490
Red Hat Satellite 6.17 for RHEL 9rubygem-graphql-0:1.13.24-1.el9satRHSA-2025:4576

Frequently Asked Questions

graphql-ruby is a Ruby implementation of GraphQL. Starting in version 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, loading a malicious schema definition in `GraphQL::Schema.from_introspection` (or `GraphQL::Schema::Loader.load`) can result in remote code execution. Any system which loads a schema by JSON from an untrusted source is vulnerable, including those that use GraphQL::Client to load external schemas via GraphQL introspection. Versions 1.11.8, 1.12.25, 1.13.24, 2.0.32, 2.1.14, 2.2.17, and 2.3.21 contain a patch for the issue.
O3 Security · Impact-Aware SCA

Is CVE-2025-27407 in your dependencies?

Find it across RubyGems, including transitive dependencies.

CVE-2025-27407: graphql RCE — Fixed in 2.4.13