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

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

December 6, 2022 (updated August 8, 2023)

The package simple-git before 3.15.0 is vulnerable to Remote Code Execution (RCE) when enabling the ext transport protocol, which makes it exploitable via clone() method. This vulnerability exists due to an incomplete fix of CVE-2022-24066.

References

  • github.com/steveukx/git-js/blob/main/docs/PLUGIN-UNSAFE-ACTIONS.md%23overriding-allowed-protocols
  • github.com/steveukx/git-js/commit/774648049eb3e628379e292ea172dccaba610504
  • github.com/steveukx/git-js/releases/tag/simple-git%403.15.0
  • nvd.nist.gov/vuln/detail/CVE-2022-25912
  • security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-3153532
  • security.snyk.io/vuln/SNYK-JS-SIMPLEGIT-3112221

Code Behaviors & Features

Detect and mitigate CVE-2022-25912 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.15.0

Fixed versions

  • 3.15.0

Solution

Upgrade to version 3.15.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-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Source file

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

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 14 May 2025 12:16:07 +0000.