CVEBrief

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.

Exploited in the wild
Not in CISA KEV
KEV 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
Exploit odds (EPSS)
3.21% in 30 days
higher than 89% of CVEs; FIRST, December 3, 2026
Free for up to 3 items: a weekly email, and an alert the day CISA lists one as exploited. We email you once to confirm. More about the watch

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?

VendorProductAffectedFixed or not affected from
Google CloudGemini CLIbefore 0.39.10.39.1
Google Cloudrun-gemini-cli GitHub Actionbefore 0.1.220.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?

EcosystemPackageAffectedFixed inAdvisory
npm@google/gemini-cli< 0.39.10.39.1GHSA-wpqr-6v78-jr5g
npm@google/gemini-cli>= 0.40.0-preview.2, < 0.40.0-preview.30.40.0-preview.3GHSA-wpqr-6v78-jr5g
GitHub Actionsgoogle-github-actions/run-gemini-cli< 0.1.220.1.22GHSA-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?

VendorProductVersionsType
googlegemini-clibefore 0.39.1application
googlegemini-cli0.40.0application
googlerun-gemini-clibefore 0.1.22application

NVD analysis (status Analyzed), last modified July 2, 2026, 19:46 UTC.

How severe is CVE-2026-12537?

ScoreVersionVectorSource
Critical 10.0CVSS 4.0CVSS: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:ClearGoogleCloud
High 7.8CVSS 3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HNVD

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?

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?

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?

Every CVE in Gemini CLI

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.