# CVE-2026-123002: Gitea missing attempt limit for TOTP passcodes

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.38%, higher than 34% of CVEs (2026-12-01)
- Published: 2026-11-15T21:13:56.636Z
- Modified: 2026-11-16T22:18:15.297Z
- Weaknesses: CWE-307
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Gitea

## 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.

(As written by CVE List.)

## Affected

- gitea.dev: before 28.4.0

## 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)

## Sources

- CVE List: [CVE-2026-123002](https://www.cve.org/CVERecord?id=CVE-2026-123002), CVE Terms of Use, modified 2026-11-16
- NVD: [CVE-2026-123002](https://nvd.nist.gov/vuln/detail/CVE-2026-123002), Public domain, modified 2026-11-16

---

Page: https://cve.day/CVE-2026-123002 · Whole record: https://cve.day/CVE-2026-123002.json · Rebuilt by cve.day 2026-11-25T22:59:50.837Z
