CVE-2022-30781Gitea before 1.16.7 does not escape git fetch remote.
- 7.5HighCVSS base score
- 87.9%Exploitation in 30 daysEPSS · top 0.2% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- 2Public exploitsMetasploit, Nuclei and Exploit-DB
Description
Gitea before 1.16.7 does not escape git fetch remote.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. The public collections list a Metasploit module and an Exploit-DB entry for it.
Show the exploits2
Metasploit modules1 module
- Gitea Git Fetch Remote Code Execution (Metasploit module) (opens in a new tab)
exploit/multi/http/gitea_git_fetch_rceRank excellentdisclosed 16 May 2022
Exploit-DB1 entry
- Gitea 1.16.6 - Remote Code Execution (RCE) (Metasploit) (Exploit-DB entry) (opens in a new tab)
EDB-ID 51009webapps, multiplepublished 15 Sept 2022Verified
Modules, templates and exploits as listed by the Metasploit Framework (BSD-3-Clause), ProjectDiscovery's Nuclei templates (MIT) and the Exploit Database (GPLv2), read once a day. Where the data comes from
Timeline
Published
- 2 years later
· 2 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 3.1 | High7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
- EPSS (exploitation in 30 days)
- 87.9% · top 0.2% of all CVEs (16 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.5.
Affected products
n/a
- affected n/a
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- Gocode.gitea.io/giteaGHSA-p5f9-c9j9-g8qx (opens in a new tab)
References
References5
- https://github.com/go-gitea/gitea/pull/19490 (opens in a new tab)x_transferred
- https://github.com/go-gitea/gitea/pull/19487 (opens in a new tab)x_transferred
- https://blog.gitea.io/2022/05/gitea-1.16.7-is-released/ (opens in a new tab)x_transferred
- http://packetstormsecurity.com/files/168400/Gitea-1.16.6-Remote-Code-Execution.html (opens in a new tab)x_transferred
- http://packetstormsecurity.com/files/169928/Gitea-Git-Fetch-Remote-Code-Execution.html (opens in a new tab)x_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2022-4684 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-p5f9-c9j9-g8qx (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2022-30781)Record last updated .