# CVE-2022-24437: Command Injection

- Severity: Critical 9.8 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:L/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-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2022-05-01T15:20:15.509Z
- Modified: 2026-07-08T06:49:59.349Z
- Also known as: GHSA-3x62-x456-q2vm, SNYK-JS-GITPULLORCLONE-2434307
- Weaknesses: CWE-77, CWE-78, CWE-88
- Assigned by: snyk

## Description

The package git-pull-or-clone before 2.0.2 are vulnerable to Command Injection due to the use of the --upload-pack feature of git which is also supported for git clone. The source includes the use of the secure child process API spawn(). However, the outpath parameter passed to it may be a command-line argument to the git clone command and result in arbitrary command injection.

(As written by CVE List.)

## Affected

- git-pull-or-clone: from unspecified before 2.0.2
- git-pull-or-clone (npm): before 2.0.2
- git-pull-or-clone_project git-pull-or-clone: before 2.0.2

## Every score

- snyk: 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`
- 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`
- 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-GITPULLORCLONE-2434307> (exploit, third-party-advisory, web)
- <https://gist.github.com/lirantal/327e9dd32686991b5a1fa6341aac2e7b> (exploit, third-party-advisory, web)
- <https://github.com/feross/git-pull-or-clone/commit/f9ce092be13cc32e685dfa26e7705e9c6e3108a3> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-24437> (advisory)
- <https://github.com/feross/git-pull-or-clone> (package)

## Sources

- CVE List: [CVE-2022-24437](https://www.cve.org/CVERecord?id=CVE-2022-24437), CVE Terms of Use, modified 2024-09-16
- GitHub Advisory Database: [GHSA-3x62-x456-q2vm](https://github.com/advisories/GHSA-3x62-x456-q2vm), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2022-24437](https://nvd.nist.gov/vuln/detail/CVE-2022-24437), Public domain, modified 2026-06-17

---

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