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
Link | Resource |
---|---|
https://github.com/FredrikNoren/ungit/blob/master/CHANGELOG.md%231520 | Broken Link Release Notes Third Party Advisory |
https://github.com/FredrikNoren/ungit/pull/1510 | Exploit Patch Third Party Advisory |
https://snyk.io/vuln/SNYK-JS-UNGIT-2414099 | Release Notes Third Party Advisory |
Configurations
History
No history.
Information
Published : 2022-03-21 18:15
Updated : 2023-08-08 14:21
NVD link : CVE-2022-25766
Mitre link : CVE-2022-25766
CVE.ORG link : CVE-2022-25766
JSON object : View
Products Affected
ungit_project
- ungit
CWE
CWE-88
Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')