CVE-2021-23632
Last modified
CVE-2021-23632 is a critical-severity vulnerability rated 9.8/10 on the CVSS scale. 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. EPSS estimates a 2.20% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Git Project | Git | <= 0.1.5 |
References
- https://snyk.io/vuln/SNYK-JS-GIT-1568518Exploit, Third Party Advisory
- https://snyk.io/vuln/SNYK-JS-GIT-1568518Exploit, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2021-23632?
How severe is CVE-2021-23632?
How do I fix CVE-2021-23632?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2021
- CVE-2021-2360Vulnerability in the Oracle Approvals Management product of …8.1
- CVE-2021-2361Vulnerability in the Oracle Advanced Inbound Telephony produ…8.1
- CVE-2021-2362Vulnerability in the Oracle Field Service product of Oracle …8.1
- CVE-2021-23624This affects the package dotty before 0.1.2. A type confusio…9.8
- CVE-2021-2363Vulnerability in the Oracle Public Sector Financials (Intern…8.1
- CVE-2021-23631This affects all versions of package convert-svg-core; all v…7.5
- CVE-2021-23639The package md-to-pdf before 5.0.0 are vulnerable to Remote …9.8
- CVE-2021-2364Vulnerability in the Oracle iSupplier Portal product of Orac…8.1
- CVE-2021-23648The package @braintree/sanitize-url before 6.0.0 are vulnera…6.1
- CVE-2021-2365Vulnerability in the Oracle Human Resources product of Oracl…8.1
- CVE-2021-23654This affects all versions of package html-to-csv. When there…9.8
- CVE-2021-2366Vulnerability in the Primavera P6 Enterprise Project Portfol…6.4
Are you affected by CVE-2021-23632?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
