CVE-2026-123002 Details
Description
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.
A vulnerability in Gitea's two-factor authentication (2FA) process allows an attacker to guess TOTP passcodes without any limit. This issue is present in Gitea versions through 28.3.0. The vulnerability arises because the application does not properly rate-limit incorrect 2FA passcode attempts during the sign-in process, password reset flow, and for Basic authentication using the 'X-Gitea-OTP' header. An attacker who knows a user's password can exploit this flaw by rapidly guessing the six-digit TOTP codes, effectively bypassing the 2FA protection.
Users can upgrade to Gitea version 28.4.0, which addresses this vulnerability by implementing a rate limit on failed TOTP attempts per account.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Nov 15, 2026CISA-ADP
Assessed Nov 16, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://blog.gitea.com/release-of-28.4.0/ | Gitea Limited | Release NotesVendor |
| https://github.com/go-gitea/gitea/pull/39993 | Gitea Limited | Source CodeVendor |
| https://github.com/go-gitea/gitea/pull/40374 | Gitea Limited | Source CodeVendor |
| https://github.com/go-gitea/gitea/releases/tag/v28.4.0 | Gitea Limited | Release NotesVendor |
| https://github.com/go-gitea/gitea/security/advisories/GHSA-5mx6-8rwm-52wf | Gitea Limited | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-307 | Improper Restriction of Excessive Authentication Attempts | Gitea Limited |
Affected Products
| Product | Versions |
|---|---|
| Gitea | <= 28.3.0 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 16, 2026 | CVE Modified | CISA-ADP |
| Nov 15, 2026 | New CVE Received | Gitea Limited |
Volerion