{"id":"CVE-2022-42968","published":"2022-10-16T00:00:00Z","modified":"2025-05-14T14:34:03Z","title":"Gitea before 1.17.3 does not sanitize and escape refs in the git backend","vendor":null,"product":null,"tier":"tail","description":{"text":"Gitea before 1.17.3 does not sanitize and escape refs in the git backend. Arguments to git commands are mishandled.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.01431,"percentile":0.73693,"provenance":"source"},"cwes":[{"id":"CWE-88","name":"Improper Neutralization of Argument Delimiters in a Command"}],"references":[{"url":"https://github.com/go-gitea/gitea/pull/21463","tags":[]},{"url":"https://github.com/go-gitea/gitea/releases/tag/v1.17.3","tags":[]},{"url":"https://security.gentoo.org/glsa/202210-14","tags":["vendor-advisory"]}],"priority":{"score":21.6,"factors":[{"name":"EPSS percentile","points":14.74},{"name":"CVSS severity","points":6.86}]},"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2025-05-14T14:33:59.973332Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/go-gitea/gitea","vulnerableRanges":["<1.17.3"],"patched":["1.17.3"],"from":["GHSA-w8xw-7crf-h23x"],"provenance":"source"},{"ecosystem":"Go","package":"code.gitea.io/gitea","vulnerableRanges":["<1.17.3"],"patched":["1.17.3"],"from":["GO-2022-1065"],"provenance":"source"}],"summary":{"text":"The flaw is in Gitea's git backend, in versions before 1.17.3, where refs are not sanitized or escaped, so arguments passed to git commands are mishandled. An attacker can exploit this by sending crafted input over the network with no privileges and no user interaction required, since the attack vector is network-reachable and needs only low complexity.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:52:19Z"},"euvd":{"id":"EUVD-2022-7173","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2020-13246","published":"2020-05-20","fixed":"1.12.0","kev":false},{"cve":"CVE-2020-28991","published":"2020-11-24","fixed":"1.12.6","kev":false},{"cve":"CVE-2021-3382","published":"2021-02-05","fixed":"1.13.2","kev":false,"link":{"from":"CVE-2021-3382","to":"CVE-2022-42968","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/go-gitea/gitea","fromFixed":"1.13.2","toFixed":"1.17.3","daysApart":618}]}},{"cve":"CVE-2022-42968","published":"2022-10-16","fixed":"1.17.3","kev":false},{"cve":"CVE-2026-20750","published":"2026-01-22","fixed":"1.25.4","kev":false},{"cve":"CVE-2026-20800","published":"2026-01-22","fixed":"1.25.4","kev":false},{"cve":"CVE-2026-20883","published":"2026-01-22","fixed":"1.25.4","kev":false}],"package":"Go:github.com/go-gitea/gitea"}}