Technical impact
Gitea allows unlimited attempts to enter the six-digit TOTP during sign‑in, password reset, or Basic authentication with the X‑Gitea‑OTP header. An attacker who already knows the account’s password can brute‑force the code at a high rate, bypassing two‑factor authentication and gaining access. The vulnerability therefore undermines the confidentiality of user accounts and violates the intentional design of the authentication workflow.
Affected Systems
The flaw appears in all Gitea installations that have not applied the 28.4.0 release. Any version prior to 28.4.0 that consumes the default authentication flow is susceptible; the fix is included in v28.4.0, where five failed passcode attempts now lock the account for 15 minutes.
Risk and Exploitability
Although no CVSS or EPSS values are published for this issue, the vulnerability offers a straightforward and automated exploitation path for attackers who own the password. Because the system accepts an unbounded number of TOTP guesses, brute‑forcing is practical, especially for six‑digit numeric codes with a short time window. The attack requires only standard authentication tools and does not need any privileged access. There is no evidence of exploitation in the wild, and the vulnerability is not listed in CISA KEV, but the potential for credential compromise remains high.