Gitea before 1.16.7 does not escape git fetch remote.
CVE-2022-30781
Score elevated to 9.0 because EPSS predicts 88% probability of exploitation within the next 30 days (99th percentile of EPSS-scored CVEs). NVD baseline CVSS 7.5 retained for reference. Confidence: see factors.
- High exploitation likelihood — EPSS 88%
- Public exploit code is available (Metasploit, Exploit-DB (verified), epss top5pct, epss high, public exploit)
A fix is available — apply it.
- CVSS v3
- 7.5
- EG Score
- 9.0CRITICALhigh confidence
- EG Risk
- 80EG Risk 80/100CISA SSVC
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity90% × 45%Exploitation88% × 40%Automatability30% × 15%CISA SSVC: Track at low or medium mission impact; Track* or Attend at high (mission-essential systems).Action: A fix is available. Apply it within your standard update timelines at low or medium mission impact and sooner than that at high. - EPSS PROB
- 88%
- EPSS %ILE
- 99th
- KEV
- Not listed
CISA SSVCTrack at low or medium mission impact; Track* or Attend at high (mission-essential systems).
A fix is available. Apply it within your standard update timelines at low or medium mission impact and sooner than that at high.
Exploitation public PoC (EG-KEV: weaponized) · Automatable unknown (not published for this CVE) · Technical impact partial (CVSS below 9.0). Mission impact is CISA's Mission & Well-being decision point, and only you can judge it: high means the affected system is essential to your organisation's mission, or its compromise could cause irreversible harm to people. CISA's decision table
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 | Fix by version range | Dependents |
|---|---|---|---|
| code.gitea.io/gitea | — |
| — |
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 2× in last 7d / 13× 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-10-08 16:40 UTCEPSS rescore
- 2026-10-06 15:14 UTCEPSS rescore
- 2026-09-30 20:40 UTCOSV refresh
- 2026-09-30 15:55 UTCEG score recompute
- 2026-09-30 15:00 UTCEPSS rescore
- 2026-09-29 15:16 UTCEPSS rescore
- 2026-09-26 15:54 UTCEPSS rescore
- 2026-09-24 14:00 UTCEPSS rescore
- 2026-09-22 14:44 UTCEPSS rescore
- 2026-09-18 19:24 UTCEPSS rescore
- 2026-09-16 14:05 UTCEPSS rescore
- 2026-09-12 14:57 UTCEPSS rescore
- 2026-09-12 02:40 UTCOSV refresh
- 2026-09-06 13:45 UTCEPSS rescore
- 2026-09-05 15:25 UTCEPSS rescore
- 2026-09-04 13:57 UTCEPSS rescore
- 2026-09-04 13:57 UTCEPSS rescore
- 2026-08-30 19:14 UTCEPSS rescore
- 2026-08-28 21:38 UTCEPSS rescore
- 2026-08-26 14:43 UTCEPSS rescore
- 2026-08-24 14:13 UTCEPSS rescore
- 2026-08-24 08:27 UTCOSV refresh
- 2026-08-21 23:46 UTCEPSS rescore
- 2026-08-17 13:44 UTCEPSS rescore
- 2026-08-16 02:11 UTCEPSS rescore
Show 60 moreShow fewer
- 2026-08-12 13:48 UTCEPSS rescore
- 2026-08-08 04:49 UTCOSV refresh
- 2026-08-06 13:44 UTCEPSS rescore
- 2026-08-03 10:33 UTCEPSS rescore
- 2026-07-30 01:28 UTCEPSS rescore
- 2026-07-26 14:52 UTCEPSS rescore
- 2026-07-24 14:15 UTCEPSS rescore
- 2026-07-24 14:15 UTCEPSS rescore
- 2026-07-23 14:16 UTCEPSS rescore
- 2026-07-23 14:16 UTCEPSS rescore
- 2026-07-23 02:11 UTCEG score recompute
- 2026-07-22 21:27 UTCEG score recompute▲ 1.50
- 2026-07-22 14:06 UTCEPSS rescore
- 2026-07-22 14:06 UTCEPSS rescore
- 2026-07-20 17:05 UTCEPSS rescore
- 2026-07-17 11:29 UTCOSV refresh
- 2026-07-16 17:00 UTCEPSS rescore
- 2026-07-15 01:58 UTCEPSS rescore
- 2026-07-15 01:58 UTCEPSS rescore
- 2026-07-13 06:11 UTCEPSS rescore
- 2026-07-13 06:11 UTCEPSS rescore
- 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
- 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 ↗ - Metasploitexploit/multi/http/gitea_git_fetch_rce✓ verifiedFirst seen May 16, 2022
Gitea Git Fetch Remote Code Execution
Open source ↗ - GitHub PoCwuhan005/CVE-2022-30781First seen May 22, 2022
🍵 Gitea repository migration remote command execution exploit.
Open source ↗
Related CVEs(same product + same CWE)
Same product
10 shownGo:code.gitea.io/gitea
- CVE-2024-6886EG 10.0EPSS p98CRITICAL
- CVE-2026-60004EG 9.8 KEVEPSS p98CRITICAL
- CVE-2026-56654EG 9.8CRITICAL
- CVE-2026-27780EG 9.8CRITICAL
- CVE-2026-26292EG 9.8CRITICAL
- CVE-2026-58422EG 9.8CRITICAL
- CVE-2026-20896EG 9.8CRITICAL
- CVE-2022-42968EG 9.8CRITICAL
- CVE-2021-45331EG 9.8CRITICAL
- CVE-2021-45330EG 9.8CRITICAL
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.