Remote code execution via interpolated schema names
Published Mar 12, 2025 · Updated Nov 3, 2025
Code injection in affected GraphQL-Ruby releases allows remote attackers to execute code by supplying untrusted introspection JSON. Schema construction interpolates attacker-controlled field or argument names into Ruby source passed to class_eval, so crafted names alter the generated code. The application must load untrusted schema JSON through GraphQL::Schema.from_introspection or GraphQL::Schema::Loader.load; successful exploitation runs code in the host process.
Summary
What happened
Code injection in affected GraphQL-Ruby releases allows remote attackers to execute code by supplying untrusted introspection JSON. Schema construction interpolates attacker-controlled field or argument names into Ruby source passed to class_eval, so crafted names alter the generated code. The application must load untrusted schema JSON through GraphQL::Schema.from_introspection or GraphQL::Schema::Loader.load; successful exploitation runs code in the host process.
The record
- CVE
- CVE-2025-27407
- Published
- Mar 12, 2025
- Updated
- Nov 3, 2025
- Vendor
- Robert Mosolgo
- Product
- GraphQL-Ruby
- Classifications
- CWE-94, T1203
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Mar 12, 2025CVE publishedPublication date reported by the CVE source.
- Nov 3, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=>= 1.11.5, < 1.11.8
- Affected versionversion=>= 1.12.0, < 1.12.25
- Affected versionversion=>= 1.13.0, < 1.13.24
- Affected versionversion=>= 2.0.0, < 2.0.32
- Affected versionversion=>= 2.1.0, < 2.1.14
- Affected versionversion=>= 2.2.0, < 2.2.17
- Affected versionversion=>= 2.3.0, < 2.3.21
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo