CVE-2021-45331Gitea
Critical 9.8 No auth needed
Follow: this CVE · Gitea · Gitea We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- 1.4% probability of exploitation in 30 days · percentile 73
- Auth required
- No
- Published
- Feb 9, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-287
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
An Authentication Bypass vulnerability exists in Gitea before 1.5.0, which could let a malicious user gain privileges. If captured, the TOTP code for the 2FA can be submitted correctly more than once.
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.5.0 |
1.5.0 |
go get code.gitea.io/gitea@v1.5.0 |
| Go | code.gitea.io/gitea |
< 1.5.0 |
1.5.0 |
go get code.gitea.io/gitea@v1.5.0 |
Per OSV / GitHub Advisories (GHSA-hfmf-q69j-6m5p, GO-2022-0315). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| gitea | gitea | < 1.5.0 |
Official sources
References
Links published by the sources. Open them with care.
- blog.gitea.io Release Notes Vendor Advisory
- github.com Patch Third Party Advisory