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…

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 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

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/03/2026, 20:59:49 UTC

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.

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/03/2026, 20:59:49 UTC

Last updated: 07/04/2026, 00:51:23 UTC

Views: 5

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