Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2021-23632: All versions of package git are vulnerable to Remote Code Execution (RCE) due to missing sanitization in the G

49
This month
MEDIUM 6.6UPGRADE

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 score6.6 (Medium)
Attack vectorNetwork (remote)
Attack complexityHigh
Privileges neededHigh
User interactionNone
EPSS exploit chance2.4% (top 16%)
CISA exploited listNo
WeaknessCWE-78
Published2022-03-17
Last modified2026-06-17
Publisher (CNA): Snyk · Vendor: git project

Share: LinkedIn · X · Reddit

Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

git project git UPGRADE
Affected: <= 0.1.5
Fixed in: newer than 0.1.5
Safe to downgrade to: no unaffected older release
1. Check installed version
npm ls git
2. UPGRADE to newer than 0.1.5
npm install git@">0.1.5"
Verify at the official source NVD · CVE Program · Report a problem with this page
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

Git vulnerabilities

Related CVEs

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.