{"answers":{"affected":"5 open source packages ship an affected version, including @google/gemini-cli and google-github-actions/run-gemini-cli. It affects 2 products.","exploited":"There is no known exploitation of CVE-2026-12537 in the wild and no public exploit code.","fix":"Upgrade @google/gemini-cli to a fixed version for your release line: 0.39.1 or 0.40.0-preview.3.","what":"CVE-2026-12537 is a critical command injection vulnerability in Google Cloud Gemini CLI, published on 24 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-12537 and fix it if it is affected.\n\nWhat it is: CVE-2026-12537 is a critical command injection vulnerability in Google Cloud Gemini CLI, published on 24 Jun 2026. 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-2026-12537 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- @google/gemini-cli (npm): affected all versions; fixed in 0.39.1\n- @google/gemini-cli (npm): affected all versions; fixed in 0.39.1\n- @google/gemini-cli (npm): affected from 0.40.0-preview.2; fixed in 0.40.0-preview.3\n- @google/gemini-cli (npm): affected from 0.40.0-preview.2; fixed in 0.40.0-preview.3\n- google-github-actions/run-gemini-cli (GitHub Actions): affected all versions; fixed in 0.1.22\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-2026-12537/ (Markdown: https://insights.sbomify.com/CVE-2026-12537/index.md)","id":"CVE-2026-12537","markdown":"https://insights.sbomify.com/CVE-2026-12537/index.md","name":"CVE-2026-12537","record":{"aliases":["GHSA-wpqr-6v78-jr5g","MINI-78jg-xhr8-46rq"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Gemini CLI","requires_auth":"none","summary":"An unauthenticated attacker can execute arbitrary code on the host by exploiting improper neutralization in the container launcher via a malicious .env file.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GoogleCloud","cpe":[{"product":"gemini-cli","vendor":"google"},{"product":"run-gemini-cli","vendor":"google"}],"cvss":{"score":10,"severity":"critical","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/U:Clear","version":"4.0"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"},{"id":"CWE-20","name":"Improper Input Validation"}],"description":"Improper Neutralization used in an OS Command in the container launcher in Google Gemini CLI (versions prior to 0.39.1) and run-gemini-cli GitHub Action (versions prior to 0.1.22) on headless CI platforms allows an unprivileged attacker to achieve pre-sandbox host-level code execution a maliciously crafted .gemini/.env file.","ecosystems":["GitHub Actions","npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Unauthenticated Remote Code Execution in Gemini CLI CI/CD Workflows","id":"CVE-2026-12537","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"GitHub Actions","product":null,"products":[],"type":"command_injection","year":"2026"},"n_packages":5,"n_references":1,"next":{"headline":"Docker Sandboxes ICMP egress restriction bypass after daemon restart","id":"CVE-2026-12539"},"packages":[{"ecosystem":"GitHub Actions","fixed":["0.1.22"],"introduced":["0"],"last_affected":[],"package":"google-github-actions/run-gemini-cli","purl":null,"source":"GHSA-wpqr-6v78-jr5g"},{"ecosystem":"npm","fixed":["0.39.1"],"introduced":["0"],"last_affected":[],"package":"@google/gemini-cli","purl":null,"source":"GHSA-wpqr-6v78-jr5g"},{"ecosystem":"npm","fixed":["0.39.1"],"introduced":["0"],"last_affected":[],"package":"@google/gemini-cli","purl":"pkg:npm/%40google/gemini-cli","source":"GHSA-wpqr-6v78-jr5g"},{"ecosystem":"npm","fixed":["0.40.0-preview.3"],"introduced":["0.40.0-preview.2"],"last_affected":[],"package":"@google/gemini-cli","purl":null,"source":"GHSA-wpqr-6v78-jr5g"},{"ecosystem":"npm","fixed":["0.40.0-preview.3"],"introduced":["0.40.0-preview.2"],"last_affected":[],"package":"@google/gemini-cli","purl":"pkg:npm/%40google/gemini-cli","source":"GHSA-wpqr-6v78-jr5g"}],"prev":{"headline":"Avada Builder \u003c= 3.15.5 - Authenticated (Contributor+) Stored Cross-Site Scripting via Module Title","id":"CVE-2026-12536"},"products":["Gemini CLI","run-gemini-cli GitHub Action"],"published":"2026-06-24","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":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-06-24","vendors":["Google Cloud"]},"summary":"An unauthenticated attacker can execute arbitrary code on the host by exploiting improper neutralization in the container launcher via a malicious .env file.","url":"https://insights.sbomify.com/CVE-2026-12537/"}