{"id":"CVE-2022-25766","published":"2022-03-21T17:15:16Z","modified":"2024-09-16T22:41:07Z","title":"Remote Code Execution (RCE)","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.03051,"percentile":0.8829,"provenance":"source"},"cwes":[],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-UNGIT-2414099","tags":["x_refsource_MISC"]},{"url":"https://github.com/FredrikNoren/ungit/pull/1510","tags":["x_refsource_MISC"]},{"url":"https://github.com/FredrikNoren/ungit/blob/master/CHANGELOG.md%231520","tags":["x_refsource_MISC"]}],"priority":{"score":23.8,"factors":[{"name":"EPSS percentile","points":17.66},{"name":"CVSS severity","points":6.16}]},"affectedVersions":[{"vendor":"n/a","product":"ungit","versions":[">= unspecified, < 1.5.20"]}],"affected":[{"ecosystem":"npm","package":"ungit","vulnerableRanges":["<1.5.20"],"patched":["1.5.20"],"from":["GHSA-hf8c-xr89-vfm5"],"provenance":"source"}],"summary":{"text":"The flaw is an argument injection vulnerability in the ungit package (versions before 1.5.20) affecting its /api/fetch endpoint, where user-controlled values for the remote and ref parameters are passed unsanitised to the git fetch command. An attacker who can reach that endpoint and hold low-privilege credentials can inject git options to achieve arbitrary command execution, with no user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:32:08Z"},"euvd":{"id":"EUVD-2022-1441","exploited":false,"provenance":"source"}}