Authentication Bypass in Gitea Docker Image

Patch nowFull system takeover over the network, no login needed.
9.8CRITICAL

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

๐Ÿ“ˆ Trended๐Ÿ“ˆ Score: 3,180๐Ÿ’ฐ Ransomware๐Ÿ‘พ Exploit Exists๐ŸŸก Public PoC๐Ÿ“ฐ News Worthy

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

  1. Unauthorized User Impersonation: Attackers can impersonate any user, including administrators, allowing them to access and modify repositories, configurations, and sensitive data.

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

favicon imageBleepingComputer

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.

favicon imageSwapupdate

Threat Actors Probe Gitea Docker Flaw CVE-2026-20896 13 Days After Disclosure

๎ „Ravie Lakshmanan๎ ‚Jul 06, 2026Vulnerability / DevOps

References

Workflow Vulnerability in Gitea Actions

CVE-2026-104626
GiteaGitea8.8HIGH

Remote Code Execution in Gitea

CVE-2026-60004
GiteaGitea๐Ÿ˜„๐Ÿ‘พ9.8CRITICAL

Workflow Approval Gate Bypass in Gitea

CVE-2026-58424
GiteaGitea Open Source Git ...๐Ÿ‘พ8.9HIGH
View more Gitea vulnerabilities...

Facts on this page come from the sources listed above; the writeup is AI-assisted. How we rate vulnerabilities ยท Report a correction

CVSS V3.1

Score:
9.8
Severity:
CRITICAL
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
None
Scope:
Unchanged

Credit

rz1027
.