{"id":"CVE-2022-25766","aliases":["GHSA-hf8c-xr89-vfm5","SNYK-JS-UNGIT-2414099"],"url":"https://o3.security/vulnerability/CVE-2022-25766","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.","published":"2022-03-21T17:15:16.570Z","modified":"2026-08-12T03:51:38.797710949Z","cvss":{"score":8.8,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"},"epss":null,"cisaKev":null,"exploitsKnown":1,"affectedPackages":[{"ecosystem":"npm","name":"ungit","fixedVersion":"1.5.20"}],"fix":{"url":"https://github.com/FredrikNoren/ungit/pull/1510","label":"FredrikNoren/ungit#1510"},"references":[{"type":"WEB","url":"https://github.com/FredrikNoren/ungit/blob/master/CHANGELOG.md%231520"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/25xxx/CVE-2022-25766.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25766"},{"type":"ADVISORY","url":"https://snyk.io/vuln/SNYK-JS-UNGIT-2414099"},{"type":"FIX","url":"https://github.com/FredrikNoren/ungit/pull/1510"},{"type":"WEB","url":"https://github.com/FredrikNoren/ungit/pull/1511"},{"type":"PACKAGE","url":"https://github.com/FredrikNoren/ungit"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:38.797710949Z"}}