# CVE-2022-25860: Remote code execution in simple-git

- Severity: High 8.1 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 3.00%, higher than 87% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-01-24T05:00:02.399Z
- Modified: 2026-06-17T04:34:24.360Z
- Also known as: GHSA-9w5j-4mwv-2wj8
- Weaknesses: CWE-78, CWE-94
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: snyk

## 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).

(As written by CVE List.)

## Affected

- simple-git: before 3.16.0
- simple-git (npm): before 3.16.0
- simple-git_project simple-git: before 3.16.0

## Every score

- snyk: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://security.snyk.io/vuln/SNYK-JS-SIMPLEGIT-3177391> (exploit, third-party-advisory, web)
- <https://github.com/steveukx/git-js/pull/881/commits/95459310e5b8f96e20bb77ef1a6559036b779e13> (patch, third-party-advisory, web)
- <https://github.com/steveukx/git-js/commit/ec97a39ab60b89e870c5170121cd9c1603cc1951> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-25860> (advisory)

## Sources

- CVE List: [CVE-2022-25860](https://www.cve.org/CVERecord?id=CVE-2022-25860), CVE Terms of Use, modified 2025-04-01
- GitHub Advisory Database: [GHSA-9w5j-4mwv-2wj8](https://github.com/advisories/GHSA-9w5j-4mwv-2wj8), CC-BY-4.0, modified 2025-04-01
- NVD: [CVE-2022-25860](https://nvd.nist.gov/vuln/detail/CVE-2022-25860), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-25860 · Whole record: https://cve.day/CVE-2022-25860.json · Rebuilt by cve.day 2026-11-25T22:58:18.327Z
