High severity · published May 16, 2022
CVE-2022-30781
Gitea before 1.16.7 does not escape git fetch remote
7.5
CVSS
87.9%
EPSS
No
On KEV
Description
Gitea before 1.16.7 does not escape git fetch remote.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
None
Integrity
High
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)87.9% · higher than 100% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
GI
Gitea · Gitea
before 1.16.7 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2022-30781
CVE.org
https://www.cve.org/CVERecord?id=CVE-2022-30781
Exploit
http://packetstormsecurity.com/files/168400/Gitea-1.16.6-Remote-Code-Execution.html
Exploit
http://packetstormsecurity.com/files/169928/Gitea-Git-Fetch-Remote-Code-Execution.html
Release Notes
https://blog.gitea.io/2022/05/gitea-1.16.7-is-released/
Patch
https://github.com/go-gitea/gitea/pull/19487
Patch
https://github.com/go-gitea/gitea/pull/19490
More from Gitea
9.8
CVE-2026-60004
Gitea Code Injection Vulnerability
9.8
CVE-2026-59774
Gitea Org-mode file disclosure and code execution
9.8
CVE-2026-73278
Gitea WebAuthn bypass during OAuth and OIDC sign-in
9.8
CVE-2026-94205
Gitea fork workflow approval bypass through maintainer-triggered events
9.8
CVE-2022-42968
Gitea before 1.17.3 does not sanitize and escape refs in the git backend
