Loading...
Skip to main content

CVE-2025-27407 — Vulnerability in graphql — CVE Details

CRITICAL

graphql allows remote code execution when loading a crafted GraphQL schema

Published March 12, 2025Updated November 3, 2025Source: osv

Summary

# Summary 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](https://github.com/github-community-projects/graphql-client) to load external schemas via GraphQL introspection.

Advisory Timeline

  • First published March 12, 2025 (579 days ago).
  • Last revised November 3, 2025 — 236 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Bundler
Update graphql to 2.3.21 or later
gem install graphql -v 2.3.21
Bundler
Update graphql to 2.1.15 or later
gem install graphql -v 2.1.15
Bundler
Update graphql to 2.2.17 or later
gem install graphql -v 2.2.17
Bundler
Update graphql to 2.0.32 or later
gem install graphql -v 2.0.32
Bundler
Update graphql to 1.11.11 or later
gem install graphql -v 1.11.11
Bundler
Update graphql to 1.12.25 or later
gem install graphql -v 1.12.25
Bundler
Update graphql to 1.13.24 or later
gem install graphql -v 1.13.24
Bundler
Update graphql to 2.4.13 or later
gem install graphql -v 2.4.13

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (8)

Affects 1 ecosystem: rubygems (1).

PackageEcosystemAffectedFixed In
graphql
rubygems
2.3.0, 2.3.1, 2.3.10, 2.3.11 (+17 more)2.3.21
graphql
rubygems
2.1.0, 2.1.1, 2.1.10, 2.1.11 (+10 more)2.1.15
graphql
rubygems
2.2.0, 2.2.1, 2.2.10, 2.2.11 (+13 more)2.2.17
graphql
rubygems
2.0.0, 2.0.1, 2.0.11, 2.0.12 (+29 more)2.0.32
graphql
rubygems
1.11.10, 1.11.5, 1.11.6, 1.11.7 (+2 more)1.11.11
graphql
rubygems
1.12.0, 1.12.1, 1.12.10, 1.12.11 (+21 more)1.12.25
graphql
rubygems
1.13.0, 1.13.1, 1.13.10, 1.13.11 (+20 more)1.13.24
graphql
rubygems
2.4.0, 2.4.1, 2.4.10, 2.4.11 (+9 more)2.4.13

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.0 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H

Frequently Asked Questions

What is CVE-2025-27407?
graphql allows remote code execution when loading a crafted GraphQL schema This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.0/10).
How do I check if my project is affected by CVE-2025-27407?
CVE-2025-27407 affects graphql. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-27407 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.0

Exploitation is straightforward and causes maximum impact. Patch immediately.

Also Known As

GHSA-q92j-grw3-h492

Related CVEs

  • CVE-2026-55107
    CRITICAL

    kobako Sandbox Escape: guest eval reaches host RCE via method_missing → public_send (any bound Service)

  • CVE-2026-77602
    CRITICAL

    OpenC3 COSMOS: Authenticated remote code execution via the user-writable config overlay (table definitions, cmd/tlm definitions, and script suites)

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies