{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-30781","id":"CVE-2022-30781","title":"Shell command injection in gitea","description":"Gitea before 1.16.7 does not escape git fetch remote.","descriptionLong":"Gitea before 1.16.7 does not escape git fetch remote.","published":"2022-05-16T00:00:00.000Z","updated":"2026-10-28T02:30:26.765245142Z","reserved":"2022-05-16T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"mitre","metric":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","rating":"high","source":"NVD"},"metrics":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","rating":"high","source":"NVD"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","rating":"high","source":"GitHub"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:N/I:P/A:N","rating":"medium","source":"NVD"}],"rating":"high","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"version":"n/a","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"Go","name":"code.gitea.io/gitea","purl":"pkg:golang/code.gitea.io/gitea","ranges":["<1.16.7"],"fixed":["1.16.7"],"advisory":"GHSA-p5f9-c9j9-g8qx"}],"cwes":["CWE-116"],"aliases":["BIT-gitea-2022-30781","GHSA-p5f9-c9j9-g8qx","GO-2022-0450"],"references":[{"url":"https://github.com/go-gitea/gitea/pull/19490","tags":["x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://github.com/go-gitea/gitea/pull/19487","tags":["x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://blog.gitea.io/2022/05/gitea-1.16.7-is-released/","tags":["x_transferred","Release Notes","Vendor Advisory","article"]},{"url":"http://packetstormsecurity.com/files/168400/Gitea-1.16.6-Remote-Code-Execution.html","tags":["x_transferred","Exploit","Third Party Advisory","VDB Entry","web"]},{"url":"http://packetstormsecurity.com/files/169928/Gitea-Git-Fetch-Remote-Code-Execution.html","tags":["x_transferred","Exploit","Third Party Advisory","VDB Entry","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/30xxx/CVE-2022-30781.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-30781","tags":["advisory"]},{"url":"https://blog.gitea.io/2022/05/gitea-1.16.7-is-released","tags":["web"]},{"url":"https://github.com/go-gitea/gitea","tags":["package"]},{"url":"https://github.com/advisories/GHSA-p5f9-c9j9-g8qx","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.8793,"epssPercentile":0.99767,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-30781","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-30781","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-30781","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-p5f9-c9j9-g8qx","ok":true,"note":"GHSA-p5f9-c9j9-g8qx"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-30781","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":["EPSS 88% with CVSS 7.5"],"attention":null}