CVE-2025-27407
CVE-2025-27407 · Remote code execution when loading a crafted GraphQL schema
CVSS 9.1 · Critical · EPSS 3.3% · Fix available
Compare with your installed version
Affected products and known fixed versions are public information. Compare them with your installed version.
- graphql-rubyNo fix published
- ruby-graphql Debian 12No fix published
- ruby-graphql Debian 13Update to 2.2.17-1
- ruby-graphql Debian 14Update to 2.2.17-1
- and 6 more
Check the installed version:
dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="ruby-graphql"'Assess your server’s risks
The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.
Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.
curl -fsSL https://patchfirst.dev/check.sh | shChannels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
- Published
- Updated
Fixes in distributions
- DLA-4263-1 · Debian 11 ·
- RHSA-2025:4576 · Red Hat satellite 6.17 el9, Red Hat satellite capsule 6.17 el9 ·
- RHSA-2025:3491 · Red Hat satellite 6.15 el8, Red Hat satellite capsule 6.15 el8 ·
- RHSA-2025:3492 · Red Hat satellite 6.14 el8, Red Hat satellite capsule 6.14 el8 ·
- RHSA-2025:3490 · Red Hat satellite 6.16 el8, Red Hat satellite 6.16 el9, Red Hat satellite capsule 6.16 el8, Red Hat satellite capsule 6.16 el9 ·
Affected products and versions
graphql-ruby
- Versions
- >= 1.11.5, < 1.11.8: Affected
- >= 1.12.0, < 1.12.25: Affected
- >= 1.13.0, < 1.13.24: Affected
- >= 2.0.0, < 2.0.32: Affected
- >= 2.1.0, < 2.1.14: Affected
- >= 2.2.0, < 2.2.17: Affected
All versions (7)
- >= 2.3.0, < 2.3.21: Affected
No fix published
ruby-graphql Debian 12
- Versions
- 1.13.15-1
- 1.13.20-1
- 2.2.17-1
- 2.2.5-1
- 2.2.5-2
- 2.2.5-3
All versions (12)
- 2.5.19-1
- 2.5.20-1
- 2.6.0-1
- 2.6.3-1
- 2.6.6-1
- 2.6.9-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
ruby-graphql Debian 13
- Affected ranges
- ECOSYSTEM: < 2.2.17-1
Update to 2.2.17-1
ruby-graphql Debian 14
- Affected ranges
- ECOSYSTEM: < 2.2.17-1
Update to 2.2.17-1
graphql RubyGems
- Versions
- 2.4.0
- 2.4.1
- 2.4.10
- 2.4.11
- 2.4.12
- 2.4.2
All versions (13)
- 2.4.3
- 2.4.4
- 2.4.5
- 2.4.6
- 2.4.7
- 2.4.8
- 2.4.9
- Affected ranges
- ECOSYSTEM: ≥ 2.4.0, < 2.4.13
Update to 2.4.13
graphql RubyGems
- Versions
- 2.3.0
- 2.3.1
- 2.3.10
- 2.3.11
- 2.3.12
- 2.3.13
All versions (21)
- 2.3.14
- 2.3.15
- 2.3.16
- 2.3.17
- 2.3.18
- 2.3.19
- 2.3.2
- 2.3.20
- 2.3.3
- 2.3.4
- 2.3.5
- 2.3.6
- 2.3.7
- 2.3.8
- 2.3.9
- Affected ranges
- ECOSYSTEM: ≥ 2.3.0, < 2.3.21
Update to 2.3.21
graphql RubyGems
- Versions
- 2.2.0
- 2.2.1
- 2.2.10
- 2.2.11
- 2.2.12
- 2.2.13
All versions (17)
- 2.2.14
- 2.2.15
- 2.2.16
- 2.2.2
- 2.2.3
- 2.2.4
- 2.2.5
- 2.2.6
- 2.2.7
- 2.2.8
- 2.2.9
- Affected ranges
- ECOSYSTEM: ≥ 2.2.0, < 2.2.17
Update to 2.2.17
graphql RubyGems
- Versions
- 2.1.0
- 2.1.1
- 2.1.10
- 2.1.11
- 2.1.12
- 2.1.13
All versions (14)
- 2.1.2
- 2.1.3
- 2.1.4
- 2.1.5
- 2.1.6
- 2.1.7
- 2.1.8
- 2.1.9
- Affected ranges
- ECOSYSTEM: ≥ 2.1.0, < 2.1.15
Update to 2.1.15
graphql RubyGems
- Versions
- 2.0.0
- 2.0.1
- 2.0.11
- 2.0.12
- 2.0.13
- 2.0.14
All versions (33)
- 2.0.15
- 2.0.16
- 2.0.17
- 2.0.17.1
- 2.0.17.2
- 2.0.18
- 2.0.19
- 2.0.2
- 2.0.20
- 2.0.21
- 2.0.22
- 2.0.23
- 2.0.24
- 2.0.25
- 2.0.26
- 2.0.27
- 2.0.28
- 2.0.29
- 2.0.3
- 2.0.30
- 2.0.31
- 2.0.4
- 2.0.5
- 2.0.6
- 2.0.7
- 2.0.8
- 2.0.9
- Affected ranges
- ECOSYSTEM: ≥ 2.0.0, < 2.0.32
Update to 2.0.32
graphql RubyGems
- Versions
- 1.13.0
- 1.13.1
- 1.13.10
- 1.13.11
- 1.13.12
- 1.13.13
All versions (24)
- 1.13.14
- 1.13.15
- 1.13.16
- 1.13.17
- 1.13.18
- 1.13.19
- 1.13.2
- 1.13.20
- 1.13.21
- 1.13.22
- 1.13.23
- 1.13.3
- 1.13.4
- 1.13.5
- 1.13.6
- 1.13.7
- 1.13.8
- 1.13.9
- Affected ranges
- ECOSYSTEM: ≥ 1.13.0, < 1.13.24
Update to 1.13.24
graphql RubyGems
- Versions
- 1.12.0
- 1.12.1
- 1.12.10
- 1.12.11
- 1.12.12
- 1.12.13
All versions (25)
- 1.12.14
- 1.12.15
- 1.12.16
- 1.12.17
- 1.12.18
- 1.12.19
- 1.12.2
- 1.12.20
- 1.12.21
- 1.12.22
- 1.12.23
- 1.12.24
- 1.12.3
- 1.12.4
- 1.12.5
- 1.12.6
- 1.12.7
- 1.12.8
- 1.12.9
- Affected ranges
- ECOSYSTEM: ≥ 1.12.0, < 1.12.25
Update to 1.12.25
graphql RubyGems
- Versions
- 1.11.10
- 1.11.5
- 1.11.6
- 1.11.7
- 1.11.8
- 1.11.9
- Affected ranges
- ECOSYSTEM: ≥ 1.11.5, < 1.11.11
Update to 1.11.11
ruby-graphql Ubuntu 20.04 LTS
- Versions
- 1.8.4-1
- 1.9.16-1
- 1.9.19-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
ruby-graphql Ubuntu 22.04 LTS
- Versions
- 1.11.4-1
- 1.11.8-3
- 1.11.10-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
ruby-graphql Ubuntu 24.04 LTS
- Versions
- 1.13.15-1
- 1.13.20-1
- 2.2.5-3
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
ruby-graphql Ubuntu 25.10
- Versions
- 2.2.5-3
- 2.2.17-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
ruby-graphql Ubuntu 26.04 LTS
- Versions
- 2.2.17-1
- 2.5.19-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
Original sources
- 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
- https://lists.debian.org/debian-lts-announce/2025/08/msg00002.html
- https://nvd.nist.gov/vuln/detail/CVE-2025-27407