{"answers":{"affected":"16 open source packages ship an affected version, including graphql.","exploited":"There is no known exploitation of CVE-2025-27407 in the wild and no public exploit code.","fix":"Upgrade graphql to a fixed version for your release line: 1.11.11, 1.12.25, 1.13.24 or 2.0.32.","what":"CVE-2025-27407 is a critical code injection vulnerability in rmosolgo graphql-ruby, published on 12 Mar 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-27407 and fix it if it is affected.\n\nWhat it is: CVE-2025-27407 is a critical code injection vulnerability in rmosolgo graphql-ruby, published on 12 Mar 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2025-27407 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- graphql (RubyGems): affected from 1.11.5; fixed in 1.11.11\n- graphql (RubyGems): affected from 1.11.5; fixed in 1.11.11\n- graphql (RubyGems): affected from 1.12.0; fixed in 1.12.25\n- graphql (RubyGems): affected from 1.12.0; fixed in 1.12.25\n- graphql (RubyGems): affected from 1.13.0; fixed in 1.13.24\n- graphql (RubyGems): affected from 1.13.0; fixed in 1.13.24\n- graphql (RubyGems): affected from 2.0.0; fixed in 2.0.32\n- graphql (RubyGems): affected from 2.0.0; fixed in 2.0.32\n- graphql (RubyGems): affected from 2.1.0; fixed in 2.1.15\n- graphql (RubyGems): affected from 2.1.0; fixed in 2.1.15\n- graphql (RubyGems): affected from 2.2.0; fixed in 2.2.17\n- graphql (RubyGems): affected from 2.2.0; fixed in 2.2.17\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-27407/ (Markdown: https://insights.sbomify.com/CVE-2025-27407/index.md)","id":"CVE-2025-27407","markdown":"https://insights.sbomify.com/CVE-2025-27407/index.md","name":"CVE-2025-27407","record":{"aliases":["DEBIAN-CVE-2025-27407","DLA-4263-1","GHSA-q92j-grw3-h492","UBUNTU-CVE-2025-27407"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Ruby GraphQL library","requires_auth":"none","summary":"Attackers can achieve remote code execution by loading a malicious GraphQL schema from an untrusted source using the graphql-ruby library.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":9.1,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"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.","ecosystems":["RubyGems"],"exploits":{"exploitdb":0,"first_seen":"2026-04-25","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-04-25T04:33:01Z","kind":"github_poc","ref":"https://github.com/LoGGGG2402/CVE-2025-27407","stars":0,"title":null}],"tier":"poc_unverified"},"has_fix":true,"headline":"Remote code execution when loading a crafted GraphQL schema","id":"CVE-2025-27407","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"RubyGems","product":null,"products":[],"type":"code_injection","year":"2025"},"n_packages":16,"n_references":10,"next":{"headline":"Manifest Uses a One-Way Hash without a Salt","id":"CVE-2025-27408"},"packages":[{"ecosystem":"RubyGems","fixed":["1.11.11"],"introduced":["1.11.5"],"last_affected":[],"package":"graphql","purl":null,"source":"GHSA-q92j-grw3-h492"},{"ecosystem":"RubyGems","fixed":["1.11.11"],"introduced":["1.11.5"],"last_affected":[],"package":"graphql","purl":"pkg:gem/graphql","source":"GHSA-q92j-grw3-h492"},{"ecosystem":"RubyGems","fixed":["1.12.25"],"introduced":["1.12.0"],"last_affected":[],"package":"graphql","purl":null,"source":"GHSA-q92j-grw3-h492"},{"ecosystem":"RubyGems","fixed":["1.12.25"],"introduced":["1.12.0"],"last_affected":[],"package":"graphql","purl":"pkg:gem/graphql","source":"GHSA-q92j-grw3-h492"},{"ecosystem":"RubyGems","fixed":["1.13.24"],"introduced":["1.13.0"],"last_affected":[],"package":"graphql","purl":null,"source":"GHSA-q92j-grw3-h492"},{"ecosystem":"RubyGems","fixed":["1.13.24"],"introduced":["1.13.0"],"last_affected":[],"package":"graphql","purl":"pkg:gem/graphql","source":"GHSA-q92j-grw3-h492"},{"ecosystem":"RubyGems","fixed":["2.0.32"],"introduced":["2.0.0"],"last_affected":[],"package":"graphql","purl":null,"source":"GHSA-q92j-grw3-h492"},{"ecosystem":"RubyGems","fixed":["2.0.32"],"introduced":["2.0.0"],"last_affected":[],"package":"graphql","purl":"pkg:gem/graphql","source":"GHSA-q92j-grw3-h492"},{"ecosystem":"RubyGems","fixed":["2.1.15"],"introduced":["2.1.0"],"last_affected":[],"package":"graphql","purl":null,"source":"GHSA-q92j-grw3-h492"},{"ecosystem":"RubyGems","fixed":["2.1.15"],"introduced":["2.1.0"],"last_affected":[],"package":"graphql","purl":"pkg:gem/graphql","source":"GHSA-q92j-grw3-h492"},{"ecosystem":"RubyGems","fixed":["2.2.17"],"introduced":["2.2.0"],"last_affected":[],"package":"graphql","purl":null,"source":"GHSA-q92j-grw3-h492"},{"ecosystem":"RubyGems","fixed":["2.2.17"],"introduced":["2.2.0"],"last_affected":[],"package":"graphql","purl":"pkg:gem/graphql","source":"GHSA-q92j-grw3-h492"},{"ecosystem":"RubyGems","fixed":["2.3.21"],"introduced":["2.3.0"],"last_affected":[],"package":"graphql","purl":null,"source":"GHSA-q92j-grw3-h492"},{"ecosystem":"RubyGems","fixed":["2.3.21"],"introduced":["2.3.0"],"last_affected":[],"package":"graphql","purl":"pkg:gem/graphql","source":"GHSA-q92j-grw3-h492"},{"ecosystem":"RubyGems","fixed":["2.4.13"],"introduced":["2.4.0"],"last_affected":[],"package":"graphql","purl":null,"source":"GHSA-q92j-grw3-h492"},{"ecosystem":"RubyGems","fixed":["2.4.13"],"introduced":["2.4.0"],"last_affected":[],"package":"graphql","purl":"pkg:gem/graphql","source":"GHSA-q92j-grw3-h492"}],"prev":{"headline":"Icinga Reporting Stored XSS leads to SSRF","id":"CVE-2025-27406"},"products":["graphql-ruby"],"published":"2025-03-12","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-11-03","vendors":["rmosolgo"]},"summary":"Attackers can achieve remote code execution by loading a malicious GraphQL schema from an untrusted source using the graphql-ruby library.","url":"https://insights.sbomify.com/CVE-2025-27407/"}