CVE-2022-30781Gitea Vulnerability
Shell command injection in gitea
Published May 16, 2022 · Updated Nov 3, 2026 · Also known as ALPINE-CVE-2022-30781, BIT-gitea-2022-30781, CLEANSTART-2025-ET02089, CLEANSTART-2025-TF34768, GHSA-p5f9-c9j9-g8qx, GO-2022-0450
Key Facts
Patch immediately- CVE-2022-30781 is a high-severity vulnerability (CVSS 7.5 v3.1) affecting Gitea, gitea-fips (cleanstart), code.gitea.io/gitea (go).
- It is not listed in any known-exploited vulnerabilities catalog. Public exploit code is available.
- EPSS estimates a 59% probability of exploitation in the next 30 days.
- Fixed versions are available, including code.gitea.io/gitea 1.16.7, Gitea 1.16.7, Gitea 1.16.7-r0.
- Brandefense priority: patch immediately, because it is very likely to be exploited soon.
Scores
CVSS v3.1
7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
EPSS (30-day exploit likelihood)
59%
Higher than 99.3% of all scored CVEs
Exploit maturity
Weaponized
ATLAS score
64/100
Publication score, see How it works
Exploitation Verdict
KEV listed
Not listed
Federal due date
None
No federal due date
Ransomware use
Not reported
Attributed actors
None named
Exploit & Defence Guidance
Exploit maturity
Weaponized
Public exploit code
2
Proof-of-concept links
In-the-wild evidence
0
Reports of active use
Advisories And Exploit References
Description
Gitea before 1.16.7 does not escape git fetch remote.
Affected Products
21 affected entries in total| Product | Affected versions | Fixed in |
|---|---|---|
| GiteaGitea | See advisory | 1.16.7 |
| gitea-fipscleanstart | See advisory | 1.16.7-r0 |
| code.gitea.io/giteago | See advisory | 1.16.7 |
Patched Releases
code.gitea.io/gitea
1.16.7
Gitea
1.16.7, 1.16.7-r0
gitea-fips
1.16.7-r0
Timeline
Publicly disclosed
May 16, 2022
Last updated
Nov 3, 2026
Weakness Type
- CWE-116 Improper Encoding or Escaping of Output
References
- advisorycve.org · CVERecord
- advisorynvd.nist.gov · CVE-2022-30781
- advisorysecurity.alpinelinux.org · CVE-2022-30781
- advisoryblog.gitea.io · gitea-1.16.7-is-released
- advisoryGHSA advisory
FAQ
Common Questions.
Gitea before 1.16.7 does not escape git fetch remote.
Affected: Gitea; gitea-fips (cleanstart); code.gitea.io/gitea (go). The full list is in the CVE brief.
It is not listed in any known-exploited vulnerabilities catalog.
No, it is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
Public exploit code is available.
Fixed versions are available, including code.gitea.io/gitea 1.16.7, Gitea 1.16.7, Gitea 1.16.7-r0.
Brandefense priority: patch immediately, because it is very likely to be exploited soon.
Is CVE-2022-30781 On Your Attack Surface?
Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.
Request A Demo