{"id":"UBUNTU-CVE-2025-27407","details":"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.","modified":"2026-05-20T16:10:33.992081240Z","published":"2025-03-12T19:15:00Z","upstream":["CVE-2025-27407"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2025-27407"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2025-27407"},{"type":"REPORT","url":"https://about.gitlab.com/releases/2025/03/12/patch-release-gitlab-17-9-2-released"},{"type":"REPORT","url":"https://github.com/github-community-projects/graphql-client"},{"type":"REPORT","url":"https://github.com/rmosolgo/graphql-ruby/commit/28233b16c0eb9d0fb7808f4980e061dc7507c4cd"},{"type":"REPORT","url":"https://github.com/rmosolgo/graphql-ruby/commit/2d2f4ed1f79472f8eed29c864b039649e1de238f"},{"type":"REPORT","url":"https://github.com/rmosolgo/graphql-ruby/commit/5c5a7b9a9bdce143be048074aea50edb7bb747be"},{"type":"REPORT","url":"https://github.com/rmosolgo/graphql-ruby/commit/6eca16b9fa553aa957099a30dbde64ddcdac52ca"},{"type":"REPORT","url":"https://github.com/rmosolgo/graphql-ruby/commit/d0963289e0dab4ea893bbecf12bb7d89294957bb"},{"type":"REPORT","url":"https://github.com/rmosolgo/graphql-ruby/commit/d1117ae0361d9ed67e0795b07f5c3e98e62f3c7c"},{"type":"REPORT","url":"https://github.com/rmosolgo/graphql-ruby/commit/e3b33ace05391da2871c75ab4d3b66e29133b367"},{"type":"REPORT","url":"https://github.com/rmosolgo/graphql-ruby/security/advisories/GHSA-q92j-grw3-h492"}],"affected":[{"package":{"name":"ruby-graphql","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/ruby-graphql?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.8.4-1","1.9.16-1","1.9.19-1"],"ecosystem_specific":{"binaries":[{"binary_name":"ruby-graphql","binary_version":"1.9.19-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-27407.json"}},{"package":{"name":"ruby-graphql","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/ruby-graphql?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.11.4-1","1.11.8-3","1.11.10-1"],"ecosystem_specific":{"binaries":[{"binary_name":"ruby-graphql","binary_version":"1.11.10-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-27407.json"}},{"package":{"name":"ruby-graphql","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/ruby-graphql?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.13.15-1","1.13.20-1","2.2.5-3"],"ecosystem_specific":{"binaries":[{"binary_name":"ruby-graphql","binary_version":"2.2.5-3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-27407.json"}},{"package":{"name":"ruby-graphql","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/ruby-graphql?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.2.5-3","2.2.17-1"],"ecosystem_specific":{"binaries":[{"binary_name":"ruby-graphql","binary_version":"2.2.17-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-27407.json"}},{"package":{"name":"ruby-graphql","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/ruby-graphql?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.2.17-1","2.5.19-1"],"ecosystem_specific":{"binaries":[{"binary_name":"ruby-graphql","binary_version":"2.5.19-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-27407.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}