CVE-2025-27407 — Vulnerability in graphql — CVE Details
graphql allows remote code execution when loading a crafted GraphQL schema
Summary
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.
gem install graphql -v 2.3.21
gem install graphql -v 2.1.15
gem install graphql -v 2.2.17
gem install graphql -v 2.0.32
gem install graphql -v 1.11.11
gem install graphql -v 1.12.25
gem install graphql -v 1.13.24
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).
| Package | Ecosystem | Affected | Fixed 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.
- CWE-94Code InjectionMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.0 score means for each attack dimension.
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
References
- https://github.com/rmosolgo/graphql-ruby/security/advisories/GHSA-q92j-grw3-h492WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-27407ADVISORY
- https://github.com/rmosolgo/graphql-ruby/commit/28233b16c0eb9d0fb7808f4980e061dc7507c4cdWEB
- https://github.com/rmosolgo/graphql-ruby/commit/2d2f4ed1f79472f8eed29c864b039649e1de238fWEB
- https://github.com/rmosolgo/graphql-ruby/commit/5c5a7b9a9bdce143be048074aea50edb7bb747beWEB
- https://github.com/rmosolgo/graphql-ruby/commit/6eca16b9fa553aa957099a30dbde64ddcdac52caWEB
- https://github.com/rmosolgo/graphql-ruby/commit/d0963289e0dab4ea893bbecf12bb7d89294957bbWEB
- https://github.com/rmosolgo/graphql-ruby/commit/d1117ae0361d9ed67e0795b07f5c3e98e62f3c7cWEB
- https://github.com/rmosolgo/graphql-ruby/commit/e3b33ace05391da2871c75ab4d3b66e29133b367WEB
- https://github.com/rmosolgo/graphql-ruby/commit/e58676c70aa695e3052ba1fbc787efee4ba7d67eWEB
- https://about.gitlab.com/releases/2025/03/12/patch-release-gitlab-17-9-2-releasedWEB
- https://github.com/github-community-projects/graphql-clientWEB
- https://github.com/rmosolgo/graphql-rubyPACKAGE
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/graphql/CVE-2025-27407.ymlWEB
- https://lists.debian.org/debian-lts-announce/2025/08/msg00002.htmlWEB
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
Exploitation is straightforward and causes maximum impact. Patch immediately.
Also Known As
Related CVEs
- CVE-2026-55107CRITICAL
kobako Sandbox Escape: guest eval reaches host RCE via method_missing → public_send (any bound Service)
- CVE-2026-77602CRITICAL
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