Description
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 products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| rmosolgo | graphql-ruby | >= 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 Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | ruby-graphql | 2.2.17-1 | — |
| Debian 13 | ruby-graphql | 2.2.17-1 | — |
| Debian 12 | ruby-graphql | No fix yet | — |
| Debian 11 | ruby-graphql | 1.11.12-0+deb11u1 | DLA-4263-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.04 LTS | ruby-graphql | No fix yet | — |
| Ubuntu 25.10 | ruby-graphql | No fix yet | — |
| Ubuntu 24.04 LTS | ruby-graphql | No fix yet | — |
| Ubuntu 22.04 LTS | ruby-graphql | No fix yet | — |
| Ubuntu 20.04 LTS | ruby-graphql | No fix yet | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat Satellite Capsule 6 | python-django +1 | 4.2.19-1.el9pc | RHSA-2025:4576 |
| Red Hat Satellite Capsule 6 | python-jinja2 +1 | 3.1.5-1.el8pc | RHSA-2025:4576, RHSA-2025:3491 |
| Red Hat Satellite Capsule 6 | rubygem-rack | 2.2.13-1.el8sat | RHSA-2025:4576, RHSA-2025:3492, RHSA-2025:3491 |
| Red Hat Satellite 6 | python-django +1 | 4.2.19-1.el9pc | RHSA-2025:4576 |
| Red Hat Satellite 6 | python-jinja2 +1 | 3.1.5-1.el8pc | RHSA-2025:4576, RHSA-2025:3491 |
| Red Hat Satellite 6 | rubygem-graphql | 1.13.24-1.el8sat | RHSA-2025:4576, RHSA-2025:3492, RHSA-2025:3491 |
| Red Hat Satellite 6 | rubygem-rack | 2.2.13-1.el8sat | RHSA-2025:4576, RHSA-2025:3492, RHSA-2025:3491 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 1 repository
-
LoGGGG2402/CVE-2025-27407 ★ 0 · Apr 25, 2026
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| RubyGems | graphql | >= 2.4.0, < 2.4.13 | 2.4.13 | GHSA-q92j-grw3-h492 |
| RubyGems | graphql | >= 2.3.0, < 2.3.21 | 2.3.21 | GHSA-q92j-grw3-h492 |
| RubyGems | graphql | >= 2.2.0, < 2.2.17 | 2.2.17 | GHSA-q92j-grw3-h492 |
| RubyGems | graphql | >= 2.1.0, < 2.1.15 | 2.1.15 | GHSA-q92j-grw3-h492 |
| RubyGems | graphql | >= 2.0.0, < 2.0.32 | 2.0.32 | GHSA-q92j-grw3-h492 |
| RubyGems | graphql | >= 1.13.0, < 1.13.24 | 1.13.24 | GHSA-q92j-grw3-h492 |
| RubyGems | graphql | >= 1.12.0, < 1.12.25 | 1.12.25 | GHSA-q92j-grw3-h492 |
| RubyGems | graphql | >= 1.11.5, < 1.11.11 | 1.11.11 | GHSA-q92j-grw3-h492 |
Advisories 8
- RHSA-2025:4576 Red Hat Security Advisory: Satellite 6.17.0 release Red Hat Security Advisories (RHSA) · Oct 16, 2026
- RHSA-2025:3491 Red Hat Security Advisory: Satellite 6.15.5.2 Async Update Red Hat Security Advisories (RHSA) · Oct 16, 2026
- RHSA-2025:3492 Red Hat Security Advisory: Satellite 6.14.4.5 Async Update Red Hat Security Advisories (RHSA) · Jul 12, 2026
- RHSA-2025:3490 Red Hat Security Advisory: Satellite 6.16.4 Async Update Red Hat Security Advisories (RHSA) · Jul 12, 2026
- DLA-4263-1 ruby-graphql - security update Debian Security (DSA / DLA) · Mar 9, 2026
- WID-SEC-2025-0549 GitLab: Mehrere Schwachstellen BSI CERT-Bund (WID) · Aug 3, 2025
- WID-SEC-2025-0681 Red Hat Satellite: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jul 16, 2025
- NCSC-2025-0087 Kwetsbaarheden verholpen in GitLab NCSC-NL (Netherlands) · Mar 14, 2025
References
- https://github.com/rmosolgo/graphql-ruby/security/advisories/GHSA-q92j-grw3-h492
- https://github.com/rmosolgo/graphql-ruby/commit/28233b16c0eb9d0fb7808f4980e061dc7507c4cd
- https://github.com/rmosolgo/graphql-ruby/commit/2d2f4ed1f79472f8eed29c864b039649e1de238f
- https://github.com/rmosolgo/graphql-ruby/commit/5c5a7b9a9bdce143be048074aea50edb7bb747be
- https://github.com/rmosolgo/graphql-ruby/commit/6eca16b9fa553aa957099a30dbde64ddcdac52ca
- https://github.com/rmosolgo/graphql-ruby/commit/d0963289e0dab4ea893bbecf12bb7d89294957bb
- https://github.com/rmosolgo/graphql-ruby/commit/d1117ae0361d9ed67e0795b07f5c3e98e62f3c7c
- https://github.com/rmosolgo/graphql-ruby/commit/e3b33ace05391da2871c75ab4d3b66e29133b367
- https://about.gitlab.com/releases/2025/03/12/patch-release-gitlab-17-9-2-released
- https://github.com/github-community-projects/graphql-client