CVE-2022-30781
mediumpriority · attend · 71EPSS 0.879 · 100 %ileexploit · weaponizedEUUSEPSS · scored 2026-10-26
Gitea before 1.16.7 does not escape git fetch remote.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 5–7.5
weaknesses
The CWE weakness classes this flaw belongs to.
exploits (3)
Public proof-of-concept and weaponised exploit code.
- exploit/multi/http/gitea_git_fetch_rceGitea Git Fetch Remote Code Executionweaponized · metasploit
- EDB-51009Gitea 1.16.6 - Remote Code Execution (RCE) (Metasploit)functional · exploit_db
affected products (4)
Products and version ranges known to be affected.
advisories (3)
Vendor and ecosystem advisories describing this.
- GHSA-p5f9-c9j9-g8qxShell command injection in gitea2022-05-17ghsa · osvUS
Gitea before 1.16.7 does not escape the shell out for `git fetch remote` allowing for shell command injection
- BIT-gitea-2022-307812024-03-06vendor · osvUS
Gitea before 1.16.7 does not escape git fetch remote.
- GO-2022-0450Shell command injection in gitea in code.gitea.io/gitea2024-08-21vendor · osvUS
Shell command injection in gitea in code.gitea.io/gitea
also known as (6)
Other names and identifiers for this entity.
- CNNVD-202205-3399cnnvd
- EUVD-2022-4684enisa_euvd
- GHSA-p5f9-c9j9-g8qxenisa_euvd
- BIT-gitea-2022-30781osv
- GHSA-p5f9-c9j9-g8qxosv
- GO-2022-0450osv
sources
Which sources assert this record, and when.
references (19)
External citations — patches, advisories, analysis.
- https://blog.gitea.io/2022/05/gitea-1.16.7-is-released/cnnvd
- https://cxsecurity.com/cveshow/CVE-2022-30781/cnnvd
- https://cxsecurity.com/issue/WLB-2022090040cnnvd
- https://github.com/go-gitea/gitea/pull/19487cnnvd
- https://github.com/go-gitea/gitea/pull/19490cnnvd
- https://packetstormsecurity.com/files/168400/Gitea-1.16.6-Remote-Code-Execution.htmlcnnvd
- https://packetstormsecurity.com/files/169928/Gitea-Git-Fetch-Remote-Code-Execution.htmlcnnvd
- https://www.cybersecurity-help.cz/vdb/SB2022060803cnnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan