CVE-2021-23632: All versions of package git are vulnerable to Remote Code Execution (RCE) due to missing sanitization in the G
CVE-2021-23632 is a medium-severity flaw (CVSS 6.6) affecting git. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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
Why this priority
- Public exploit reference
A fixed release or distro patch exists.
Risk facts
| CVSS score | 6.6 (Medium) |
| Attack vector | Network (remote) |
| Attack complexity | High |
| Privileges needed | High |
| User interaction | None |
| EPSS exploit chance | 2.4% (top 16%) |
| CISA exploited list | No |
| Weakness | CWE-78 |
| Published | 2022-03-17 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2021-23632?
git: upgrade to newer than 0.1.5. Exact commands for each OS are on this page.
Is CVE-2021-23632 being exploited?
CVE-2021-23632 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2021-23632 affect?
CVE-2021-23632 affects git. Severity is medium (CVSS 6.6). 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 expl
How urgent is CVE-2021-23632?
Priority 49/100. Public exploit reference
Software pages
Related CVEs
- CVE-2023-23946 MEDIUM 6.2 UPGRADE Git, a revision control system, is vulnerable to path traversal prior to versions 2.39.2, 2.38.4, 2.37.6, 2.36
- CVE-2023-22490 MEDIUM 5.5 UPGRADE Git is a revision control system
- CVE-2025-48384 HIGH 8.0 EXPLOITED UPGRADE MITIGATE Git Link Following Vulnerability
- CVE-2025-66413 HIGH 7.4 UPGRADE Git for Windows is the Windows port of Git
- CVE-2024-52006 HIGH 7.5 UPGRADE MITIGATE Git is a fast, scalable, distributed revision control system with an unusually rich command set that provides