Cyber Resilience

CVE-2022-25860

HighPublic PoCRCE

Published: 26 January 2023

Published
26 January 2023
Modified
01 April 2025
KEV Added
Patch
CVSS Score v3.1 8.1 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS Score 0.3473 97.1th percentile
Risk Priority 37 60% EPSS · 20% KEV · 20% CVSS

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

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

simple-git project
simple-git
≤ 3.16.0

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.

addresses: CWE-78 CWE-94

Validates inputs to block special elements that would alter OS command execution.

addresses: CWE-78

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.

addresses: CWE-94

Makes persistent code injection into loaded programs impossible when the executable image itself resides on hardware-protected read-only media.

addresses: CWE-94

Dynamically generated code can be produced and executed inside the isolated chamber, preventing host compromise from code-injection payloads.

addresses: CWE-94

Directly prevents execution of attacker-supplied code written into data memory regions.

References