Skip to main content

Gitea EUVDEUVD-2026-41613

| CVE-2026-20779 HIGH
Authentication Bypass by Capture-replay (CWE-294)
2026-07-03 Gitea GHSA-gx3v-q759-g323
7.1
CVSS 3.1 · Vendor: Gitea
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Capture victim's valid TOTP code
  2. Delivery
    Reach Gitea 2FA or X-Gitea-OTP endpoint
  3. Exploit
    Replay the same code within window
  4. Execution
    Bypass single-use enforcement
  5. Persist
    Authenticate as victim
  6. Impact
    Access private repositories

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Replay attack prevention
Exploitation Conditions

Exploitation requires that the target account has TOTP-based two-factor authentication enabled in Gitea and that the attacker can obtain a currently-valid TOTP code (through interception, logging, phishing relay, or shoulder-surfing) and replay it before its ~30-second time window elapses. Two code paths are affected: the interactive web two-factor authentication flow and the Basic Auth X-Gitea-OTP header path. Limiting factors: the flaw does not by itself let an attacker generate codes, so knowledge of the victim's primary password (for the login flow) plus a captured code is generally needed; the short TOTP validity window constrains the replay opportunity; and only instances running Gitea 1.5.0 through 1.26.2 with 2FA in use are affected. The CVSS UI:R reflects that a legitimate user must produce a valid code for the attacker to capture and reuse.

Impact

The published CVSS 3.1 score is 7.1 (AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N), a network, low-complexity, no-privilege vector with confidentiality high and integrity low. In practical terms the score is optimistic on complexity: capture-replay of a TOTP requires the attacker to first obtain a currently-valid code and reuse it before its short time window expires, which is closer to a real-world AC:H condition and depends on the attacker already having some path to observe the code - so PR:N is technically correct (the attacker is not authenticated) but exploitation is gated by a prerequisite the base metrics understate. There is no EPSS score, no POC, and no KEV listing provided, so no evidence of active or automated exploitation exists; this reads as a defense-in-depth weakening of 2FA rather than a directly weaponizable remote flaw. Priority is moderate: patch it as part of normal maintenance, elevated only for internet-exposed Gitea instances handling sensitive repositories. Note the conflict to verify: the vector implies easy network exploitation, but the capture-replay root cause implies the attacker must already have access to a live code - treat the raw 7.1 as an upper bound.

Exploit ScenarioDerived

An attacker who can observe a victim's live TOTP code - for example by intercepting a request, reading it from a proxy or application log, or capturing it during a phishing relay - resubmits that same code to Gitea's web 2FA form or via the X-Gitea-OTP header on the Basic Auth endpoint while it is still within its validity window. Because Gitea does not reject the already-used code, the replay succeeds and the attacker completes second-factor authentication as the victim. No public POC is identified at time of analysis.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 03, 2026

TOTP two-factor authentication replay in Gitea 1.5.0 through 1.26.2 lets a captured valid one-time code be accepted multiple times instead of being invalidated after first use, weakening 2FA on both the web login flow and the Basic Auth X-Gitea-OTP header path. An attacker who observes a legitimate TOTP code (via interception, shoulder-surfing, or logging) can replay it within its validity window to authenticate as the victim. There is no public exploit identified at time of analysis and it is not listed in CISA KEV; the flaw is fixed in Gitea 1.26.3.

RemediationAI

Vendor-released patch: upgrade to Gitea 1.26.3 (or the later 1.26.4) per the vendor advisory GHSA-gx3v-q759-g323 and release notes at https://blog.gitea.com/release-of-1.26.3-and-1.26.4/; the code fix is in pull request https://github.com/go-gitea/gitea/pull/38151. As the primary and definitive fix, upgrade the Gitea binary/container to 1.26.3+ following the standard upgrade procedure. If immediate patching is not possible, compensating controls include restricting network exposure of the Gitea instance to trusted networks or VPN to limit who can present a replayed code, terminating TLS correctly and enforcing HTTPS everywhere to reduce opportunities to capture codes in transit (trade-off: does not stop capture at the endpoint or via logs), and - for high-value accounts - temporarily disabling the Basic Auth X-Gitea-OTP path or programmatic access if not required (trade-off: breaks CI/CD or scripted clients that rely on it). These are stopgaps only; the code reuse defect is closed only by the upgrade.

Affected VersionsENISA

Gitea Open Source Git Server 1.5.0 <1.26.3

Affected Packages

