{"id":"CVE-2022-25766","aliases":["EUVD-2022-1441","GHSA-hf8c-xr89-vfm5","SNYK-JS-UNGIT-2414099"],"status":"published","title":"Remote Code Execution (RCE)","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.","severity":{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-11","score":0.34543,"percentile":0.9844,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-77","CWE-88"],"published":"2022-03-21T17:15:16Z","modified":"2026-10-28T02:30:37Z","fixes":[{"ecosystem":"npm","package":"ungit","fixed_in":["1.5.20"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"ungit","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.5.20"}]}]},{"source":"osv","ecosystem":"npm","package":"ungit","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.5.20"}]}]}],"products":[{"vendor":"ungit_project","product":"ungit"}],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-UNGIT-2414099","tags":["x_refsource_MISC","x_transferred","Release Notes","Third Party Advisory","advisory","web"]},{"url":"https://github.com/FredrikNoren/ungit/pull/1510","tags":["x_refsource_MISC","x_transferred","Exploit","Patch","Third Party Advisory","fix","web"]},{"url":"https://github.com/FredrikNoren/ungit/blob/master/CHANGELOG.md%231520","tags":["x_refsource_MISC","x_transferred","Broken Link","Release Notes","Third Party Advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25766","tags":["advisory"]},{"url":"https://github.com/FredrikNoren/ungit/pull/1511","tags":["web"]},{"url":"https://github.com/advisories/GHSA-hf8c-xr89-vfm5"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/25xxx/CVE-2022-25766.json","tags":["advisory"]},{"url":"https://github.com/FredrikNoren/ungit","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2022-25766","title":"Remote Code Execution (RCE)","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.","status":"published","published":"2022-03-21T17:15:16.57Z","modified":"2024-09-16T22:41:07.983Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"cna"}],"updated_at":"2026-11-02T14:34:28.707644Z"}],"euvd":[{"id":"EUVD-2022-1441","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.","status":"published","published":"2022-03-21T17:15:16Z","modified":"2024-09-16T22:41:07Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-03T00:55:00.660655Z"}],"ghsa":[{"id":"GHSA-hf8c-xr89-vfm5","title":"Command Injection in ungit","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.","status":"published","published":"2022-03-22T00:00:41Z","modified":"2023-01-27T05:00:58Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-77"],"updated_at":"2026-11-02T14:36:15.574072Z"}],"nvd":[{"id":"CVE-2022-25766","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.","status":"published","published":"2022-03-21T18:15:07.99Z","modified":"2026-06-17T04:34:14.51Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"secondary"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":6.5,"vector":"AV:N/AC:L/Au:S/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-88"],"updated_at":"2026-11-02T14:07:14.24948Z"}],"osv":[{"id":"CVE-2022-25766","title":"Remote Code Execution (RCE)","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.","status":"published","published":"2022-03-21T17:15:16.57Z","modified":"2026-10-28T02:30:37.399971957Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:24.758293Z"},{"id":"GHSA-hf8c-xr89-vfm5","title":"Command Injection in ungit","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.","status":"published","published":"2022-03-22T00:00:41Z","modified":"2026-07-08T06:49:57.986467761Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-77"],"updated_at":"2026-11-02T15:46:48.920784Z"}]}}
