Remote code execution (RCE) in git
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- No fix listed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-78.
Summary
All versions of package git are vulnerable to Remote Code Execution (RCE) due to missing sanitization in the Git.git method, which allows execution of OS commands rather than just git commands. Steps to Reproduce 1. Create a file named exploit.js with the following content: js var Git = require("git").Git; var repo = new Git("repo-test"); var user_input = "version; date"; repo.git(user_input, function(err, result) { console.log(result); }) 2. In the same directory as exploit.js, run npm install git. 3. Run exploit.js: node exploit.js. You should see the outputs of both the git version and date command-lines. Note that the repo-test Git repository does not need to be present to make this PoC work.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | git | all versions | — | No fix listed | CNA |
| — | git (npm) | up to 0.1.5 | — | No fix listed | GHSA-9gqr-xp86-f87h |
- git Vendor— Affected all versions Fixed in — No fix listed CNA
- git (npm) Vendor— Affected up to 0.1.5 Fixed in — No fix listed GHSA-9gqr-xp86-f87h
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:git_project:git:*:*:*:*:*:node.js:*:* | up to 0.1.5 | Vulnerable | Git Project |
- cpe:2.3:a:git_project:git:*:*:*:*:*:node.js:*:* Versions up to 0.1.5 Vulnerable ·Git Project
Remediation
No fixed version listed by the sources yet.
Timeline
- 2026-10-02 Threatist record created from CVE-2021-23632
- 2026-10-03 Alias added: GHSA-9gqr-xp86-f87h
References
More Git Project Git vulnerabilities
- TI-2015-06272 The (1) git-remote-ext and (2) unspecified other remote helper programs in Git before… CVSS 3.0CRITICAL 9.8
- TI-2015-05914 Multiple unspecified vulnerabilities in Git before 2.5.4, as used in Apple Xcode before… CVSS 2.0HIGH 10.0
Sources
- CVE-2021-23632 · CVE Program
- CVE-2021-23632 · NVD
- FIRST EPSS
- GHSA-9gqr-xp86-f87h · 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