cve.bz

CVE-2025-27407 rmosolgo graphql-ruby: Code Injection

9.0 criticalEPSS 3.1%Fix available

Critical (9.0) in rmosolgo graphql-ruby. EPSS 3.1% estimated probability of exploitation activity in the next 30 days. Fixed in graphql 1.11.11, 1.12.25, 1.13.24.

On this page
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.

Severity

CVSS 3.1

9.0 critical
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
EPSS
3.1% (unchanged from 3.1% a week ago; 3.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 88th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2025-03-12. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-94 Improper Control of Generation of Code (Code Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-27407 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-27407?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-27407?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-27407 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

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

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-q92j-grw3-h492RubyGemsgraphql>=2.4.0 <2.4.132.4.13
GHSA-q92j-grw3-h492RubyGemsgraphql>=2.3.0 <2.3.212.3.21
GHSA-q92j-grw3-h492RubyGemsgraphql>=2.2.0 <2.2.172.2.17
GHSA-q92j-grw3-h492RubyGemsgraphql>=2.1.0 <2.1.152.1.15
GHSA-q92j-grw3-h492RubyGemsgraphql>=2.0.0 <2.0.322.0.32
GHSA-q92j-grw3-h492RubyGemsgraphql>=1.13.0 <1.13.241.13.24
GHSA-q92j-grw3-h492RubyGemsgraphql>=1.12.0 <1.12.251.12.25
GHSA-q92j-grw3-h492RubyGemsgraphql>=1.11.5 <1.11.111.11.11

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11ruby-graphql1.11.12-0+deb11u1DLA-4263-1
Debian12ruby-graphqlno fix listedDEBIAN-CVE-2025-27407
Debian13, 14ruby-graphql2.2.17-1DEBIAN-CVE-2025-27407
Ubuntu20.04:LTS, 22.04:LTS, 24.04:LTS and 2 moreruby-graphqlno fix listedUBUNTU-CVE-2025-27407
Red Hatsatellite:6.14::el8rubygem-graphql0:1.13.24-1.el8satRHSA-2025:3492
Red Hatsatellite:6.14::el8, satellite_capsule:6.14::el8rubygem-rack0:2.2.13-1.el8satRHSA-2025:3492
Red Hatsatellite:6.15::el8rubygem-graphql0:1.13.24-1.el8satRHSA-2025:3491
Red Hatsatellite:6.15::el8, satellite_capsule:6.15::el8python-jinja2, python3.11-jinja20:3.1.5-1.el8pcRHSA-2025:3491
Red Hatsatellite:6.15::el8, satellite_capsule:6.15::el8rubygem-rack0:2.2.13-1.el8satRHSA-2025:3491
Red Hatsatellite:6.16::el8rubygem-graphql0:1.13.24-1.el8satRHSA-2025:3490
Red Hatsatellite:6.16::el8, satellite_capsule:6.16::el8rubygem-rack0:2.2.13-1.el8satRHSA-2025:3490
Red Hatsatellite:6.16::el9rubygem-graphql0:1.13.24-1.el9satRHSA-2025:3490
Red Hatsatellite:6.16::el9, satellite_capsule:6.16::el9rubygem-rack0:2.2.13-1.el9satRHSA-2025:3490
Red Hatsatellite:6.17::el9rubygem-graphql0:1.13.24-1.el9satRHSA-2025:4576
Red Hatsatellite:6.17::el9, satellite_capsule:6.17::el9python-django, python3.11-django0:4.2.19-1.el9pcRHSA-2025:4576
Red Hatsatellite:6.17::el9, satellite_capsule:6.17::el9python-jinja2, python3.11-jinja20:3.1.5-1.el9pcRHSA-2025:4576
1 more for Red Hat in the JSON and on Red Hat's page.

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat.

Red Hat

Red Hat rates this Important.

Red Hat's statement

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.

Red Hat's mitigation

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.

ProductPackageStateAdvisory
Red Hat Satellite 6.14 for RHEL 8rubygem-graphql-0:1.13.24-1.el8satFixed 2025-04-01RHSA-2025:3492
Red Hat Satellite 6.15 for RHEL 8rubygem-graphql-0:1.13.24-1.el8satFixed 2025-04-01RHSA-2025:3491
Red Hat Satellite 6.16 for RHEL 8rubygem-graphql-0:1.13.24-1.el8satFixed 2025-04-01RHSA-2025:3490
Red Hat Satellite 6.16 for RHEL 9rubygem-graphql-0:1.13.24-1.el9satFixed 2025-04-01RHSA-2025:3490
Red Hat Satellite 6.17 for RHEL 9rubygem-graphql-0:1.13.24-1.el9satFixed 2025-05-06RHSA-2025:4576

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-27407.

GitHub PoC

Repositories on GitHub named after this CVE or listed for it by the PoC-in-GitHub index. For those marked Harbor Check: matches CVE, Flawharbor read the code and found it implements this CVE's exploitation technique: read, not run, and its dependencies only checked for warning signs, so a pointer and no guarantee. The rest are unverified: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it. How Harbor Check reads them, and what it found.

Attack patterns (CAPEC)

  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-77 Manipulating User-Controlled Variables Likelihood: High · Severity: Very High
  • CAPEC-242 Code Injection Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON