Skip to main content

Gitea EUVDEUVD-2026-41614

| CVE-2026-20896 CRITICAL
Improper Access Control (CWE-284)
2026-07-03 Gitea GHSA-f75j-4cw6-rmx4
9.8
CVSS 3.1 · Vendor: Gitea
View

Attack ChainAIDerived

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

  1. Access
    Reach Gitea instance over network
  2. Delivery
    Craft HTTP request with forged X-WEBAUTH-USER header
  3. Exploit
    Wildcard trusted-proxy accepts spoofed identity
  4. Execution
    Obtain impersonated (admin) session
  5. Impact
    Full repository and account takeover

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Access control enforcement
MITRE ATT&CK

1 technique across 1 tactic: Defense Evasion

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that the operator has enabled Gitea's reverse-proxy authentication feature (the ENABLE_REVERSE_PROXY_AUTHENTICATION path using headers such as X-WEBAUTH-USER) while running the official Docker image with its default REVERSE_PROXY_TRUSTED_PROXIES=* setting, AND that the attacker can send HTTP requests to the Gitea instance directly rather than being forced through the legitimate proxy. When these hold, an attacker simply supplies the reverse-proxy identity header with a chosen username to impersonate any account. Limiting factors: this is NOT exploitable against default installs that never enabled reverse-proxy header authentication; deployments that already pinned REVERSE_PROXY_TRUSTED_PROXIES to the proxy's IP/CIDR are unaffected; and if network segmentation prevents clients from reaching the container except via the trusted proxy, header spoofing is blocked at the perimeter.

Impact

The supplied CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H, base 9.8) reflects the worst case: once reverse-proxy auth is enabled, a network attacker with no privileges or user interaction can impersonate any user, including admins, yielding full confidentiality, integrity and availability impact over the repositories. The critical qualifying factor NVD's vector does not encode is that exploitation is conditional on the operator having enabled reverse-proxy header authentication AND exposing Gitea such that clients can reach it directly (bypassing or alongside the proxy) - in a correctly segmented deployment where only the proxy can reach Gitea, the wildcard is far less exploitable. No EPSS score, KEV listing, or POC was provided; there is no public exploit identified at time of analysis, so despite the 9.8 rating real-world risk is concentrated on the subset of Docker deployments that turned on reverse-proxy auth without overriding the default trusted-proxy list. Treat as high priority for that configuration and low for default installs that never enabled header auth.

Exploit ScenarioDerived

An organization runs the Gitea Docker image behind a reverse proxy with X-WEBAUTH-USER authentication enabled but leaves the default REVERSE_PROXY_TRUSTED_PROXIES=*. An attacker who can reach the Gitea service directly sends an HTTP request with a forged X-WEBAUTH-USER: admin header; because all source IPs are trusted, Gitea accepts the identity and grants the attacker that user's session, leading to repository and administrative takeover. No public POC has been identified, but the technique requires only a single crafted request and low skill.

Act Now Prioritize within 24-48h. Why: CRITICAL severity + public POC available.
Patch available 0.8% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Jul 03, 2026

Reverse-proxy authentication bypass in the official Gitea Docker image (versions up to and including 1.26.2) allows any source IP to impersonate arbitrary users because the image ships with REVERSE_PROXY_TRUSTED_PROXIES=* by default. When an operator enables reverse-proxy header authentication (e.g. X-WEBAUTH-USER), the wildcard trust list means Gitea accepts those identity headers from any client rather than only from a trusted front-end proxy, granting full account takeover including administrator access. No public exploit has been identified at time of analysis, and the issue is patched in Gitea 1.26.3.

RemediationAI

Vendor-released patch: upgrade to Gitea 1.26.3 (or later, e.g. 1.26.4) per the release notes at https://github.com/go-gitea/gitea/releases/tag/v1.26.3 and https://blog.gitea.com/release-of-1.26.3-and-1.26.4/; the fix landed via https://github.com/go-gitea/gitea/pull/38151 and is described in advisory https://github.com/go-gitea/gitea/security/advisories/GHSA-f75j-4cw6-rmx4. If you cannot upgrade immediately, explicitly set REVERSE_PROXY_TRUSTED_PROXIES to the exact IP or CIDR of your front-end proxy (for example the proxy's internal address) instead of the wildcard *, which restores the intended trust boundary with no functional downside for legitimate proxy traffic. Alternatively, disable reverse-proxy header authentication entirely if it is not required (side effect: users relying on proxy-based SSO lose that login path), and ensure network controls prevent clients from reaching the Gitea container directly, so identity headers can only originate from the trusted proxy.

Affected VersionsENISA

Gitea Open Source Git Server 0 ≤1.26.2

Affected Packages

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

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, lightweight Git service written in Go. It supports 'reverse proxy authentication', where a trusted front-end proxy authenticates the user and passes the identity to Gitea via an HTTP header (default X-WEBAUTH-USER). To prevent header spoofing, Gitea gates this trust on REVERSE_PROXY_TRUSTED_PROXIES, which should list only the proxy's IP/CIDR. The CPE cpe:2.3:a:gitea:gitea_open_source_git_server confirms the affected component is the Gitea server itself, but the defect is specific to the container packaging: the official Docker image sets REVERSE_PROXY_TRUSTED_PROXIES=* (trust all sources). The root cause maps to CWE-284 (Improper Access Control) - a security-sensitive trust boundary (which upstreams are allowed to assert identity) is configured permissively by default, so the authentication header ceases to be a controlled channel.

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 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 9.8 CRITICAL

When reverse-proxy auth is enabled, any network client can spoof the trusted header without privileges or interaction, so PR:N/UI:N and full C/I/A; the config precondition affects applicability, not base metrics.

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

Primary rating from Vendor (Gitea).

CVSS VectorVendor: Gitea

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

DescriptionCVE.org

Gitea Docker image versions up to and including 1.26.2 use REVERSE_PROXY_TRUSTED_PROXIES=* by default, allowing any source IP to impersonate a user when reverse-proxy authentication headers such as X-WEBAUTH-USER are enabled.

Executive ViewAI

Why It Matters

Gitea Docker image versions through 1.26.2 contain a critical authentication bypass vulnerability that allows attackers to impersonate any user, including administrators, without valid credentials. Organizations using affected Gitea instances with reverse-proxy authentication enabled face immediate risk of unauthorized repository access, code manipulation, and credential exposure. Immediate upgrade to version 1.26.3 is required to eliminate this account-takeover risk.

Business Impact: Severe
Compensating Controls

Apply vendor patch (Gitea 1.26.3). Interim mitigation: Restrict Gitea network access to known trusted proxy IP addresses only via firewall rules; disable forwarding of reverse-proxy authentication headers from untrusted client sources; disable reverse-proxy authentication functionality until patched.

Threat Intelligence Overview

EPSS Score
0.8%
Top 48% exploitable
Prevalence
Medium
popular self-hosted Git service, common but not ubiquitous
Threat Intel
2
1 sources
Exploit
POC
Public exploit code exists
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment NEWS GHSA POC (1) 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 CRITICAL
CISA KEV No
Public POC Yes
EPSS 0.8%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity + public POC available
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
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Total

Priority Score

70
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +49
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

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

CVE-2022-0905 HIGH POC
7.1 Mar 10

Missing Authorization in GitHub repository go-gitea/gitea prior to 1.16.4. Rated high severity (CVSS 7.1), this vulnerab

Vendor StatusVendor

SUSE

Severity: Critical
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