HIGHPOC
CVE-2022-30781
CWE-116Published: May 16, 2022· Updated: Jun 17, 2026
7.5
CVSS v3.1
Official Description
Gitea before 1.16.7 does not escape git fetch remote.
Technical Analysis
CVE-2022-30781 can be exploited remotely over the network without requiring physical or adjacent access, significantly expanding the attack surface for threat actors.
The vulnerability requires no privileges and no user interaction, making it a prime target for automated exploitation campaigns and worm-like propagation.
A successful exploit results in full integrity compromise (data manipulation), with a CVSS base score of 7.5.
A proof-of-concept (PoC) exploit exists for CVE-2022-30781. While not yet confirmed in active campaigns, the availability of PoC code increases exploitation risk substantially.
CVSS v3.1 Vector Breakdown
Exploitability
Attack VectorNetwork
Attack ComplexityLow
Privileges Req.None
User InteractionNone
ScopeUnchanged
Impact
ConfidentialityNone
IntegrityHigh
AvailabilityNone
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Affected Vendors & Products
gitea1 product(s)
gitea
Source: NVD CPE · 1 total CPE entries
Exploit & PoC Resources
POC AVAILABLEProof-of-concept code exists
Exploit-DB
Offensive Security exploit database
GitHub PoC Search
Community PoC repositories
Rapid7 / Metasploit
Metasploit module search
PacketStorm
Security advisories & exploits
NVD Detail
Official NIST entry
MITRE CVE
CVE Program entry
External links open in a new tab. Always verify in a controlled environment before use.
Official Patches & Advisories
All References (10)
→
http://packetstormsecurity.com/files/168400/Gitea-1.16.6-Remote-Code-Execution.htmlExploit · Third Party Advisory · VDB Entry
→
http://packetstormsecurity.com/files/169928/Gitea-Git-Fetch-Remote-Code-Execution.htmlExploit · Third Party Advisory · VDB Entry
→
https://blog.gitea.io/2022/05/gitea-1.16.7-is-released/Release Notes · Vendor Advisory
→
https://github.com/go-gitea/gitea/pull/19487Patch · Third Party Advisory
→
https://github.com/go-gitea/gitea/pull/19490Patch · Third Party Advisory
→
http://packetstormsecurity.com/files/168400/Gitea-1.16.6-Remote-Code-Execution.htmlExploit · Third Party Advisory · VDB Entry
→
http://packetstormsecurity.com/files/169928/Gitea-Git-Fetch-Remote-Code-Execution.htmlExploit · Third Party Advisory · VDB Entry
→
https://blog.gitea.io/2022/05/gitea-1.16.7-is-released/Release Notes · Vendor Advisory
→
https://github.com/go-gitea/gitea/pull/19487Patch · Third Party Advisory
→
https://github.com/go-gitea/gitea/pull/19490Patch · Third Party Advisory
Quick Facts
CVE IDCVE-2022-30781
CVSS Score7.5 / 10
SeverityHIGH
WeaknessCWE-116
CISA KEVNo
ExploitPOC
Affected1 vendor(s)
PublishedMay 16, 2022
Related CVEs (CWE-116)
Recommended Actions
- →Apply vendor patches immediately
- →Monitor CVE-2022-30781 in threat intel feeds
- →Review IDS/IPS signatures for exploitation attempts
Data sourced from NVD (NIST), CISA KEV, and EPSS (FIRST). Analysis generated by CTIWATCH.COM. CVE data is provided under the NVD usage policy.