Rmosolgo graphql-ruby
Remote code execution when loading a crafted GraphQL schema
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 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
Fixed in 1.11.8, 1.12.25, 1.13.24, 2.0.32, 2.1.14, 2.2.17, 2.3.21
Mitigation
Upgrade graphql-ruby to 1.11.8 or 1.12.25 or 1.13.24 or 2.0.32 or 2.1.14 or 2.2.17 or 2.3.21 or later.
References
Timeline
Days relative to CVE publicationFirst public PoC 1.1 years after publication; not in CISA KEV. First PoC: LoGGGG2402/CVE-2025-27407 (created 25 Apr 2026, found by us: backfilled).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| LoGGGG2402/CVE-2025-27407 | 25 Apr 2026 +1.1 y | 0 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
PoC characteristics
What to hunt for in your logs · from 1 PoC repoGET /users/sign_in
- Ports
- 18080
- Seen in
- 1 repo: LoGGGG2402/CVE-2025-27407
- Evidence
- LoGGGG2402/CVE-2025-27407/lab.sh:64
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/users/sign_in(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [18080] (msg:"GG PoC-Monitor CVE-2025-27407 rmosolgo graphql-ruby exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/users/sign_in"; reference:url,poc.griffinguard.io/cve/CVE-2025-27407; classtype:web-application-attack; sid:9413713; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: rmosolgo graphql-ruby exploit attempt (CVE-2025-27407)
id: gg-pocmon-cve-2025-27407-9413713
status: experimental
description: Request pattern taken from public PoCs for CVE-2025-27407. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2025-27407
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/users/sign_in'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2025.27407