Skip to content
Threat Feed
high advisory

Gitea: TOTP authentication bypass via brute-force (CVE-2026-123002)

Gitea versions prior to 28.4.0 contain a vulnerability in the TOTP authentication mechanism that allows an attacker with a known password to bypass two-factor authentication by brute-forcing the six-digit passcode.

CVE search metadata

CVE search record: CVE-2026-123002. Severity: high. CVSS: 7.5. EPSS: 0.19%. KEV: no. Product: Gitea. Brief: Gitea: TOTP authentication bypass via brute-force (CVE-2026-123002). Brief link: https://feed.craftedsignal.io/briefs/2026-11-gitea-totp-brute-force-cve-2026-123002/

Triage facts

Revision 1
Applicability
Gitea
Evidence
Unknown
Severity
High
Sources
2 public sources
Freshness
Revision 1Nov 16, 23:56 UTC
Detection
1 rule
Vulnerabilities
1 CVE
Source quality
ALikely

Overview

CVE-2026-123002 affects Gitea versions prior to 28.4.0. The vulnerability allows for an unlimited number of incorrect TOTP passcode attempts during sign-in, password reset flows, and for Basic authentication using the X-Gitea-OTP header.

Attack Chain

An attacker who already knows a target account's password can bypass two-factor authentication by attempting to guess the six-digit TOTP passcode at a high rate.

Impact

Successful exploitation allows an unauthorized party to bypass two-factor authentication and gain access to the victim's account.

Recommendation

Administrators should monitor for anomalous authentication failure patterns. While the affected version range concludes at 28.4.0, users are advised to review official Gitea security updates for specific patch guidance.

Detection coverage 1

Gitea High Frequency TOTP Authentication Failure

medium

Detects high frequency of failed TOTP authentication attempts by monitoring for anomalous volume of login or password reset requests associated with the X-Gitea-OTP header.

sigma tactics: credential_access techniques: T1110.001 sources: webserver

Detection queries are available on the platform. Get full rules →