Skip to content

CVE-2026-20779 Gitea TOTP single-use enforcement defect allows OTP replay

HighCVSS 7.1 EPSS 0.49%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: partial

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.

Upgrade path

2 packages: 2 fixed.

PackageAffectedFixed inStatus
code.gitea.io/gitea(Go) >= 1.5.0, < 1.26.3 1.26.3 Fixed
Gitea Open Source Git Server >= 1.5.0, < 1.26.3 1.26.3 Fixed

Affected products

ProductAffected versionsFixed in
code.gitea.io/gitea(Go) >= 1.5.0, < 1.26.3 1.26.3
Gitea Open Source Git Server >= 1.5.0, < 1.26.3 1.26.3

References