Unauthenticated Remote Code Execution in Gemini CLI CI/CD Workflows
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Code execution, Information disclosure
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-78 and CWE-200.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Gemini CLI | before 0.39.1 | 0.39.1 | Patch available | CNA | |
| run-gemini-cli GitHub Action | before 0.1.22 | 0.1.22 | Patch available | CNA | |
| — | @google/gemini-cli (npm) | before 0.39.1 | 0.39.1 | Patch available | GHSA-wpqr-6v78-jr5g |
| — | @google/gemini-cli (npm) | 0.40.0-preview.2 to before 0.40.0-preview.3 | 0.40.0-preview.3 | Patch available | GHSA-wpqr-6v78-jr5g |
| — | google-github-actions/run-gemini-cli (GitHub Actions) | before 0.1.22 | 0.1.22 | Patch available | GHSA-wpqr-6v78-jr5g |
- Gemini CLI VendorGoogle Affected before 0.39.1 Fixed in 0.39.1 Patch available CNA
- run-gemini-cli GitHub Action VendorGoogle Affected before 0.1.22 Fixed in 0.1.22 Patch available CNA
- @google/gemini-cli (npm) Vendor— Affected before 0.39.1 Fixed in 0.39.1 Patch available GHSA-wpqr-6v78-jr5g
- @google/gemini-cli (npm) Vendor— Affected 0.40.0-preview.2 to before 0.40.0-preview.3 Fixed in 0.40.0-preview.3 Patch available GHSA-wpqr-6v78-jr5g
- google-github-actions/run-gemini-cli (GitHub Actions) Vendor— Affected before 0.1.22 Fixed in 0.1.22 Patch available GHSA-wpqr-6v78-jr5g
Remediation
- Fix · CNA Gemini CLI (Google Cloud) Fixed in 0.39.1
- Fix · CNA run-gemini-cli GitHub Action (Google Cloud) Fixed in 0.1.22
- Fix · GHSA-wpqr-6v78-jr5g @google/gemini-cli (npm) Fixed in 0.39.1 Advisory →
- Fix · GHSA-wpqr-6v78-jr5g @google/gemini-cli (npm) Fixed in 0.40.0-preview.3 Advisory →
- Fix · GHSA-wpqr-6v78-jr5g google-github-actions/run-gemini-cli (GitHub Actions) Fixed in 0.1.22 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-12537
- 2026-10-03 Alias added: GHSA-wpqr-6v78-jr5g
References
Sources
- CVE-2026-12537 · CVE Program
- CVE-2026-12537 · NVD
- FIRST EPSS
- GHSA-wpqr-6v78-jr5g · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences