PoC Monitor
← All CVEs
CVE-2026-20896published 3 Jul 2026 20:19 UTCData: JSON · API

Gitea Open Source Git Server

Gitea Docker image trusts spoofable reverse-proxy headers by default

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.

First public PoC 1.8 days beforebefore publication · 2 Jul 2026
Public PoCs98 on GitHub · 1 Exploit-DB, Metasploit or nuclei
CVSS9.8critical · scored by CNA · CWE-284
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record, GitHub Security Advisories and the vendor's references.

Affected

Gitea Gitea Open Source Git Server
  • <= 1.26.2
code.gitea.io/gitea (Go)
  • < 1.26.3

Fixed in 1.26.3

from GitHub Security Advisory GHSA-f75j-4cw6-rmx4

Mitigation

Upgrade code.gitea.io/gitea to 1.26.3 or later.

References

1 more

Timeline

Days relative to CVE publication
-2t=0+2+4+6+8First public PoC2 Jul 2026 · t−1.8dCVE published3 Jul 2026 · t = 0

First public PoC 1.8 days before publication; not in CISA KEV. First PoC: kaleth4/CVE-2026-20896 (created 2 Jul 2026, found by us: backfilled).

PoC repositories

Found on GitHub.

8 PoCs

PoCs 8
RepositoryCreatedStarsAssessment
kaleth4/CVE-2026-20896 2 Jul 2026 −1.8 d 1 PoC
rz1027/CVE-2026-20896 5 Jul 2026 +1.9 d 6 PoC
szybnev/cve-2026-20896-gitea-poc 7 Jul 2026 +4 d 10 PoC
XaocZenon/CVE-2026-20896 16 Jul 2026 +13 d 6 PoC
EQSTLab/CVE-2026-20896 29 Jul 2026 +25 d 1 PoC
judgedbykira/CVE-2026-20896-Gitea-Authentication-Bypass 15 Aug 2026 +43 d 1 PoC
yym8538/CVE-2026-20896 21 Aug 2026 +48 d 1 PoC
Raincombat/CVE-2026-20896-Gitea-CTF 15 Oct 2026 +104 d 0 PoC
Flags · score 30
  • README gives an archive password

Below the suspicion threshold (50); does not change the assessment.

Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.

Other public exploits

Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.
SourceTitlePublishedFound by us
nuclei templatenuclei template: Gitea Docker Image <= 1.26.2 - Reverse Proxy Header Authentication Bypass3 Aug 202614 Nov 2026

PoC characteristics

What to hunt for in your logs · from 8 PoC repos

GET /gitea-admin/private-proof/raw/branch/main/proof.txt

Key headers
X-Webauth-User: gitea-admin
Ports
3000
Seen in
2 repos: EQSTLab/CVE-2026-20896, yym8538/CVE-2026-20896
Evidence
EQSTLab/CVE-2026-20896/README.md:41 yym8538/CVE-2026-20896/README.md:41

GET /api/v1/user

Key headers
Accept: application/json Authorization: token ../../../../api/v1/users/admin/tokens/spoof_bypass
PoC User-Agent
Mozilla/5.0 (X11; Linux x86_64; rv:109.0)
Seen in
1 repo: kaleth4/CVE-2026-20896
Evidence
kaleth4/CVE-2026-20896/README.md:66

DELETE /api/v1/users/ctfuser/tokens/{var})

Ports
3000
Seen in
1 repo: Raincombat/CVE-2026-20896-Gitea-CTF
Evidence
Raincombat/CVE-2026-20896-Gitea-CTF/challenge/init-ctf.sh:117

GET /ctfuser/secret-project/raw/branch/main/flag.txt

Key headers
X-Webauth-User: ctfuser
Ports
3000, 10017
Seen in
1 repo: Raincombat/CVE-2026-20896-Gitea-CTF
Evidence
Raincombat/CVE-2026-20896-Gitea-CTF/WRITEUP.md:68 Raincombat/CVE-2026-20896-Gitea-CTF/WRITEUP.md:85 Raincombat/CVE-2026-20896-Gitea-CTF/WRITEUP.md:105

GET /user/settings

Ports
3000
Seen in
1 repo: XaocZenon/CVE-2026-20896
Evidence
XaocZenon/CVE-2026-20896/poc.py:43

POST /

Key headers
Authorization: token {var}
Body markers
"content" "message":"Initialize challenge data" "branch":"main" in application/json
Ports
3000, 10017
Seen in
1 repo: Raincombat/CVE-2026-20896-Gitea-CTF
Evidence
Raincombat/CVE-2026-20896-Gitea-CTF/challenge/init-ctf.sh:101

POST /api/v1/user/repos

Key headers
Authorization: token {var}
Body markers
"name":"secret-project" "private" "auto_init" "default_branch":"main" in application/json
Ports
3000
Seen in
1 repo: Raincombat/CVE-2026-20896-Gitea-CTF
Evidence
Raincombat/CVE-2026-20896-Gitea-CTF/challenge/init-ctf.sh:52

PUT /

