CVE-2026-20896

CRITICAL EXPLOITED LAB

Gitea Docker image trusts spoofable reverse-proxy headers by default

Title source: cna
STIX 2.1

Exploitation Summary

CVE-2026-20896 has been observed exploited in the wild (reported by VulnCheck KEV). EIP tracks 6 public exploits from researchers including Lite-os15, XaocZenon, HORKimhab.

AI-analyzed exploit summary The repository contains only a README.md file with a minimal title and no technical details, exploit code, or vulnerability analysis. It appears to be an incomplete or placeholder repository with no functional content.

Description

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.

Exploits (6)

github STUB
by Lite-os15 · poc
https://github.com/Lite-os15/Lab-001-Gitea-CVE-2026-20896-

The repository contains only a README.md file with a minimal title and no technical details, exploit code, or vulnerability analysis. It appears to be an incomplete or placeholder repository with no functional content.

Classification
Stub 95%
Attack Type
Other
Complexity
Trivial
Reliability
Theoretical
Target: Gitea (version unspecified)
No auth needed
mistral-large-3 · analyzed Jul 24, 2026 Full analysis →
github WORKING POC
by XaocZenon · pythonremote
https://github.com/XaocZenon/CVE-2026-20896

This repository contains a functional proof-of-concept exploit for CVE-2026-20896, an authentication bypass vulnerability in Gitea <=1.26.2. The exploit spoofs the X-WEBAUTH-USER header to impersonate users without credentials by abusing overly permissive reverse proxy trust settings (REVERSE_PROXY_TRUSTED_PROXIES=*).

Classification
Working Poc 98%
Attack Type
Auth Bypass
Complexity
Trivial
Reliability
Reliable
Target: Gitea <=1.26.2
No auth needed
Prerequisites: Gitea instance with reverse-proxy authentication enabled · REVERSE_PROXY_TRUSTED_PROXIES set to * or overly permissive CIDR · Network access to the Gitea instance
mistral-large-3 · analyzed Jul 16, 2026 Full analysis →
github SUSPICIOUS
by HORKimhab · poc
https://github.com/HORKimhab/poc-cve-collection/tree/main/2026/20xxx/CVE-2026-20896.md

The repository does not contain exploit code or technical analysis for CVE-2026-20896, an auth_bypass vulnerability in Gitea Docker images (≤1.26.2) due to misconfigured reverse-proxy trust settings. Instead, it links to external GitHub repos and an encrypted archive, lacking depth or proof-of-concept details.

Classification
Suspicious 95%
Attack Type
Auth Bypass
Complexity
Trivial
Reliability
Reliable
Target: Gitea Docker image versions up to and including 1.26.2
No auth needed
Prerequisites: Reverse-proxy authentication headers (e.g., X-WEBAUTH-USER) enabled · Attacker-controlled source IP to spoof headers
mistral-large-3 · analyzed Jul 08, 2026 Full analysis →
github WORKING POC
by szybnev · goremote
https://github.com/szybnev/cve-2026-20896-gitea-poc

This repository contains a functional proof-of-concept for CVE-2026-20896, an authentication bypass vulnerability in Gitea Docker images (≤1.26.2) where reverse-proxy authentication can be bypassed via the X-WEBAUTH-USER header. The PoC checks for vulnerable instances by sending crafted requests with the header and verifying impersonation via page title changes.

Classification
Working Poc 99%
Attack Type
Auth Bypass
Complexity
Trivial
Reliability
Reliable
Target: Gitea (Docker images ≤1.26.2)
No auth needed
Prerequisites: Gitea instance with ENABLE_REVERSE_PROXY_AUTHENTICATION=true · Direct access to the Gitea container HTTP port (bypassing reverse proxy) · Knowledge of valid usernames (e.g., admin, alice)
mistral-large-3 · analyzed Jul 08, 2026 Full analysis →
github WORKING POC
by rz1027 · pythonremote
https://github.com/rz1027/CVE-2026-20896

This repository provides a functional proof-of-concept exploit for CVE-2026-20896, a reverse-proxy authentication bypass in Gitea <=1.26.2 Docker images. The exploit spoofs the X-WEBAUTH-USER header to impersonate any user without authentication by abusing the default REVERSE_PROXY_TRUSTED_PROXIES=* configuration.

Classification
Working Poc 100%
Attack Type
Auth Bypass
Complexity
Trivial
Reliability
Reliable
Target: Gitea Docker image versions <=1.26.2
No auth needed
Prerequisites: Network access to the Gitea instance · Reverse-proxy authentication enabled (common SSO setup) · Auto-registration enabled (default in vulnerable images)
mistral-large-3 · analyzed Jul 05, 2026 Full analysis →
github WORKING POC
by kaleth4 · pythonpoc
https://github.com/kaleth4/CVE-2026-20896

This repository contains a functional proof-of-concept exploit for CVE-2026-20896, an authentication bypass vulnerability in Gitea. The exploit leverages a directory traversal flaw in the API token validation logic to impersonate administrative users without valid credentials.

Classification
Working Poc 95%
Attack Type
Auth Bypass
Complexity
Moderate
Reliability
Reliable
Target: Gitea versions prior to 1.26.3
No auth needed
Prerequisites: Gitea instance running in Docker with `REVERSE_PROXY_TRUSTED_PROXIES=*` configured · Target version must be < 1.26.3
mistral-large-3 · analyzed Jul 04, 2026 Full analysis →

References (4)

Core 4
Core References
Vendor Advisory vendor-advisory
GitHub Security Advisory
https://github.com/go-gitea/gitea/security/advisories/GHSA-f75j-4cw6-rmx4
Patch patch
GitHub Pull Request #38151
https://github.com/go-gitea/gitea/pull/38151
Release Notes release-notes
Gitea v1.26.3 Release
https://github.com/go-gitea/gitea/releases/tag/v1.26.3
Release Notes release-notes
Gitea v1.26.4 Release Blog Post
https://blog.gitea.com/release-of-1.26.3-and-1.26.4/

Scores

CVSS v3 9.8
EPSS 0.3181
EPSS Percentile 98.1%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

CISA SSVC

Vulnrichment
Exploitation poc
Automatable yes
Technical Impact total

Details

VulnCheck KEV 2026-07-06
CWE
CWE-284
Status published
Products (2)
code.gitea.io/gitea 0 - 1.26.3Go
Gitea/Gitea Open Source Git Server < 1.26.2
Published Jul 03, 2026
Tracked Since Jul 04, 2026