What’s Vulnerable › Vulnerabilities
CVE-2021-45331
- Severity: critical (CVSS 9.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.4% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2022-02-09 · updated 2026-06-17
- Weakness: CWE-287
Description
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.
Affected products
- Gitea Open Source Git Server: before 1.5.0 — fixed in 1.5.0
How to fix
Upgrade to a fixed version: Gitea Open Source Git Server 1.5.0. Check the vendor advisory for mitigations.
References
- https://blog.gitea.io/2018/08/gitea-1.5.0-is-released/
- https://github.com/go-gitea/gitea/pull/3878
- https://blog.gitea.io/2018/08/gitea-1.5.0-is-released/
- https://github.com/go-gitea/gitea/pull/3878
Get alerted when CVE-2021-45331 or the next vulnerability affects your stack