CVEfocus › CVE database › CVE-2025-27407

CVE-2025-27407Remote code execution when loading a crafted GraphQL schema

CVSS 9.1 CriticalEPSS 3.3% (higher than 89% of CVEs)Published 2025-03-12Updated 2025-11-03Assigner: GitHub_M

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.

CWE-94

What to do

Fixed builds are available from Debian, RubyGems: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

3Fixed
3Fix pending
1Under investigation
2Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04ruby-graphqlUnder investigationUBUNTU-CVE-2025-27407
Ubuntu 25.10ruby-graphqlWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2025-27407
Ubuntu 24.04ruby-graphqlFix pendingUBUNTU-CVE-2025-27407
Ubuntu 22.04ruby-graphqlFix pendingUBUNTU-CVE-2025-27407
Ubuntu 20.04ruby-graphqlWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2025-27407
Debian 14ruby-graphqlFixed2.2.17-1DEBIAN-CVE-2025-27407
Debian 13ruby-graphqlFixed2.2.17-1DEBIAN-CVE-2025-27407
Debian 12ruby-graphqlFix pendingDEBIAN-CVE-2025-27407
RubyGems librarygraphqlFixed2.3.21GHSA-q92j-grw3-h492

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.