Vulnerability · Published Mar 12, 2025 · Assigned by GitHub_M

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

Critical 9.1

In plain English

A critical-severity code injection in graphql-ruby from rmosolgo. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 3.1% (higher than 88% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)9.1Critical
Exploit odds (30 days)3.1%top 12.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack tooling1Public PoC

Official 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 & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12ruby-graphqlno fix listedDEBIAN-CVE-2025-27407
Debian:13ruby-graphql2.2.17-1DEBIAN-CVE-2025-27407
Debian:14ruby-graphql2.2.17-1DEBIAN-CVE-2025-27407
RubyGemsgraphql2.1.15GHSA-q92j-grw3-h492
RubyGemsgraphql2.0.32GHSA-q92j-grw3-h492
RubyGemsgraphql1.13.24GHSA-q92j-grw3-h492
RubyGemsgraphql1.12.25GHSA-q92j-grw3-h492
RubyGemsgraphql1.11.11GHSA-q92j-grw3-h492
RubyGemsgraphql2.4.13GHSA-q92j-grw3-h492
RubyGemsgraphql2.3.21GHSA-q92j-grw3-h492
RubyGemsgraphql2.2.17GHSA-q92j-grw3-h492
Ubuntu:22.04:LTSruby-graphqlno fix listedUBUNTU-CVE-2025-27407
Ubuntu:24.04:LTSruby-graphqlno fix listedUBUNTU-CVE-2025-27407
Ubuntu:25.10ruby-graphqlno fix listedUBUNTU-CVE-2025-27407
Ubuntu:26.04:LTSruby-graphqlno fix listedUBUNTU-CVE-2025-27407
Ubuntu:26.10ruby-graphqlno fix listedUBUNTU-CVE-2025-27407

Affected products (as reported)

VendorProductVersions
rmosolgo graphql-ruby >= 1.11.5, < 1.11.8>= 1.12.0, < 1.12.25>= 1.13.0, < 1.13.24>= 2.0.0, < 2.0.32>= 2.1.0, < 2.1.14>= 2.2.0, < 2.2.17>= 2.3.0, < 2.3.21

Weakness: CWE-94 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H

References