{"cve":"CVE-2021-23632","nvd":{"published":"2022-03-17T12:15:07.680","modified":"2026-06-17T03:38:50.867","status":"Modified","description":"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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8},"cwes":["CWE-78"],"references":["https://snyk.io/vuln/SNYK-JS-GIT-1568518","https://snyk.io/vuln/SNYK-JS-GIT-1568518"],"products":["git_project:git"],"source":"nvd","synced_at":"2026-10-19T21:29:06.454770966+00:00"},"epss":{"cve":"CVE-2021-23632","score":0.0235,"percentile":0.83701,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-9gqr-xp86-f87h","url":"https://osv.dev/vulnerability/GHSA-9gqr-xp86-f87h","summary":"Code injection in npm git","modified":"2026-07-08T06:49:39.855635997Z","packages":[{"ecosystem":"npm","name":"git","purl":"pkg:npm/git","ranges":["<=0.1.5"],"fixed":[]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}