CVE-2026-20779 Details
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.
A vulnerability in Gitea's two-factor authentication (2FA) implementation allows a valid Time-based One-Time Password (TOTP) to be reused across web authentication processes and the Basic Auth X-Gitea-OTP header. This issue affects Gitea versions 1.5.0 prior to 1.26.3. The vulnerability arises from a race condition that enables the same TOTP code to authenticate multiple sessions, violating the one-time-use principle of TOTP. Additionally, the Basic Auth API surface lacks proper TOTP validation, allowing for stateless replay attacks.
Users are advised to upgrade to Gitea version 1.26.4, which addresses this vulnerability by enforcing the single-use requirement for TOTP codes across all authentication flows.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jul 3, 2026CISA-ADP
Assessed Jul 6, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/go-gitea/gitea/security/advisories/GHSA-gx3v-q759-g323 | CISA-ADP | AdvisoryExploitRemedyTechnical AnalysisVendor |
| https://blog.gitea.com/release-of-1.26.3-and-1.26.4/ | Gitea Limited | AdvisoryBundleRemedyVendor |
| https://github.com/go-gitea/gitea/pull/38151 | Gitea Limited | Issue TrackingVendor |
| https://github.com/go-gitea/gitea/releases/tag/v1.26.3 | Gitea Limited | Release NotesVendor |
| https://github.com/go-gitea/gitea/security/advisories/GHSA-gx3v-q759-g323 | Gitea Limited | AdvisoryExploitRemedyTechnical AnalysisVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-294 | Authentication Bypass by Capture-replay | Gitea Limited |
Affected Products
| Product | Versions |
|---|---|
| Gitea | >= 1.5.0, < 1.26.3 (semver) |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 25, 2026 | CVE Translated | [email protected] |
| Jul 7, 2026 | CVE Modified | CISA-ADP |
| Jul 3, 2026 | New CVE Received | Gitea Limited |
Volerion