CVE-2026-20779: CWE-294 in Gitea Gitea Open Source Git Server
Gitea 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 Basic Auth X-Gitea-OTP authentication flows. The vulnerability is classified under CWE-294 (Improper Authentication) and has a CVSS 3.1 score of 7.1, indicating high severity.
AI Analysis
Technical Summary
CVE-2026-20779 affects Gitea Open Source Git Server versions starting from 1.5.0 before 1.26.3. The vulnerability arises from improper enforcement of single-use TOTP codes, permitting reuse of a valid TOTP code across authentication flows including web two-factor authentication and Basic Auth X-Gitea-OTP. This weakness can lead to partial compromise of authentication integrity, allowing an attacker to bypass intended one-time code restrictions. The CVSS vector indicates the attack requires network access, no privileges, user interaction, and results in high confidentiality impact with limited integrity impact and no availability impact.
Potential Impact
The vulnerability allows reuse of valid TOTP codes, potentially enabling attackers to bypass two-factor authentication protections partially. This compromises the confidentiality of accounts protected by TOTP in affected Gitea versions. Integrity impact is limited, and availability is not affected. There are no known exploits in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or patch link is provided in the available data. Users should monitor Gitea's official advisories for updates and apply any forthcoming patches promptly. Until a fix is available, consider additional compensating controls for two-factor authentication mechanisms.
CVE-2026-20779: CWE-294 in Gitea Gitea Open Source Git Server
Description
Gitea 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 Basic Auth X-Gitea-OTP authentication flows. The vulnerability is classified under CWE-294 (Improper Authentication) and has a CVSS 3.1 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 Open Source Git Server versions starting from 1.5.0 before 1.26.3. The vulnerability arises from improper enforcement of single-use TOTP codes, permitting reuse of a valid TOTP code across authentication flows including web two-factor authentication and Basic Auth X-Gitea-OTP. This weakness can lead to partial compromise of authentication integrity, allowing an attacker to bypass intended one-time code restrictions. The CVSS vector indicates the attack requires network access, no privileges, user interaction, and results in high confidentiality impact with limited integrity impact and no availability impact.
Potential Impact
The vulnerability allows reuse of valid TOTP codes, potentially enabling attackers to bypass two-factor authentication protections partially. This compromises the confidentiality of accounts protected by TOTP in affected Gitea versions. Integrity impact is limited, and availability is not affected. There are no known exploits in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or patch link is provided in the available data. Users should monitor Gitea's official advisories for updates and apply any forthcoming patches promptly. Until a fix is available, consider additional compensating controls for two-factor authentication mechanisms.
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/22/2026, 00:38:22 UTC
Last updated: 08/14/2026, 00:41:10 UTC
Views: 54
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.