# CVE-2022-24433: Command Injection

- 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`
- 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.74%, higher than 90% of CVEs (2026-12-02)
- Published: 2022-03-11T16:15:14.245Z
- Modified: 2026-06-17T04:31:50.193Z
- Also known as: GHSA-3f95-r44v-8mrg
- Weaknesses: CWE-74, CWE-77, CWE-88
- Assigned by: snyk

## Description

The package simple-git before 3.3.0 are vulnerable to Command Injection via argument injection. When calling the .fetch(remote, branch, handlerFn) function, both the remote and branch parameters are passed to the git fetch subcommand. By injecting some git options it was possible to get arbitrary command execution.

(As written by CVE List.)

## Affected

- simple-git: from unspecified before 3.3.0
- simple-git (npm): before 3.3.0
- simple-git_project simple-git: before 3.3.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`
- GitHub: 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`
- 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`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://snyk.io/vuln/SNYK-JS-SIMPLEGIT-2421199> (patch, third-party-advisory, web)
- <https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-2421245> (patch, third-party-advisory, web)
- <https://github.com/steveukx/git-js/pull/767> (patch, third-party-advisory, web)
- <https://github.com/steveukx/git-js/releases/tag/simple-git%403.3.0> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-24433> (advisory)
- <https://github.com/steveukx/git-js> (package)

## Sources

- CVE List: [CVE-2022-24433](https://www.cve.org/CVERecord?id=CVE-2022-24433), CVE Terms of Use, modified 2024-09-16
- GitHub Advisory Database: [GHSA-3f95-r44v-8mrg](https://github.com/advisories/GHSA-3f95-r44v-8mrg), CC-BY-4.0, modified 2025-01-14
- NVD: [CVE-2022-24433](https://nvd.nist.gov/vuln/detail/CVE-2022-24433), Public domain, modified 2026-06-17

---

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