CVE-2026-20779: CWE-294 in Gitea Gitea Open Source Git Server
Gitea Open Source Git Server versions from 1.5.0 up to but not including 1.26.3 contain a vulnerability in the TOTP single-use enforcement mechanism. This flaw allows a valid TOTP code to be reused multiple times during web two-factor authentication and the Basic Auth X-Gitea-OTP path, potentially weakening the two-factor authentication process. The vulnerability is identified as CWE-294 (Improper Authentication) and has a CVSS score of 7.1, indicating high severity.
AI Analysis
Technical Summary
CVE-2026-20779 affects Gitea versions starting from 1.5.0 before 1.26.3. The vulnerability is a defect in the enforcement of single-use Time-based One-Time Passwords (TOTP) during two-factor authentication flows, including both web and Basic Auth X-Gitea-OTP methods. Due to this defect, a valid TOTP code can be accepted more than once, which undermines the intended security of the two-factor authentication mechanism. This issue is categorized under CWE-294 (Improper Authentication). No official patch or remediation level has been provided in the available data, and no known exploits in the wild have been reported.
Potential Impact
The vulnerability allows reuse of a valid TOTP code, which can reduce the effectiveness of two-factor authentication by permitting multiple authentications with the same one-time code. This could lead to unauthorized access if an attacker obtains a valid TOTP code and reuses it within the affected authentication flows. The confidentiality impact is high, while integrity impact is low and availability is not affected.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since no official fix or remediation level is provided in the available data, users should monitor Gitea's official channels for updates. Until a fix is available, consider additional compensating controls around authentication processes to mitigate risk.
CVE-2026-20779: CWE-294 in Gitea Gitea Open Source Git Server
Description
Gitea Open Source Git Server versions from 1.5.0 up to but not including 1.26.3 contain a vulnerability in the TOTP single-use enforcement mechanism. This flaw allows a valid TOTP code to be reused multiple times during web two-factor authentication and the Basic Auth X-Gitea-OTP path, potentially weakening the two-factor authentication process. The vulnerability is identified as CWE-294 (Improper Authentication) and has a CVSS score of 7.1, indicating high severity.
CVSS v3.1
Score 7.1high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-20779 affects Gitea versions starting from 1.5.0 before 1.26.3. The vulnerability is a defect in the enforcement of single-use Time-based One-Time Passwords (TOTP) during two-factor authentication flows, including both web and Basic Auth X-Gitea-OTP methods. Due to this defect, a valid TOTP code can be accepted more than once, which undermines the intended security of the two-factor authentication mechanism. This issue is categorized under CWE-294 (Improper Authentication). No official patch or remediation level has been provided in the available data, and no known exploits in the wild have been reported.
Potential Impact
The vulnerability allows reuse of a valid TOTP code, which can reduce the effectiveness of two-factor authentication by permitting multiple authentications with the same one-time code. This could lead to unauthorized access if an attacker obtains a valid TOTP code and reuses it within the affected authentication flows. The confidentiality impact is high, while integrity impact is low and availability is not affected.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since no official fix or remediation level is provided in the available data, users should monitor Gitea's official channels for updates. Until a fix is available, consider additional compensating controls around authentication processes to mitigate risk.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- Gitea
- Date Reserved
- 2026-03-03T03:26:00.104Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a4820fb27e9c79719acbf10
Added to database: 07/03/2026, 20:52:11 UTC
Last enriched: 07/03/2026, 20:59:49 UTC
Last updated: 07/04/2026, 00:51:23 UTC
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.