CVE-2022-30781
HighPublic exploitShell command injection in gitea
Published May 17, 2022 · Updated Sep 8, 2026 · Also known as BIT-gitea-2022-30781, 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, code.gitea.io/gitea (go).
- It is not listed in any known-exploited vulnerabilities catalog. Public exploit code is available.
- EPSS estimates a 88% 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.
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)
88%
Higher than 99.7% of all scored CVEs
Exploited in the wild
No known
Not in a known-exploited catalog
Public exploit code
Available
Proof-of-concept or weaponized module
Get the full CVE-2022-30781 brief as a PDF
Every affected product and fixed release, exploitation status and a first 24 hours response checklist, emailed within minutes.
Description
Gitea before 1.16.7 does not escape git fetch remote.
Affected Products
18 affected entries in total| Product | Affected versions | Fixed in |
|---|---|---|
| GiteaGitea | See advisory | 1.16.7 |
| 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
Timeline
Publicly disclosed
May 17, 2022
Last updated
Sep 8, 2026
Weakness Type
- CWE-116 Improper Encoding or Escaping of Output
References
- advisoryhttps://blog.gitea.io/2022/05/gitea-1.16.7-is-released/
- advisoryGHSA advisory
- advisoryhttps://github.com/CVEProject/cvelistV5/tree/main/cves/2022/30xxx/CVE-2022-30781.json
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2022-30781
- exploitMSF gitea_git_fetch_rce.rb
FAQ
Common Questions.
Gitea before 1.16.7 does not escape git fetch remote.
Affected: Gitea; 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 Running On Your Attack Surface?
Brandefense maps vulnerabilities like this one to your internet-facing assets and tells you exactly where to patch.
Request A Demo