Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.4%top 67%

CVE-2026-20779: CWE-294 in Gitea Gitea Open Source Git Server

0
High
VulnerabilityCVE-2026-20779cvecve-2026-20779cwe-294
Published: 07/03/2026 (07/03/2026, 20:19:29 UTC)
Source: CVE Database V5
Vendor/Project: Gitea
Product: 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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
Low
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N

Affected software

GitHub Actionsmore threats →ai
go-gitea/gitea
pkg:github/go-gitea/gitea
Affected versions
=1.5.0<1.26.3

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/22/2026, 00:38:22 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses