Vulnerability record · CVE-2022-25766 · published 21 March 2022
CVE-2022-25766: Ungit project ungit argument injection vulnerability
UUngit Project · Ungit
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.
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.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Affected products
1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| https://github.com/FredrikNoren/ungit/blob/master/CHANGELOG.md%231520 | Broken LinkRelease NotesThird Party Advisory |
| https://github.com/FredrikNoren/ungit/pull/1510 | ExploitPatchThird Party Advisory |
| https://snyk.io/vuln/SNYK-JS-UNGIT-2414099 | Release NotesThird Party Advisory |
| https://github.com/FredrikNoren/ungit/blob/master/CHANGELOG.md%231520 | Broken LinkRelease NotesThird Party Advisory |
| https://github.com/FredrikNoren/ungit/pull/1510 | ExploitPatchThird Party Advisory |
| https://snyk.io/vuln/SNYK-JS-UNGIT-2414099 | Release NotesThird Party Advisory |
Track CVE-2022-25766 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2022-25766), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.