# CVE-2022-25766: Remote Code Execution (RCE)

- Severity: High 8.8 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:L/PR:L/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): 34.5%, higher than 98% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-03-21T17:15:16.570Z
- Modified: 2026-07-08T06:49:57.986Z
- Also known as: GHSA-hf8c-xr89-vfm5, SNYK-JS-UNGIT-2414099
- Weaknesses: CWE-77, CWE-88
- Assigned by: snyk

## Description

The package ungit before 1.5.20 are vulnerable to Remote Code Execution (RCE) via argument injection. The issue occurs when calling the /api/fetch endpoint. User controlled values (remote and ref) are passed to the git fetch command. By injecting some git options it was possible to get arbitrary command execution.

(As written by CVE List.)

## Affected

- ungit: from unspecified before 1.5.20
- ungit (npm): before 1.5.20
- ungit_project ungit: before 1.5.20

## Every score

- snyk: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.5 Medium `AV:N/AC:L/Au:S/C:P/I:P/A:P`

## References

- <https://github.com/FredrikNoren/ungit/pull/1510> (exploit, patch, third-party-advisory, web)
- <https://snyk.io/vuln/SNYK-JS-UNGIT-2414099> (release-notes, third-party-advisory, web)
- <https://github.com/FredrikNoren/ungit/blob/master/CHANGELOG.md%231520> (broken-link, release-notes, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-25766> (advisory)
- <https://github.com/FredrikNoren/ungit/pull/1511> (web)
- <https://github.com/FredrikNoren/ungit> (package)

## Sources

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

---

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