Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. simple-git
  4. ›
  5. CVE-2022-24433

CVE-2022-24433: Improper Neutralization of Special Elements used in a Command ('Command Injection')

March 11, 2022 (updated August 8, 2023)

The package simple-git before 3.3.0 is vulnerable to Command Injection via argument injection. When calling the .fetch(remote, branch, handlerFn) function, both the remote and branch parameters are passed to the git fetch subcommand. By injecting some git options it was possible to get arbitrary command execution.

References

  • github.com/advisories/GHSA-3f95-r44v-8mrg
  • github.com/steveukx/git-js/pull/767
  • github.com/steveukx/git-js/releases/tag/simple-git%403.3.0
  • nvd.nist.gov/vuln/detail/CVE-2022-24433
  • snyk.io/vuln/SNYK-JS-SIMPLEGIT-2421199

Code Behaviors & Features

Detect and mitigate CVE-2022-24433 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 3.3.0

Fixed versions

  • 3.3.0

Solution

Upgrade to version 3.3.0 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-88: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')

Source file

npm/simple-git/CVE-2022-24433.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:27 +0000.