{"id":"GHSA-hf8c-xr89-vfm5","revision":"f4f63da5be51418fae1309040eaff57a","records":[{"revision":"f4f63da5be51418fae1309040eaff57a","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-hf8c-xr89-vfm5","aliases":["CVE-2022-25766","SNYK-JS-UNGIT-2414099"],"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.","state":0,"publishedAt":"2022-03-22T00:00:41+00:00","modifiedAt":"2026-07-08T06:49:57.9864678+00:00","affected":[{"ecosystem":"npm","name":"ungit","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.5.20"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://nvd.nist.gov/vuln/detail/CVE-2022-25766","https://github.com/FredrikNoren/ungit/pull/1510","https://github.com/FredrikNoren/ungit/pull/1511","https://github.com/FredrikNoren/ungit","https://github.com/FredrikNoren/ungit/blob/master/CHANGELOG.md%231520","https://snyk.io/vuln/SNYK-JS-UNGIT-2414099"],"sourceUrl":"https://github.com/advisories/GHSA-hf8c-xr89-vfm5","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-hf8c-xr89-vfm5","identifiers":["GHSA-hf8c-xr89-vfm5","CVE-2022-25766","SNYK-JS-UNGIT-2414099"]},"retained":false,"historicalAffected":[]}],"coverage":[]}