CVE-2026-52845 Caddy: FastCGI header normalization bypass in `forward_auth copy_headers`
HighCVSS 8.1
EPSS 0.45%
- Published
- Updated
- Exploit status
- No public exploit known
Description
Caddy is an extensible server platform that uses TLS by default. Prior to 2.11.4, 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. This vulnerability is fixed in 2.11.4.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| caddyserver github.com/caddyserver/caddy | = < 2.11.4 | No fix listed |
| redhat hummingbird | = 1 | No fix listed |
| caddyserver github.com/caddyserver/caddy(Go) | < 2.11.4 | 2.11.4 |
| caddyserver github.com/caddyserver/caddy(Go) | <= 1.0.5 | No fix listed |
| debian/caddy(Debian:12) | < 2.6.2-5+deb12u1 | 2.6.2-5+deb12u1 |
| debian/caddy(Debian:12) | = 2.6.2-5 | No fix listed |
| debian/caddy(Debian:13) | < 2.6.2-12+deb13u1 | 2.6.2-12+deb13u1 |
| debian/caddy(Debian:13) | = 2.6.2-12 | No fix listed |
| debian/caddy(Debian:14) | < 2.11.4-1 | 2.11.4-1 |
| debian/caddy(Debian:14) | = 2.11.2-1 | No fix listed |
| debian/caddy(Debian:14) | = 2.11.2-1~bpo13+1 | No fix listed |
| debian/caddy(Debian:14) | = 2.6.2-12 | No fix listed |
| debian/caddy(Debian:14) | = 2.6.2-13 | No fix listed |
| debian/caddy(Debian:14) | = 2.6.2-14 | No fix listed |
| ubuntu/caddy(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/caddy(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/caddy(Ubuntu:26.10) | All versions | No fix listed |
| caddyserver github.com/caddyserver/caddy | < 2.11.4 | 2.11.4 |
References
- https://github.com/caddyserver/caddy/security/advisories/GHSA-f59h-q822-g45g exploit third-party-advisory vendor-advisory
- Red Hat CVE page vdb-entry vendor-advisory
- RHBZ#2491907 issue-tracking
- security.access.redhat.com
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com product
- github.com patch
- www.cve.org
- github.com
- Debian Security Tracker CVE-2026-52845 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- bugs.debian.org issue-tracking