{"id":"GHSA-p5f9-c9j9-g8qx","summary":"Shell command injection in gitea","details":"Gitea before 1.16.7 does not escape the shell out for `git fetch remote` allowing for shell command injection","aliases":["BIT-gitea-2022-30781","CVE-2022-30781","GO-2022-0450"],"modified":"2024-08-21T15:26:58.146441Z","published":"2022-05-17T00:01:46Z","database_specific":{"cwe_ids":["CWE-116"],"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2022-05-25T20:14:36Z","nvd_published_at":"2022-05-16T04:15:00Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-30781"},{"type":"WEB","url":"https://github.com/go-gitea/gitea/pull/19487"},{"type":"WEB","url":"https://github.com/go-gitea/gitea/pull/19490"},{"type":"WEB","url":"https://blog.gitea.io/2022/05/gitea-1.16.7-is-released"},{"type":"PACKAGE","url":"https://github.com/go-gitea/gitea"},{"type":"WEB","url":"http://packetstormsecurity.com/files/168400/Gitea-1.16.6-Remote-Code-Execution.html"},{"type":"WEB","url":"http://packetstormsecurity.com/files/169928/Gitea-Git-Fetch-Remote-Code-Execution.html"}],"affected":[{"package":{"name":"code.gitea.io/gitea","ecosystem":"Go","purl":"pkg:golang/code.gitea.io/gitea"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.16.7"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-p5f9-c9j9-g8qx/GHSA-p5f9-c9j9-g8qx.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"}]}