Exploit database

Vulnerability

CVE-2026-20896

Gitea Docker image trusts spoofable reverse-proxy headers by default

Vulnerability details

Score
9.8
Severity
critical

CVSS 3.1 · Gitea

Vector string

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

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.

CVE Program

Exploit source choices

7 sources
szybnev/cve-2026-20896-gitea-poc
GH-9f4b93638a25885c8d64349fee711991GitHubUnofficial GitHub sourcePreferred

CVE-2026-20896 Gitea Docker X-WEBAUTH-USER auth bypass checker

2026-07-075 files · 10 stars
rz1027/cve-2026-20896
GH-fcf6583d188411184805215f4f9c4eeeGitHubUnofficial GitHub source

Public PoC and detector for CVE-2026-20896 ("Gitea Docker: One Header, Any User")

2026-07-056 files · 6 stars
xaoczenon/cve-2026-20896
GH-73884da9df18515d1b5ebfe548cbe0ebGitHubUnofficial GitHub source

this is a modified POC of rz1027 for CVE-2026-20896

2026-07-166 files · 6 stars
eqstlab/cve-2026-20896
GH-df19523ee0ad2b59e13ab2b57a7be5deGitHubUnofficial GitHub source

Gitea Docker Image Authentication Bypass

2026-07-294 files · 1 stars
judgedbykira/cve-2026-20896-gitea-authentication-bypass
GH-f0725122fa89804504438ed4d2616860GitHubUnofficial GitHub source

An explanation and PoC to exploit CVE-2026-20896 Authentication Bypass Vulnerability on Gitea. Being able to steal session tokens for valid users in the Gitea instance.

2026-08-153 files · 1 stars
kaleth4/cve-2026-20896
GH-0232c3b6116ec0b2645e2f486a0fbc3cGitHubUnofficial GitHub source

kaleth4/cve-2026-20896 source repository

2026-07-022 files · 1 stars
yym8538/cve-2026-20896
GH-1e5634274e736e025dc6ef65b8307105GitHubUnofficial GitHub source

yym8538/cve-2026-20896 source repository

2026-08-214 files · 1 stars