Authentication Bypass in Gitea Docker Image
CVE-2026-20896
Key Information:
- Vendor
Gitea
- Status
- Gitea Open Source Git Server
- CVE ID
- CVE ID:
- CVE-2026-20896
- Vendor
- CVE Published:
- 3 July 2026
Timeline
Exploit known 3 days after it was published
- ๐ก
Public PoC available
- ๐
Vulnerability started trending
- ๐ฐ
Used in Ransomware
- ๐พ
Exploit known to exist
- ๐ฐ
First article discovered by The Hacker News
Vulnerability published
Vulnerability Reserved
Badges
How risky is it?
- Yes: Works over the network, no login needed
- Yes: Public exploit code (3 proof-of-concepts)
- No: Not on CISA's exploited list
- Yes: Used by ransomware
Our verdict
Patch now
Attackers are using it. Patch or mitigate today.
What to do
1Check the vendor's fix
No fixed version is recorded yet. The vendor advisory is the authoritative source for patches.
Read the vendor advisory โ2Can't patch yet? Reduce exposure
It can be reached over the network, so limit who can reach Gitea Open Source Git Server. Block it from the internet, allow only trusted hosts or a VPN, and turn off the affected feature if you don't use it, until you can update.
3Look for signs of compromise
It is being exploited in the wild, so check logs on exposed Gitea Open Source Git Server systems for unusual requests or new processes from before you patched. The 3 public proof-of-concepts show what an attack looks like.
4Why it's rated "Patch now"
- Ransomware groups use it.
- Exploit code is public, so attacks are easy to copy.
- It can be exploited remotely without credentials.
- Its CVSS severity is critical (9.8).
What is CVE-2026-20896?
CVE-2026-20896 is a critical vulnerability in the Gitea Open Source Git Server's official Docker image, affecting versions up to and including 1.26.2. The flaw arises from the default configuration that sets REVERSE_PROXY_TRUSTED_PROXIES=*, allowing any source IP to impersonate users when reverse-proxy authentication headers, such as X-WEBAUTH-USER, are enabled. An attacker can exploit this misconfiguration to gain unauthorized access, including administrative privileges, without needing a password or token.
Gitea released versions 1.26.3 and 1.26.4 to address this vulnerability by removing the wildcard default and requiring explicit configuration for reverse-proxy authentication. The flaw has been actively exploited in the wild, with automated scanners targeting exposed Gitea instances shortly after the public advisory was issued.
Potential Impact of CVE-2026-20896
-
Unauthorized User Impersonation: Attackers can impersonate any user, including administrators, allowing them to access and modify repositories, configurations, and sensitive data.
-
Compromised Development Pipelines: An attacker with admin access can alter CI/CD configurations, potentially injecting malicious code into builds and affecting downstream systems that rely on the compromised Gitea instance.
Affected Version(s)
Gitea Open Source Git Server 0 <= 1.26.2
Exploit Proof of Concept (PoC)
PoC code is written by security researchers to demonstrate the vulnerability can be exploited. PoC code is also a key component for weaponization which could lead to ransomware.
News Articles
Gitea Docker Flaw Now Actively Probed: One Header Grants Admin Access to Source Code
Gitea Docker CVE-2026-20896 is under active scanning: Sysdig detected attackers probing the CVSS 9.8 authentication bypass 13 days after the advisory, using one HTTP header to claim admin access to
Hackers exploit critical auth bypass in Gitea Docker image
Hackers are actively exploiting a critical vulnerability in the official Docker image for the Gitea self-hosted Git service that allows attackers to impersonate any user, including administrators.
Threat Actors Probe Gitea Docker Flaw CVE-2026-20896 13 Days After Disclosure
๎ Ravie Lakshmanan๎ Jul 06, 2026Vulnerability / DevOps
References
More Gitea Vulnerabilities
Workflow Vulnerability in Gitea Actions
Remote Code Execution in Gitea
Workflow Approval Gate Bypass in Gitea
Facts on this page come from the sources listed above; the writeup is AI-assisted. How we rate vulnerabilities ยท Report a correction
