CVE-2021-45331: An Authentication Bypass vulnerability exists in Gitea before 1.5.0, which could let a malicious user gain privileges.
CVE-2021-45331 affects 3 listed versions of Gitea in the Dawnsentry catalogue.
Affected products and versions
The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.
Gitea
3 of 124 listed versions are affected. Fixed in 1.5.0. The newest release, 28.4.0, is not affected.
What it is
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.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (NVD)
Published by MITRE on 9 February 2022. Last changed 17 June 2026.
Sources
Check one version you run: look CVE-2021-45331 up, or pick a product and version in the quick lookup.
Updated 2 December 2026.