In this article
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
This story was produced with AI assistance from the sources listed above and fact-checked against them before publication. Read our editorial methodology and the corrections log. Spotted an error? Email [email protected].




Discussion