CVE-2022-25860: simple-git_project simple-git OS Command Injection
Vulnerability summary
CVE-2022-25860 is a critical (CVSS 9.8) OS Command Injection vulnerability in simple-git_project simple-git. EPSS estimates a 2.71% chance of exploitation in the next 30 days, higher than 85.7% of scored vulnerabilities. 1 public exploit is recorded.
Timeline
- 24-01-2023PublishedVulnerability first disclosed.
- 01-04-2025Last modifiedVulnerability information updated.
Description
Versions of the package simple-git before 3.16.0 are vulnerable to Remote Code Execution (RCE) via the clone(), pull(), push() and listRemote() methods, due to improper input sanitization. This vulnerability exists due to an incomplete fix of [CVE-2022-25912](https://security.snyk.io/vuln/SNYK-JS-SIMPLEGIT-3112221).
CVSS metrics
4 scores · 4 sources · 1 version- CVE.orgCNA8.1HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:PDiffers
- OSV · NpmEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- wordfenceSource8.1HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:HDiffers
EPSS trend
Probability
2.71%
Chance of exploitation in the next 30 days
Percentile
86%
Versus all other CVEs
30-day change
0.00 pp
From 2.71% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundExploit Reference (security.snyk.io)
Maturity: unknown
Weaknesses
CWE · root cause- CWE-78Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
- CWE-94Improper Control of Generation of Code ('Code Injection')The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.
Affected systems
Wordpress6 products
- ads-txt≤ 1.4.2 (fixed in 1.4.3)
- insecure-content-warning≤ 1.0.3 (fixed in 1.1.0)
- maps-block-apple≤ 1.1.0 (fixed in 1.1.1)
- retro-winamp-block< 1.3.0
- simple-local-avatars≤ 2.7.3 (fixed in 2.7.4)
Npm1 product
- simple-git< 3.16.0
Simple-git_project1 product
- simple-git< 3.16.0
3 vendors · 8 products
References
5 links- github.com/steveukx/git-js/pull/881/commits/95459310e5b8f96e20bb77ef1a6559036b779e13WEBPatchThird Party Advisory
- github.com/steveukx/git-js/commit/ec97a39ab60b89e870c5170121cd9c1603cc1951WEBPatchThird Party Advisory