CVE-2022-25860
Published: 26 January 2023
Summary
CVE-2022-25860 is a high-severity Code Injection (CWE-94) vulnerability in Simple-Git Project Simple-Git. Its CVSS base score is 8.1 (High).
Operationally, ranked in the top 2.9% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.
Deeper analysis
Versions of the simple-git npm package before 3.16.0 are vulnerable to remote code execution through the clone(), pull(), push(), and listRemote() methods. The root cause is incomplete input sanitization that allows command injection; the issue is an incomplete remediation of the earlier CVE-2022-25912 flaw. The vulnerability received a CVSS 3.1 score of 8.1.
An unauthenticated remote attacker who can supply crafted repository URLs or remote references can execute arbitrary operating-system commands on the host running simple-git. Successful exploitation grants full control over confidentiality, integrity, and availability of the affected process and its environment, although the attack requires a high-complexity condition.
Public advisories and the project repository point to the fix shipped in commit ec97a39 and the associated pull request 881. Upgrading to simple-git 3.16.0 or later eliminates the injection vectors in the listed methods.
EPSS for the CVE rose from a low baseline to a recorded peak of 0.4453 (current value 0.3473), indicating that exploitation interest increased measurably after public disclosure.
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2023-0435
Vulnerability details
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).
- CWE(s)
Related Threats
No named actor attribution yet. ATT&CK technique mapping in progress for this CVE.
Affected Assets
Mitigating Controls
Likely Mitigating Controls AI
Per-CVE control mapping for this CVE has not run yet; the list below is derived from the weakness types (CWEs) cited in the NVD entry.
Validates inputs to block special elements that would alter OS command execution.
Platform-independent apps typically execute inside a managed runtime or sandbox that restricts direct OS command execution, reducing the ability to exploit OS command injection.
Makes persistent code injection into loaded programs impossible when the executable image itself resides on hardware-protected read-only media.
Dynamically generated code can be produced and executed inside the isolated chamber, preventing host compromise from code-injection payloads.
Directly prevents execution of attacker-supplied code written into data memory regions.