What’s Vulnerable › Vulnerabilities
CVE-2022-30781
- Severity: high (CVSS 7.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 87.9% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2022-05-16 · updated 2026-06-17
- Weakness: CWE-116
Description
Gitea before 1.16.7 does not escape git fetch remote.
Affected products
- Gitea Open Source Git Server: before 1.16.7 — fixed in 1.16.7
How to fix
Upgrade to a fixed version: Gitea Open Source Git Server 1.16.7. Check the vendor advisory for mitigations.
References
- http://packetstormsecurity.com/files/168400/Gitea-1.16.6-Remote-Code-Execution.html
- http://packetstormsecurity.com/files/169928/Gitea-Git-Fetch-Remote-Code-Execution.html
- https://blog.gitea.io/2022/05/gitea-1.16.7-is-released/
- https://github.com/go-gitea/gitea/pull/19487
- https://github.com/go-gitea/gitea/pull/19490
- http://packetstormsecurity.com/files/168400/Gitea-1.16.6-Remote-Code-Execution.html
- http://packetstormsecurity.com/files/169928/Gitea-Git-Fetch-Remote-Code-Execution.html
- https://blog.gitea.io/2022/05/gitea-1.16.7-is-released/
- https://github.com/go-gitea/gitea/pull/19487
- https://github.com/go-gitea/gitea/pull/19490
Get alerted when CVE-2022-30781 or the next vulnerability affects your stack