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.
Affected versions and mitigation
From the CVE record, GitHub Security Advisories and the vendor's references.Affected
- <= 1.26.2
Mitigation
Upgrade code.gitea.io/gitea to 1.26.3 or later.
References
- Vendor advisory github.com/go-gitea/gitea/security/advisories/…
- Patch github.com/go-gitea/gitea/pull/38151
- Release notes github.com/go-gitea/gitea/releases/tag/v1.26.3
1 more
- Release notes blog.gitea.com/release-of-1.26.3-and-1.26.4
Timeline
Days relative to CVE publicationFirst 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
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| 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
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.| Source | Title | Published | Found by us |
|---|---|---|---|
| nuclei template | nuclei template: Gitea Docker Image <= 1.26.2 - Reverse Proxy Header Authentication Bypass | 3 Aug 2026 | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 8 PoC reposGET /
- Key headers
Authorization: token {var}X-Webauth-User: $user- Ports
- 3000, 10017
- Seen in
- 2 repos: Raincombat/CVE-2026-20896-Gitea-CTF, szybnev/cve-2026-20896-gitea-poc
- Evidence
- Raincombat/CVE-2026-20896-Gitea-CTF/challenge/init-ctf.sh:81 szybnev/cve-2026-20896-gitea-poc/poc.sh:56 szybnev/cve-2026-20896-gitea-poc/poc.sh:72
GET /api/v1/version
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/jsonAuthorization: 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 /api/healthz
- Ports
- 3000
- Seen in
- 1 repo: judgedbykira/CVE-2026-20896-Gitea-Authentication-Bypass
- Evidence
- judgedbykira/CVE-2026-20896-Gitea-Authentication-Bypass/README.md:47
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"inapplication/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"inapplication/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"inapplication/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.
(?i)^/(?:[?#].*)?$
(?i)^/api/v1/version(?:[?#].*)?$
(?i)^/gitea-admin/private-proof/raw/branch/main/proof\.txt(?:[?#].*)?$
(?i)^/api/v1/user(?:[?#].*)?$
(?i)^/api/v1/users/ctfuser/tokens/[^/?#]*\)(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
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;)
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;)
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;)
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;)
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.
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
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
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
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
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