Home / Google Cloud / Gemini CLI / CVE-2026-12537
CVE-2026-12537: is it exploited, and which versions of Google Cloud Gemini CLI are affected and fixed?
CVE-2026-12537 is an improper input validation vulnerability in Google Cloud Gemini CLI. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 17:39 UTC). Affected: @google/gemini-cli before 0.39.1, @google/gemini-cli from 0.40.0-preview.2 before 0.40.0-preview.3 and google-github-actions/run-gemini-cli before 0.1.22 (GitHub advisory GHSA-wpqr-6v78-jr5g). Fixed in 0.39.1, 0.40.0-preview.3 and 0.1.22 (GitHub advisory GHSA-wpqr-6v78-jr5g). Severity: Critical (10.0, CVSS 4.0, from GoogleCloud).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 17:39 UTC, CVE record November 19, 2026, 07:08 UTC and NVD November 19, 2026, 07:10 UTC.
What is CVE-2026-12537?
Unauthenticated Remote Code Execution in Gemini CLI CI/CD Workflows
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.
From the CVE record by GoogleCloud, last updated June 24, 2026, 13:53 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| Google Cloud | Gemini CLI | before 0.39.1 | 0.39.1 |
| Google Cloud | run-gemini-cli GitHub Action | before 0.1.22 | 0.1.22 |
As the CVE record by GoogleCloud states it, last updated June 24, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| npm | @google/gemini-cli | < 0.39.1 | 0.39.1 | GHSA-wpqr-6v78-jr5g |
| npm | @google/gemini-cli | >= 0.40.0-preview.2, < 0.40.0-preview.3 | 0.40.0-preview.3 | GHSA-wpqr-6v78-jr5g |
| GitHub Actions | google-github-actions/run-gemini-cli | < 0.1.22 | 0.1.22 | GHSA-wpqr-6v78-jr5g |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated September 24, 2026. Summary: Gemini CLI: Remote Code Execution via workspace trust and tool allowlisting bypasses.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| gemini-cli | before 0.39.1 | application | |
| gemini-cli | 0.40.0 | application | |
| run-gemini-cli | before 0.1.22 | application |
NVD analysis (status Analyzed), last modified July 2, 2026, 19:46 UTC.
How severe is CVE-2026-12537?
| Score | Version | Vector | Source |
|---|---|---|---|
| Critical 10.0 | CVSS 4.0 | 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 | GoogleCloud |
| High 7.8 | CVSS 3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2026-12537 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: yes; technical impact: total (CISA ADP, June 24, 2026)
- EPSS
- 3.21% probability of exploitation activity in the next 30 days, percentile 88.6 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-20 Improper Input Validation
- CWE-78 Improper Neutralization of Special Elements used in an OS Command
- CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
- CWE-77 Improper Neutralization of Special Elements used in a Command
How do I fix it? (from the CVE record)
Ensure you are using the latest version of gemini cli and follow the best practices guide https://github.com/google-github-actions/run-gemini-cli/blob/main/docs/trust-guidance.md .
Where are the vendor advisories and references?
Who found and reported it?
- Elad Meged of Novee Security (reporter)
- Devansh Batham (reporter)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- June 17, 2026
- Published
- June 24, 2026, 13:37 UTC
- CVE record updated
- June 24, 2026, 13:53 UTC by GoogleCloud
- NVD
- Analyzed, last modified July 2, 2026, 19:46 UTC
- Last checked
- CVE list November 19, 2026, 07:08 UTC; NVD November 19, 2026, 07:10 UTC; KEV December 3, 2026, 17:39 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect Gemini CLI?
- Sep 10, 2026CVE-2026-13745 Google Cloud Gemini CLI: inclusion of code from an untrusted source
Questions about CVE-2026-12537
Is CVE-2026-12537 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 17:39 UTC. FIRST's EPSS gives it a 3.21% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of Google Cloud Gemini CLI are affected by CVE-2026-12537?
@google/gemini-cli before 0.39.1, @google/gemini-cli from 0.40.0-preview.2 before 0.40.0-preview.3 and google-github-actions/run-gemini-cli before 0.1.22, per the GitHub advisory GHSA-wpqr-6v78-jr5g. The tables above give every range the sources list.
Which version fixes CVE-2026-12537?
0.39.1, 0.40.0-preview.3 and 0.1.22, per the GitHub advisory GHSA-wpqr-6v78-jr5g. Check the vendor's advisory before you rely on it.
How severe is CVE-2026-12537?
Critical (10.0, CVSS 4.0, from GoogleCloud). The severity table above shows each score with its source.
Where is the official record of CVE-2026-12537?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.