Security mailing lists by PureSourceCode

CVE-2026-12537

CRITICAL 10.0CVSS 4.0

Gemini CLI: Remote Code Execution via workspace trust and tool allowlisting bypasses

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.

Published
24 Jun 2026
Last modified
25 Sep 2026
Assigned by
f45cbf4e-4146-4068-b7e1-655ffc2c548c
NVD status
Analyzed
Weakness
CWE-20CWE-200CWE-77CWE-78
Also known as
GHSA-wpqr-6v78-jr5g
Sources
NVDJSONOSV GHSA-wpqr-6v78-jr5gJSON

Scores

SourceScored byVersionScoreVector / decision
NVD f45cbf4e-4146-4068-b7e1-655ffc2c548c (Secondary) CVSS 4.0 CRITICAL 10.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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:Clear
OSV GitHub CVSS 3.1 CRITICAL 10.0 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
NVD nvd@nist.gov (Primary) CVSS 3.1 HIGH 7.8 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD google gemini-cli
cpe:2.3:a:google:gemini-cli:*:*:*:*:*:node.js:*:*
< 0.39.1 0.39.1
NVD google gemini-cli
cpe:2.3:a:google:gemini-cli:0.40.0:preview2:*:*:*:node.js:*:*
= 0.40.0
NVD google run-gemini-cli
cpe:2.3:a:google:run-gemini-cli:*:*:*:*:*:*:*:*
< 0.1.22 0.1.22
OSV npm @google/gemini-cli < 0.39.1 0.39.1
OSV npm @google/gemini-cli >= 0.40.0-preview.2, < 0.40.0-preview.3 0.40.0-preview.3
OSV GitHub Actions google-github-actions/run-gemini-cli < 0.1.22 0.1.22

References

History

  • 25 Nov 2026 21:03 UTC · NVD: first stored (published 24 Jun 2026)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 24 Apr 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.