CVE-2022-25766Ungit Project Ungit
High 8.8
Follow: this CVE · Ungit Project · Ungit Project Ungit We alert you by email or Slack (account required).
- Priority
- 53
- CVSS 3.1
- 8.8
- EPSS
- 3.1% probability of exploitation in 30 days · percentile 88
- Auth required
- Yes
- Published
- Mar 21, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-88
- Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Ungit.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | ungit |
< 1.5.20 |
1.5.20 |
npm install ungit@1.5.20 |
Per OSV / GitHub Advisories (GHSA-hf8c-xr89-vfm5). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| ungit_project | ungit | < 1.5.20 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Broken Link Release Notes Third Party Advisory
- github.com Exploit Patch Third Party Advisory
- snyk.io Release Notes Third Party Advisory