CVE-2022-25766 in the critical feed json
Remote Code Execution (RCE)
published 2022-03-21 4 y ago modified 2026-07-08 4 mo ago also GHSA-hf8c-xr89-vfm5 , EUVD-2022-1441
- cvss
- 8.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 34.5%
- EPSS 34.5% chance of exploitation in 30 days, percentile 98%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm ungit 1.5.20
- n/a ungit 1.5.20
- github.com/FredrikNoren/ungit#1510 pull request
- github.com/FredrikNoren/ungit#1511 pull request
Exploit prediction
34.54% chance of exploitation in the next 30 days, higher than 98% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/FredrikNoren/ungit/pull/1510 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 6.5 | AV:N/AC:L/Au:S/C:P/I:P/A:P |
| GitHub | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | ungit | <1.5.20 |
1.5.20 |
Affected products
- n/a ungit
Classification
References
-
github.com
/FredrikNoren/ungit/pull/1510
web, exploit, patch, third-party-advisory
-
github.com
/FredrikNoren/ungit/pull/1511
web
-
snyk.io
/vuln/SNYK-JS-UNGIT-2414099
web, release-notes, third-party-advisory
-
github.com
/FredrikNoren/ungit/blob/master/CHANGELOG.md%231520
web, broken-link, release-notes, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-25766
advisory
-
github.com
/FredrikNoren/ungit
package
Sources
- CVE List CVE-2022-25766
- GitHub Advisory GHSA-hf8c-xr89-vfm5
- NVD CVE-2022-25766
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.