# CVE-2021-23632: Remote Code Execution (RCE)

- Priority: **Routine**
- Reason: Not severe (CVSS 6.6, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2022-03-17 · Modified: 2024-09-16
- Aliases: GHSA-9gqr-xp86-f87h, SNYK-JS-GIT-1568518
- Record: https://cvemate.com/vulnerability/CVE-2021-23632 · JSON: https://cvemate.com/vulnerability/CVE-2021-23632/json

## Description

```text
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.
```

## Signals

- CVSS: 9.8 critical (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 2.35%, percentile 84.239%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (reference)

## Affected

- git\_project git: ≤ 0.1.5
- Npm git (Npm): ≤ 0.1.5

## References

- <https://snyk.io/vuln/SNYK-JS-GIT-1568518>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-23632>

---

Data as of 2026-12-05T07:29:52.198Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
