CVE-2022-25766
Dashboard / Vulnerabilities / CVE-2022-25766
CVE-2022-25766
Published: 21 Mar 2022Last Modified: 12 Aug 2026
Summary: Remote Code Execution (RCE)
Details: 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.
References: https://github.com/FredrikNoren/ungit/blob/master/CHANGELOG.md%231520, https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/25xxx/CVE-2022-25766.json, https://nvd.nist.gov/vuln/detail/CVE-2022-25766, https://snyk.io/vuln/SNYK-JS-UNGIT-2414099, https://github.com/FredrikNoren/ungit/pull/1510
Affected packages
Package
Name:
Purl:
Affected ranges
Affected versions
v1.5.19
v1.5.18
v1.5.17
v1.5.16
v1.5.15
v1.5.14
v1.5.13
v1.5.12
v1.5.11
v1.5.10
v1.5.9
v1.5.8
v1.5.7
v1.5.6
v1.5.5
v1.5.4
v1.5.3
v1.5.2
v1.5.1
v1.5.0
Common Vulnerability Scoring System
Attack Vector
Network
Adjacent
Local
Physical
Privileges Required
None
Low
High
User Interaction
None
Required
Scope
Unchanged
Changed
Confidentiality
None
Low
High
Integrity
None
Low
High
Availability
None
Low
High
