Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach Gitea instance over network
-
DeliveryCraft HTTP request with forged X-WEBAUTH-USER header
-
ExploitWildcard trusted-proxy accepts spoofed identity
-
ExecutionObtain impersonated (admin) session
-
ImpactFull 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
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.
Primary rating from Vendor (Gitea).
CVSS VectorVendor: Gitea
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.
Articles & Coverage 1
Executive ViewAI
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Remote code execution in Gitea (self-hosted Git service) via a code-injection flaw (CWE-94) allows attackers to run arbi
Broken access control in Gitea's Composer package registry (versions up to and including 1.26.1) lets remote attackers r
Gitea before 1.16.7 does not escape git fetch remote. Rated high severity (CVSS 7.5), this vulnerability is remotely exp
The git hook feature in Gitea 1.1.0 through 1.12.5 might allow for authenticated remote code execution in customer envir
Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site Scripting') vulnerability in Gitea Gitea
Path traversal in Gitea's Org-mode (`.org`) markup renderer allows an attacker who can get Org-mode content rendered by
Container escape in Gitea act_runner (Docker backend, through act 0.262.0) lets an authenticated user with workflow-exec
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
Server-side request forgery and internal repository exfiltration in Gitea before 1.27.0 lets a low-privileged authentica
Authorization bypass in Gitea versions 1.22.3 through 1.26.1 allows holders of `public-only` access tokens or OAuth gran
An issue was discovered in Gitea through 1.11.5. Rated high severity (CVSS 7.5), this vulnerability is remotely exploita
Missing Authorization in GitHub repository go-gitea/gitea prior to 1.16.4. Rated high severity (CVSS 7.1), this vulnerab
Same weakness CWE-284 – Improper Access Control
View allSame technique Authentication Bypass
View allVendor 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 |
| openSUSE Leap 15.6 | Affected |
EUVD-2026-41614
GHSA-f75j-4cw6-rmx4
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB