The package simple-git before 3.5.0 are vulnerable to Command Injection due to an incomplete fix of [CVE-2022-24433](https://security.snyk.io/vuln/SNYK-JS-SIMPLEGIT-2421199) which only patches against the git fetch attack vector. A similar use of the --upload-pack feature of git is also supported for git clone, which the prior fix didn't cover.
CVE-2022-24066 - High Severity Vulnerability
Vulnerable Library - simple-git-1.132.0.tgz
Simple GIT interface for node.js
Library home page: https://registry.npmjs.org/simple-git/-/simple-git-1.132.0.tgz
Path to dependency file: /package.json
Path to vulnerable library: /node_modules/simple-git/package.json
Dependency Hierarchy: - lint-staged-8.2.1.tgz (Root Library) - g-status-2.0.2.tgz - :x: **simple-git-1.132.0.tgz** (Vulnerable Library)
Found in HEAD commit: aeab869031be23faba5c5de38e09f27a58e99471
Found in base branch: master
Vulnerability Details
The package simple-git before 3.5.0 are vulnerable to Command Injection due to an incomplete fix of [CVE-2022-24433](https://security.snyk.io/vuln/SNYK-JS-SIMPLEGIT-2421199) which only patches against the git fetch attack vector. A similar use of the --upload-pack feature of git is also supported for git clone, which the prior fix didn't cover.
Publish Date: 2022-04-01
URL: CVE-2022-24066
CVSS 3 Score Details (8.1)
Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: High - Privileges Required: None - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: High - Integrity Impact: High - Availability Impact: High
For more information on CVSS3 Scores, click here.Suggested Fix
Type: Upgrade version
Origin: https://github.com/advisories/GHSA-28xr-mwxg-3qc8
Release Date: 2022-04-01
Fix Resolution (simple-git): 3.5.0
Direct dependency fix Resolution (lint-staged): 9.0.0
:rescue_worker_helmet: Automatic Remediation will be attempted for this issue.