Go · Servers and applications
CVE-2026-52845
Caddy: FastCGI header normalization bypass in `forward_auth copy_headers`
- Severity
- High 8.1
- Published
- 8 Jun 2026
- Last changed
- 25 Oct 2026
- Added to UpHeron
- 22 Oct 2026
- Fixed in
- 2.11.4
- Exploit chance
- 0.4% in the next 30 daysHigher than 39% of CVEs. EPSS by FIRST, 19 Nov 2026
- Weakness
- Improper authentication (CWE-287)Authentication bypass by spoofing (CWE-290)HTTP request smuggling (CWE-444)
- Attack
- Over the network · Needs a user account · No user action needed
- Attacker can
- Read data · Change data
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N- Also known as
- GHSA-f59h-q822-g45g, GO-2026-5346
- Sources
- NVD, OSV.dev and GitHub, Project advisories (GitHub)
Description
forward_auth copy_headers deletes the exact client-supplied identity header before copying the trusted value from the auth gateway. But when the request later goes through php_fastcgi, Caddy normalizes HTTP headers into CGI variables by replacing - with _.
This lets a client send an underscore alias that survives the forward_auth delete step but becomes the same PHP/FastCGI variable:
Result: a remote client can inject or sometimes override identity/group headers trusted by PHP/FastCGI applications behind Caddy.
forward_auth copy_headers intentionally removes client-controlled headers before setting values from the auth response:
- modules/caddyhttp/reverseproxy/forwardauth/caddyfile.go:212
- modules/caddyhttp/reverseproxy/forwardauth/caddyfile.go:222
That delete is exact-field deletion through http.Header.Del():
- modules/caddyhttp/headers/headers.go:255
- modules/caddyhttp/headers/headers.go:281
So deleting Remote-Groups does not delete Remote_Groups.
Affected software
| Software | Affected versions |
|---|---|
CaddyServers and applications · cpe:a:caddyserver:caddy |
|
CaddyServers and applications · github:caddyserver/caddy |
|
github.com/caddyserver/caddyGo · osv:Go:github.com/caddyserver/caddy |
|
CaddyGo · osv:Go:github.com/caddyserver/caddy/v2 |
|
About Caddy
open source web server
- Share of websites with a known web server
- 1.3%W3Techs, Nov 2026
- Docker Hub pulls
- 770,668,265Docker Hub, 15 Nov 2026
- GitHub stars
- 79,049GitHub, 15 Nov 2026
- Forks
- 5,264GitHub, 15 Nov 2026
- Latest release
- v2.11.9GitHub, 15 Nov 2026
- Released
- 5 Nov 2026GitHub
- License
- Apache Software License 2.0Wikidata
- Written in
- GoWikidata
- First published on GitHub
- 13 Jan 2015GitHub
Website Source code Docker image
Vulnerabilities in Caddy
- In our list
- 30
- Published in the last 12 months
- 23
- Critical, last 12 months
- 0
- High, last 12 months
- 9
- Known exploited
- 1
- GHSA-f278-mgc7-46j3php_fastcgi authorization bypass via dot-segments in the request pathMedium 5.9 4 Nov 2026
- GHSA-jf74-f69g-hcj9file_server exposes private keys when the data directory falls back to ./caddyMedium 4 Nov 2026
- GHSA-69hv-5jfc-mvmvrewrite re-decodes {http.matchers.file.remainder}, bypassing path-based deny rulesMedium 4 Nov 2026
- GHSA-25cw-38mq-q7m6file matcher resolves /file/./ to a regular file, bypassing suffix path rulesMedium 4 Nov 2026
- GHSA-r766-rf9f-588hHost and :authority values with dot segments or slashes escape a {host}-based rootHigh 4 Nov 2026
- CVE-2026-55458Caddy has an RFC 7230 §6.1 compliance issue / Hop-by-hop headers that leak throughLow 2.9 13 Oct 2026
About github.com/caddyserver/caddy
Vulnerabilities in github.com/caddyserver/caddy
- In our list
- 4
- Published in the last 12 months
- 3
- Critical, last 12 months
- 0
- High, last 12 months
- 2
- Known exploited
- 0
- CVE-2026-52844Caddy: Windows `file_server` path authorization bypass via encoded backslashHigh 7.5 8 Jun 2026
- CVE-2026-52846Caddy: stripHTML template function bypass in github.com/caddyserver/caddyMedium 4.2 8 Jun 2026
- CVE-2022-29718Open redirect in caddyMedium 6.1 2 Jun 2022
References
- NVD https://nvd.nist.gov/vuln/detail/CVE-2026-52845
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-52845
- GitHub Advisory Database https://github.com/advisories/GHSA-f59h-q822-g45g
- OSV.dev https://osv.dev/vulnerability/GO-2026-5346
- github.com https://github.com/caddyserver/caddy/security/advisories/GHSA-f59h-q822-g45g