MidnightBSD

Advisories for git_project

CVE-2015-7082 HIGH

Multiple unspecified vulnerabilities in Git before 2.5.4, as used in Apple Xcode before 7.2, have unknown impact and attack vectors. NOTE: this CVE is associated only with Xcode use cases.

CVSS 2.0

Severity: HIGH

Problem Type: NVD-CWE-noinfo,

Products Affected

Vendor Product Version
git_project git *
CVE-2015-7545 HIGH

The (1) git-remote-ext and (2) unspecified other remote helper programs in Git before 2.3.10, 2.4.x before 2.4.10, 2.5.x before 2.5.4, and 2.6.x before 2.6.1 do not properly restrict the allowed protocols, which might allow remote attackers to execute arbitrary code via a URL in a (a) .gitmodules file or (b) unknown other sources in a submodule.

CVSS 2.0

Severity: HIGH

Problem Type: CWE-20,CWE-284,

Products Affected

Vendor Product Version
git_project git 2.4.2
git_project git 2.4.7
git_project git 2.4.9
git_project git 2.4.4
git_project git 2.5.2
redhat software_collections 1.0
git_project git 2.6.0
git_project git 2.4.6
git_project git 2.5.3
opensuse opensuse 13.2
git_project git 2.4.1
git_project git 2.4.5
git_project git 2.5.1
git_project git *
git_project git 2.5.0
git_project git 2.4.0
canonical ubuntu_linux 14.04
canonical ubuntu_linux 15.04
canonical ubuntu_linux 15.10
git_project git 2.4.8
opensuse opensuse 13.1
canonical ubuntu_linux 12.04
git_project git 2.4.3
CVE-2021-23632 HIGH

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 3.x

Source Score Severity Vector Exploitability Impact
report@snyk.io 6.6 MEDIUM CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H 0.7 5.9
nvd@nist.gov 9.8 CRITICAL CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H 3.9 5.9

CVSS 2.0

Severity: HIGH

Problem Type: CWE-78,

Products Affected

Vendor Product Version
git_project git *