CVE-2026-20779

HIGH

Gitea TOTP single-use enforcement defect allows OTP replay

Title source: cna
STIX 2.1

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.

References (4)

Core 4
Core References
Release Notes release-notes
Gitea v1.26.4 Release Blog Post
https://blog.gitea.com/release-of-1.26.3-and-1.26.4/
Vendor Advisory vendor-advisory
GitHub Security Advisory
https://github.com/go-gitea/gitea/security/advisories/GHSA-gx3v-q759-g323
Patch patch
GitHub Pull Request #38151
https://github.com/go-gitea/gitea/pull/38151
Release Notes release-notes
Gitea v1.26.3 Release
https://github.com/go-gitea/gitea/releases/tag/v1.26.3

Scores

CVSS v3 7.1
EPSS 0.0040
EPSS Percentile 32.6%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N

CISA SSVC

Vulnrichment
Exploitation poc
Automatable no
Technical Impact partial

Details

CWE
CWE-294
Status published
Products (2)
code.gitea.io/gitea 1.5.0 - 1.26.3Go
Gitea/Gitea Open Source Git Server 1.5.0 - 1.26.3
Published Jul 03, 2026
Tracked Since Jul 04, 2026