Two-Factor Authentication Bypass in Gitea by go-gitea
CVE-2026-123002
Currently unrated
What is CVE-2026-123002?
A vulnerability in Gitea allows attackers to bypass two-factor authentication by submitting an unlimited number of incorrect Time-based One-Time Passwords (TOTP) during user sign-in, password reset flows, or Basic authentication with the X-Gitea-OTP header. If an attacker knows the victim's account password, they can rapidly guess the six-digit TOTP passcode. Although five failed attempts will prompt a 15-minute lockout, the insufficient validation mechanism during the sign-in process exposes accounts to high-risk exploitation.
Affected Version(s)
Gitea 0 < 28.4.0
