Bug 2573912 (CVE-2026-123002)

Summary: CVE-2026-123002 code.gitea.io/gitea: Gitea: Two-factor authentication bypass via unrestricted TOTP passcode attempts
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: gbenhaim, niyer, twaugh
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
A flaw was found in Gitea. A remote attacker with knowledge of a user's password can bypass two-factor authentication and gain unauthorized access to the account. This issue exists because the application does not restrict or rate-limit incorrect Time-based One-Time Password (TOTP) passcode submissions during authentication and password reset workflows. By sending repeated guesses at a high rate, an attacker can brute-force the six-digit code and authenticate successfully.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description OSIDB Bzimport 2026-11-16 21:48:07 UTC
Gitea accepted an unlimited number of wrong TOTP passcodes during sign-in, in the password reset flow and for Basic authentication with the `X-Gitea-OTP` header. An attacker who already knows an account's password could guess the six-digit passcode by trying codes at a high rate and sign in despite two-factor authentication. After five failed passcodes, further attempts for the account are now refused for 15 minutes.