CVE-2022-30781Gitea
High 7.5 No auth neededHigh EPSS
Follow: this CVE · Gitea · Gitea We alert you by email or Slack (account required).
- Priority
- 66
- CVSS 3.1
- 7.5
- EPSS
- 58.5% probability of exploitation in 30 days · percentile 99
- Auth required
- No
- Published
- May 16, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-116
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
What happens
Gitea before 1.16.7 does not escape git fetch remote.
What to do
- Apply the vendor's security update for Gitea.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | code.gitea.io/gitea |
< 1.16.7 |
1.16.7 |
go get code.gitea.io/gitea@v1.16.7 |
| Go | code.gitea.io/gitea |
< 1.16.7 |
1.16.7 |
go get code.gitea.io/gitea@v1.16.7 |
Per OSV / GitHub Advisories (GHSA-p5f9-c9j9-g8qx, GO-2022-0450). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| gitea | gitea | < 1.16.7 |
Official sources
References
Links published by the sources. Open them with care.
- packetstormsecurity.com Exploit Third Party Advisory VDB Entry
- packetstormsecurity.com Exploit Third Party Advisory VDB Entry
- blog.gitea.io Release Notes Vendor Advisory
- github.com Patch Third Party Advisory
- github.com Patch Third Party Advisory