{"id":"CVE-2022-25766","aliases":["CVE-2022-25766","GHSA-hf8c-xr89-vfm5","SNYK-JS-UNGIT-2414099"],"related":[],"kind":"vulnerability","state":"published","title":"Remote Code Execution (RCE)","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"El paquete ungit versiones anteriores a 1.5.20, es vulnerable a una Ejecución de Código Remota (RCE) por medio de la inyección de argumentos. El problema ocurre cuando es llamado al endpoint /api/fetch. Los valores controlados por el usuario (remote y ref) son pasados al comando git fetch. Inyectando algunas opciones de git era posible conseguir una ejecución arbitraria del comando","source":"nvd"}],"published":"2022-03-21T17:15:16.570Z","modified":"2026-07-08T06:49:57.986Z","severity":{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:S/C:P/I:P/A:P","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-77","CWE-88"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"1.5.20","status":"affected"}],"product":"ungit","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.5.20"}],"ecosystem":"npm","package":"ungit","purl":"pkg:npm/ungit","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.5.20"}],"vendor":"ungit_project","product":"ungit","cpe":"cpe:2.3:a:ungit_project:ungit:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-UNGIT-2414099","tags":["release-notes","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/FredrikNoren/ungit/pull/1510","tags":["exploit","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/FredrikNoren/ungit/blob/master/CHANGELOG.md%231520","tags":["broken-link","release-notes","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25766","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/FredrikNoren/ungit/pull/1511","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/FredrikNoren/ungit","tags":["package"],"sources":["ghsa"]}],"credits":["Alessio Della Libera of Snyk Research Team"],"assigner":"snyk","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-25766","url":"https://www.cve.org/CVERecord?id=CVE-2022-25766","licence":"CVE Terms of Use","modified":"2024-09-16T22:41:07.983Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-hf8c-xr89-vfm5","url":"https://github.com/advisories/GHSA-hf8c-xr89-vfm5","licence":"CC-BY-4.0","modified":"2026-07-08T06:49:57.986Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-25766","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25766","licence":"Public domain","modified":"2026-06-17T04:34:14.510Z"}],"updatedAt":"2026-11-25T22:58:10.210Z","epss":{"score":0.34543,"percentile":0.98451,"date":"2026-12-01T12:00:22.000Z"}}