Vulnerability · Published Mar 21, 2022 · Assigned by snyk
CVE-2022-25766Remote Code Execution (RCE)
High 8.8
In plain English
A high-severity security flaw in ungit. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 34.5% (higher than 98% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)8.8High
Exploit odds (30 days)34.5%top 1.6% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | ungit | 1.5.20 | GHSA-hf8c-xr89-vfm5 |
Affected products (as reported)
References
- https://snyk.io/vuln/SNYK-JS-UNGIT-2414099 x_refsource_MISC
- https://github.com/FredrikNoren/ungit/pull/1510 x_refsource_MISC
- https://github.com/FredrikNoren/ungit/blob/master/CHANGELOG.md%231520 x_refsource_MISC