{"id":"CVE-2025-27407","aliases":["CVE-2025-27407","GHSA-q92j-grw3-h492"],"related":[],"kind":"vulnerability","state":"published","title":"Remote code execution when loading a crafted GraphQL schema","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"# Summary\n\nLoading 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](https://github.com/github-community-projects/graphql-client) to load external schemas via GraphQL introspection.","format":"markdown","source":"ghsa"},{"lang":"es","text":"graphql-ruby es una implementación Ruby de GraphQL. A partir de la versión 1.11.5 y anteriores a las versiones 1.11.8, 1.12.25, 1.13.24, 2.0.32, 2.1.14, 2.2.17 y 2.3.21, cargar una definición de esquema maliciosa en `GraphQL::Schema.from_introspection` (o `GraphQL::Schema::Loader.load`) puede provocar la ejecución remota de código. Cualquier sistema que cargue un esquema mediante JSON desde una fuente no confiable es vulnerable, incluyendo aquellos que usan GraphQL::Client para cargar esquemas externos mediante la introspección de GraphQL. Las versiones 1.11.8, 1.12.25, 1.13.24, 2.0.32, 2.1.14, 2.2.17 y 2.3.21 contienen un parche para el problema.","source":"nvd"}],"published":"2025-03-12T18:15:57.957Z","modified":"2026-06-17T09:03:31.773Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H","score":9.1,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H","score":9.1,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H","score":9,"rating":"CRITICAL"}],"cwes":["CWE-94"],"affected":[{"ranges":[{"version":">= 1.11.5, < 1.11.8","status":"affected"},{"version":">= 1.12.0, < 1.12.25","status":"affected"},{"version":">= 1.13.0, < 1.13.24","status":"affected"},{"version":">= 2.0.0, < 2.0.32","status":"affected"},{"version":">= 2.1.0, < 2.1.14","status":"affected"},{"version":">= 2.2.0, < 2.2.17","status":"affected"},{"version":">= 2.3.0, < 2.3.21","status":"affected"}],"vendor":"rmosolgo","product":"graphql-ruby","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"2.4.0","status":"affected","fixed":"2.4.13"}],"ecosystem":"RubyGems","package":"graphql","purl":"pkg:gem/graphql","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.3.0","status":"affected","fixed":"2.3.21"}],"ecosystem":"RubyGems","package":"graphql","purl":"pkg:gem/graphql","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.2.0","status":"affected","fixed":"2.2.17"}],"ecosystem":"RubyGems","package":"graphql","purl":"pkg:gem/graphql","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.1.0","status":"affected","fixed":"2.1.15"}],"ecosystem":"RubyGems","package":"graphql","purl":"pkg:gem/graphql","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.0.0","status":"affected","fixed":"2.0.32"}],"ecosystem":"RubyGems","package":"graphql","purl":"pkg:gem/graphql","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"1.13.0","status":"affected","fixed":"1.13.24"}],"ecosystem":"RubyGems","package":"graphql","purl":"pkg:gem/graphql","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"1.12.0","status":"affected","fixed":"1.12.25"}],"ecosystem":"RubyGems","package":"graphql","purl":"pkg:gem/graphql","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"1.11.5","status":"affected","fixed":"1.11.11"}],"ecosystem":"RubyGems","package":"graphql","purl":"pkg:gem/graphql","source":"ghsa"}],"references":[{"url":"https://github.com/rmosolgo/graphql-ruby/security/advisories/GHSA-q92j-grw3-h492","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/rmosolgo/graphql-ruby/commit/28233b16c0eb9d0fb7808f4980e061dc7507c4cd","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/rmosolgo/graphql-ruby/commit/2d2f4ed1f79472f8eed29c864b039649e1de238f","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/rmosolgo/graphql-ruby/commit/5c5a7b9a9bdce143be048074aea50edb7bb747be","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/rmosolgo/graphql-ruby/commit/6eca16b9fa553aa957099a30dbde64ddcdac52ca","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/rmosolgo/graphql-ruby/commit/d0963289e0dab4ea893bbecf12bb7d89294957bb","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/rmosolgo/graphql-ruby/commit/d1117ae0361d9ed67e0795b07f5c3e98e62f3c7c","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/rmosolgo/graphql-ruby/commit/e3b33ace05391da2871c75ab4d3b66e29133b367","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://about.gitlab.com/releases/2025/03/12/patch-release-gitlab-17-9-2-released","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/github-community-projects/graphql-client","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/08/msg00002.html","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-27407","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/rmosolgo/graphql-ruby/commit/e58676c70aa695e3052ba1fbc787efee4ba7d67e","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/rmosolgo/graphql-ruby","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/graphql/CVE-2025-27407.yml","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-03-12T18:41:38.718Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-27407","url":"https://www.cve.org/CVERecord?id=CVE-2025-27407","licence":"CVE Terms of Use","modified":"2025-11-03T19:45:32.739Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-q92j-grw3-h492","url":"https://github.com/advisories/GHSA-q92j-grw3-h492","licence":"CC-BY-4.0","modified":"2025-11-03T21:56:26.343Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-27407","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-27407","licence":"Public domain","modified":"2026-06-17T09:03:31.773Z"}],"updatedAt":"2026-11-25T22:58:55.227Z","epss":{"score":0.03102,"percentile":0.88106,"date":"2026-12-01T12:00:22.000Z"}}