go code.gitea.io/gitea fix: 1.26.3
euvd gitea_open_source_git_server fix: 1.26.3

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in go, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Gitea is a self-hosted, open-source Git service (a lightweight GitHub/GitLab alternative) written in Go. The affected component is its time-based one-time password (TOTP, RFC 6238) second-factor implementation. TOTP codes are meant to be single-use: once a code is consumed for authentication it must be marked as spent so it cannot be presented again during the ~30-second window in which it remains cryptographically valid. This CVE maps to CWE-294 (Authentication Bypass by Capture-replay): Gitea failed to record and reject already-used codes consistently, so the same code passed validation more than once. The defect spans two distinct entry points - the interactive web 2FA flow and the programmatic Basic Auth path that reads the code from the X-Gitea-OTP HTTP header - indicating the missing single-use enforcement was in shared verification logic rather than a single UI handler. The single affected CPE is cpe:2.3:a:gitea:gitea_open_source_git_server.

Know when Gitea gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (Gitea) PRIMARY 7.1 HIGH
AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N
vuln.today AI 5.9 MEDIUM

Attacker must capture a live TOTP code and replay it within its short window, so AC:H; no auth needed by attacker (PR:N) but victim must generate a code (UI:R), yielding account takeover (C:H, I:L).

3.1 AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N
4.0 AV:N/AC:H/AT:P/PR:N/UI:P/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N
SUSE HIGH

Primary rating from Vendor (Gitea).

CVSS VectorVendor: Gitea

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
Low
Availability
None

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

Gitea repository management systems running versions 1.5.0 through 1.26.2 contain a two-factor authentication bypass vulnerability (no public exploit identified at time of analysis) that allows attackers to replay captured TOTP codes for unauthorized repository access. This directly undermines access controls protecting source code and development infrastructure across affected deployments. Organizations must patch to version 1.26.3 immediately to restore authentication integrity and reduce breach risk.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.5%
Top 62% exploitable
Prevalence
Medium
popular self-hosted open-source Git server, common but not ubiquitous
Threat Intel
1
1 sources
Exploit
POC
Public exploit code exists
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

56
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

More in Gitea

View all
CVE-2026-60004 CRITICAL POC
9.8

Remote code execution in Gitea (self-hosted Git service) via a code-injection flaw (CWE-94) allows attackers to run arbi

CVE-2026-27771 HIGH POC
8.2 Jul 03

Broken access control in Gitea's Composer package registry (versions up to and including 1.26.1) lets remote attackers r

CVE-2022-30781 HIGH POC
7.5 May 16

Gitea before 1.16.7 does not escape git fetch remote. Rated high severity (CVSS 7.5), this vulnerability is remotely exp

CVE-2020-14144 HIGH POC
7.2 Oct 16

The git hook feature in Gitea 1.1.0 through 1.12.5 might allow for authenticated remote code execution in customer envir

CVE-2024-6886 CRITICAL POC
10.0 Aug 06

Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site Scripting') vulnerability in Gitea Gitea

CVE-2026-20896 CRITICAL POC
9.8 Jul 03

Reverse-proxy authentication bypass in the official Gitea Docker image (versions up to and including 1.26.2) allows any

CVE-2026-59774 CRITICAL POC
9.8

Path traversal in Gitea's Org-mode (`.org`) markup renderer allows an attacker who can get Org-mode content rendered by

CVE-2026-58053 CRITICAL POC
9.4 Jun 28

Container escape in Gitea act_runner (Docker backend, through act 0.262.0) lets an authenticated user with workflow-exec

CVE-2019-11229 HIGH POC
8.8 Apr 15

models/repo_mirror.go in Gitea before 1.7.6 and 1.8.x before 1.8-RC3 mishandles mirror repo URL settings, leading to rem

CVE-2026-57894 HIGH POC
8.5 Jul 21

Server-side request forgery and internal repository exfiltration in Gitea before 1.27.0 lets a low-privileged authentica

CVE-2026-24791 HIGH POC
8.1 Jun 17

Authorization bypass in Gitea versions 1.22.3 through 1.26.1 allows holders of `public-only` access tokens or OAuth gran

CVE-2020-13246 HIGH POC
7.5 May 20

An issue was discovered in Gitea through 1.11.5. Rated high severity (CVSS 7.5), this vulnerability is remotely exploita

Vendor StatusVendor

SUSE

Severity: Important
Product Status
SUSE Linux Enterprise Server 16.1 Affected
SUSE Linux Enterprise Server for SAP applications 16.1 Affected
SUSE Linux Enterprise Module for Package Hub 15 SP5 Affected
SUSE Linux Enterprise Module for Package Hub 15 SP6 Affected
openSUSE Leap 15.5 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy