simple-git
Versions of the package simple-git before 3.36.0 are vulnerable to Remote Code Execution (RCE) due to an incomplete fix for [CVE-2022-25912](https://security.snyk.io/vuln/SNYK-JS-SIMPLEGIT-3112221) that blocks the -c option but not the equivalent --config form. If untrusted input can reach the options argument passed to simple-git, an attacker may still achieve remote code execution by enabling protocol.ext.allow=always and using an ext:: clone source.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 3.36.0
Fixed in 3.36.0
- < *
Fixed in *
Mitigation
Upgrade simple-git to 3.36.0 or later.
Upgrade org.webjars.npm:simple-git to * or later.
References
Timeline
Days relative to CVE publicationFirst public PoC 156 days after publication; not in CISA KEV. First PoC: EQSTLab/CVE-2026-6951 (created 28 Sep 2026, found by us: backfilled).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| EQSTLab/CVE-2026-6951 | 28 Sep 2026 +156 d | 2 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
PoC characteristics
What to hunt for in your logs · from 1 PoC repoGET /api/health
- Ports
- 9107
- Seen in
- 1 repo: EQSTLab/CVE-2026-6951
- Evidence
- EQSTLab/CVE-2026-6951/README.md:56
POST /api/import
- Content-Type
application/json- Ports
- 9107
- Seen in
- 1 repo: EQSTLab/CVE-2026-6951
- Evidence
- EQSTLab/CVE-2026-6951/README.md:84 EQSTLab/CVE-2026-6951/poc.py:37
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/api/health(?:[?#].*)?$
(?i)^/api/import(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [9107] (msg:"GG PoC-Monitor CVE-2026-6951 simple-git exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/api/health"; reference:url,poc.griffinguard.io/cve/CVE-2026-6951; classtype:web-application-attack; sid:9134378; rev:1;)
alert http any any -> $HOME_NET [9107] (msg:"GG PoC-Monitor CVE-2026-6951 simple-git exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/api/import"; reference:url,poc.griffinguard.io/cve/CVE-2026-6951; classtype:web-application-attack; sid:9105591; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: simple-git exploit attempt (CVE-2026-6951)
id: gg-pocmon-cve-2026-6951-9134378
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-6951. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-6951
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/api/health'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.6951
title: simple-git exploit attempt (CVE-2026-6951)
id: gg-pocmon-cve-2026-6951-9105591
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-6951. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-6951
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/api/import'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.6951