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.
Weaknesses
- CWE-307 — CWE-307: Improper Restriction of Excessive Authentication Attempts
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Gitea | Gitea | 0 to <28.4.0 [affected] |
References
- https://github.com/go-gitea/gitea/security/advisories/GHSA-5mx6-8rwm-52wf (vendor-advisory)
- https://github.com/go-gitea/gitea/pull/39993 (patch)
- https://github.com/go-gitea/gitea/pull/40374 (patch)
- https://blog.gitea.com/release-of-28.4.0/ (release-notes)
- https://github.com/go-gitea/gitea/releases/tag/v28.4.0 (release-notes)
Assess this vulnerability
Compare your deployed product and version with the source record. Review vendor references for fixes and workarounds. A CVSS score describes technical severity; it does not establish that your systems are affected or that exploitation has occurred.
Browse all CVE security advisories · Symaro cybersecurity services
Generated from the official CVE List on 16 Nov 2026 08:07 UTC.