Gitea before 1.16.7 does not escape git fetch remote.
CVE-2022-30781
This high-severity CVE scores 7.5 under NVD CVSS v3. EPSS exploit probability: 82.5%, top 1% of all CVEs by exploit prediction. GitHub Security Advisory data not yet ingested — confidence will rise once GHSA publishes (typical lag: hours to days for open-source ecosystem CVEs; never for infrastructure-only CVEs).
- High exploitation likelihood — EPSS 88%
No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.
- CVSS v3
- 7.5
- EG Score
- 7.5(medium)
- EPSS
- 99.7%
- KEV
- Not listed
Published
May 16, 2022
Last Modified
November 21, 2024
References (10)
- cve@mitrehttp://packetstormsecurity.com/files/168400/Gitea-1.16.6-Remote-Code-Execution.html
- cve@mitrehttp://packetstormsecurity.com/files/169928/Gitea-Git-Fetch-Remote-Code-Execution.html
- cve@mitrehttps://blog.gitea.io/2022/05/gitea-1.16.7-is-released/
- cve@mitrehttps://github.com/go-gitea/gitea/pull/19487
- cve@mitrehttps://github.com/go-gitea/gitea/pull/19490
- af854a3a-2127-422b-91ae-364da2661108http://packetstormsecurity.com/files/168400/Gitea-1.16.6-Remote-Code-Execution.html
- af854a3a-2127-422b-91ae-364da2661108http://packetstormsecurity.com/files/169928/Gitea-Git-Fetch-Remote-Code-Execution.html
- af854a3a-2127-422b-91ae-364da2661108https://blog.gitea.io/2022/05/gitea-1.16.7-is-released/
- af854a3a-2127-422b-91ae-364da2661108https://github.com/go-gitea/gitea/pull/19487
- af854a3a-2127-422b-91ae-364da2661108https://github.com/go-gitea/gitea/pull/19490
Affected Packages
(1 across 1 ecosystem)
Go(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| code.gitea.io/gitea | — | 1.16.7 | — |
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 2× in last 7d / 16× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-07-11 08:25 UTCEPSS rescore
- 2026-07-11 08:25 UTCEPSS rescore
- 2026-07-04 06:29 UTCEPSS rescore
- 2026-07-04 06:29 UTCEPSS rescore
- 2026-07-01 15:04 UTCEPSS rescore
- 2026-06-29 10:02 UTCOSV refresh
- 2026-06-25 13:48 UTCEPSS rescore
- 2026-06-25 13:48 UTCEPSS rescore
- 2026-06-23 21:31 UTCEPSS rescore
- 2026-06-23 21:31 UTCEPSS rescore
- 2026-06-17 17:51 UTCEPSS rescore
- 2026-06-17 17:51 UTCEPSS rescore
- 2026-06-15 17:46 UTCEPSS rescore
- 2026-06-13 22:58 UTCEPSS rescore
- 2026-06-12 23:10 UTCEPSS rescore
- 2026-06-12 23:10 UTCEPSS rescore
- 2026-06-12 01:57 UTCOSV refresh
- 2026-06-11 13:58 UTCEPSS rescore
- 2026-06-11 13:58 UTCEPSS rescore
- 2026-06-10 13:20 UTCEPSS rescore
- 2026-06-06 13:46 UTCEPSS rescore
- 2026-06-06 13:46 UTCEPSS rescore
- 2026-06-05 22:45 UTCEPSS rescore
- 2026-06-05 22:45 UTCEPSS rescore
- 2026-06-04 13:11 UTCEPSS rescore
Show 14 moreShow fewer
- 2026-06-04 13:11 UTCEPSS rescore
- 2026-06-01 13:50 UTCEPSS rescore
- 2026-06-01 13:50 UTCEPSS rescore
- 2026-05-31 00:15 UTCEPSS rescore
- 2026-05-31 00:15 UTCEPSS rescore
- 2026-05-29 13:43 UTCEPSS rescore
- 2026-05-29 13:42 UTCEPSS rescore
- 2026-05-28 13:43 UTCEPSS rescore
- 2026-05-28 13:43 UTCEPSS rescore
- 2026-05-28 13:43 UTCEPSS rescore
- 2026-05-27 13:39 UTCEPSS rescore
- 2026-05-27 13:39 UTCEPSS rescore
- 2026-05-25 22:06 UTCEG score recompute
- 2026-05-24 16:51 UTCEPSS rescore
Publicly available exploits
(3 references)Working exploit code is in the public domain (1 Metasploit module) (1 GitHub PoC) (1 Exploit-DB entry). Defenders should treat patch urgency accordingly — public PoCs typically lead to mass-exploitation within 24-72 hours.
- Exploit-DBEDB-51009✓ verifiedFirst seen Sep 15, 2022
Gitea 1.16.6 - Remote Code Execution (RCE) (Metasploit)
Open source ↗ - GitHub PoCwuhan005/CVE-2022-30781First seen May 22, 2022
🍵 Gitea repository migration remote command execution exploit.
Open source ↗ - Metasploitexploit/multi/http/gitea_git_fetch_rce✓ verifiedFirst seen May 16, 2022
Gitea Git Fetch Remote Code Execution
Open source ↗
Related CVEs(same CWE)
Same CWE
10 shownCWE-116
Frequently asked(5)
What is CVE-2022-30781?
When was CVE-2022-30781 disclosed?
Is CVE-2022-30781 actively exploited?
What is the CVSS score of CVE-2022-30781?
How do I remediate CVE-2022-30781?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2022-30781
Is Your Infrastructure Affected by CVE-2022-30781?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.