Key headers
Authorization: token {var}
Body markers
"content" "sha" "message":"Update challenge data" "branch":"main" in application/json
Ports
3000, 10017
Seen in
1 repo: Raincombat/CVE-2026-20896-Gitea-CTF
Evidence
Raincombat/CVE-2026-20896-Gitea-CTF/challenge/init-ctf.sh:91

Regex

Generated from PoC characteristics; not yet reviewed. Matches the request path and query.

GET /
(?i)^/(?:[?#].*)?$
GET /api/v1/version
(?i)^/api/v1/version(?:[?#].*)?$
GET /gitea-admin/private-proof/raw/branch/main/proof.txt
(?i)^/gitea-admin/private-proof/raw/branch/main/proof\.txt(?:[?#].*)?$
GET /api/v1/user
(?i)^/api/v1/user(?:[?#].*)?$
DELETE /api/v1/users/ctfuser/tokens/{var})
(?i)^/api/v1/users/ctfuser/tokens/[^/?#]*\)(?:[?#].*)?$

Suricata

Template generated from PoC characteristics. Review before deploying.

GET /
alert http any any -> $HOME_NET [3000,10017] (msg:"GG PoC-Monitor CVE-2026-20896 Gitea Gitea Open Source Git Server exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.header; content:"Authorization: token "; nocase; http.header; content:"X-Webauth-User: $user"; nocase; reference:url,poc.griffinguard.io/cve/CVE-2026-20896; classtype:web-application-attack; sid:9734957; rev:1;)
GET /api/v1/version
alert http any any -> $HOME_NET [3000,10017] (msg:"GG PoC-Monitor CVE-2026-20896 Gitea Gitea Open Source Git Server exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/api/v1/version"; reference:url,poc.griffinguard.io/cve/CVE-2026-20896; classtype:web-application-attack; sid:9849182; rev:1;)
GET /gitea-admin/private-proof/raw/branch/main/proof.txt
alert http any any -> $HOME_NET [3000] (msg:"GG PoC-Monitor CVE-2026-20896 Gitea Gitea Open Source Git Server exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/gitea-admin/private-proof/raw/branch/main/proof.txt"; http.header; content:"X-Webauth-User: gitea-admin"; nocase; reference:url,poc.griffinguard.io/cve/CVE-2026-20896; classtype:web-application-attack; sid:9069645; rev:1;)
GET /api/v1/user
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2026-20896 Gitea Gitea Open Source Git Server exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/api/v1/user"; http.header; content:"Accept: application/json"; nocase; http.header; content:"Authorization: token ../../../../api/v1/users/admin/tokens/spoof_bypass"; nocase; reference:url,poc.griffinguard.io/cve/CVE-2026-20896; classtype:web-application-attack; sid:9488565; rev:1;)
DELETE /api/v1/users/ctfuser/tokens/{var})
alert http any any -> $HOME_NET [3000] (msg:"GG PoC-Monitor CVE-2026-20896 Gitea Gitea Open Source Git Server exploit attempt"; flow:established,to_server; http.method; content:"DELETE"; http.uri; content:"/api/v1/users/ctfuser/tokens/"; reference:url,poc.griffinguard.io/cve/CVE-2026-20896; classtype:web-application-attack; sid:9796986; rev:1;)

Sigma

Template generated from PoC characteristics. Review before deploying.

GET /
title: Gitea Gitea Open Source Git Server exploit attempt (CVE-2026-20896)
id: gg-pocmon-cve-2026-20896-9734957
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-20896. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2026-20896
logsource:
  category: webserver
detection:
  selection:
    cs-method: GET
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: critical
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2026.20896
GET /api/v1/version
title: Gitea Gitea Open Source Git Server exploit attempt (CVE-2026-20896)
id: gg-pocmon-cve-2026-20896-9849182
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-20896. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2026-20896
logsource:
  category: webserver
detection:
  selection:
    cs-method: GET
    cs-uri-stem|contains|all:
      - '/api/v1/version'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: critical
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2026.20896
GET /gitea-admin/private-proof/raw/branch/main/proof.txt
title: Gitea Gitea Open Source Git Server exploit attempt (CVE-2026-20896)
id: gg-pocmon-cve-2026-20896-9069645
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-20896. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2026-20896
logsource:
  category: webserver
detection:
  selection:
    cs-method: GET
    cs-uri-stem|contains|all:
      - '/gitea-admin/private-proof/raw/branch/main/proof.txt'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: critical
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2026.20896
GET /api/v1/user
title: Gitea Gitea Open Source Git Server exploit attempt (CVE-2026-20896)
id: gg-pocmon-cve-2026-20896-9488565
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-20896. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2026-20896
logsource:
  category: webserver
detection:
  selection:
    cs-method: GET
    cs-uri-stem|contains|all:
      - '/api/v1/user'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: critical
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2026.20896
DELETE /api/v1/users/ctfuser/tokens/{var})
title: Gitea Gitea Open Source Git Server exploit attempt (CVE-2026-20896)
id: gg-pocmon-cve-2026-20896-9796986
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-20896. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2026-20896
logsource:
  category: webserver
detection:
  selection:
    cs-method: DELETE
    cs-uri-stem|contains|all:
      - '/api/v1/users/ctfuser/tokens/'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: critical
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2026.20896