> ## Content Index
> Fetch the complete content index at: https://ping2prompt.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Gitea fixes unlimited TOTP guessing that weakens two-factor sign-in (CVE-2026-123002)
- URL: https://ping2prompt.com/gitea-fixes-unlimited-totp-guessing-that-weakens-two-factor-sign-in-cve-2026-123/
- Published: 2026-11-16T22:22:49.000Z
- Updated: 2026-11-16T22:59:05.000Z
- Description: Gitea now refuses an account's two-factor (TOTP) attempts for 15 minutes after five wrong codes, fixing a 7.5 HIGH flaw that allowed unlimited guessing by attackers who know the password. Users with two-factor enabled should update to v28.4.0, which the record references.
- Author: Ping2Prompt Newsroom
- Tags: Gitea, Self-hosted, Vulnerabilities, High, #short-ping

## What's fixed

Gitea did not cap wrong two-factor (TOTP) codes at sign-in, in the password reset flow, or for Basic authentication using the `X-Gitea-OTP` header. An attacker who already knows an account's password could try six-digit codes rapidly until one worked, defeating two-factor protection. The CVE is rated 7.5 (CVSS 3.1, HIGH); the NVD record is marked Deferred.

The fix refuses further attempts on the account for 15 minutes after five failed codes. The record points to Gitea release v28.4.0 and advisory GHSA-5mx6-8rwm-52wf, but does not explicitly name the fixed version or the affected range. It also gives no exploitation status and no workaround.

## What to do

If you run Gitea with two-factor enabled, update to the release referenced in the advisory (v28.4.0) and confirm the fix in the advisory GHSA-5mx6-8rwm-52wf.

| Product | Affected                 | Fixed                                                                |
| ------- | ------------------------ | -------------------------------------------------------------------- |
| Gitea   | Not stated in the record | v28.4.0 (referenced by the record, not explicitly stated as the fix) |

## Sources

- [nvd.nist.gov/vuln/detail/CVE-2026-123002](https://nvd.nist.gov/vuln/detail/CVE-2026-123002?ref=ping2prompt.com)

---

This story was produced with AI assistance from the sources listed above and fact-checked against them before publication. Read our [editorial methodology](https://ping2prompt.com/about-how-we-work/) and the [corrections log](https://ping2prompt.com/corrections/). Spotted an error? Email [editor@ping2prompt.com](mailto:editor@ping2prompt.com).