{"id":"GHSA-hf8c-xr89-vfm5","summary":"Command Injection in ungit","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.","aliases":["CVE-2022-25766","SNYK-JS-UNGIT-2414099"],"modified":"2026-05-01T04:12:19.109248619Z","published":"2022-03-22T00:00:41Z","database_specific":{"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2022-03-28T18:26:27Z","nvd_published_at":"2022-03-21T18:15:00Z","cwe_ids":["CWE-77"]},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25766"},{"type":"WEB","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"},{"type":"WEB","url":"https://github.com/FredrikNoren/ungit/blob/master/CHANGELOG.md%231520"},{"type":"WEB","url":"https://snyk.io/vuln/SNYK-JS-UNGIT-2414099"}],"affected":[{"package":{"name":"ungit","ecosystem":"npm","purl":"pkg:npm/ungit"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.5.20"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/03/GHSA-hf8c-xr89-vfm5/GHSA-hf8c-xr89-vfm5.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}