CVE-2026-20779
Gitea TOTP single-use enforcement defect allows OTP replay
At a glance Severity HIGH 7.1 EPSS EPSS 0.49 % · percentile 42 (2026-10-27) State PUBLISHED Published 2026-07-03 Updated 2026-07-07 Assigner Gitea NVD status Deferred
Description Gitea versions from 1.5.0 before 1.26.3 have a TOTP single-use enforcement defect that allows a valid TOTP code to be accepted more than once across web two-factor authentication flows and the Basic Auth X-Gitea-OTP path.
Scores Version Score Vector Scored by CVSS 3.1 HIGH 7.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N Gitea CVSS 3.1 HIGH 7.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N NVD · 88ee5874-cf24-4952-aea0-31affedb7ff2 (Secondary)
Weaknesses (CWE)
Advisories GHSA-gx3v-q759-g323 — Gitea: TOTP TOCTOU race on web 2FA paths + missing replay check on Basic-Auth `X-Gitea-OTP` surfaceGO-2026-6057 — Gitea: TOTP TOCTOU race on web 2FA paths + missing replay check on Basic-Auth `X-Gitea-OTP` surface in code.gitea.io/gitea
European references
Affected products
References
Sources