CVE-2026-52845
CVE-2026-52845 · Caddy: FastCGI header normalization bypass in `forward_auth copy_headers`
CVSS 8.1 · High · EPSS 0.4% · Fix available
Compare with your installed version
Affected products and known fixed versions are public information. Compare them with your installed version.
- caddyNo fix published
- caddy Debian 12Update to 2.6.2-5+deb12u1
- caddy Debian 13Update to 2.6.2-12+deb13u1
- caddy Debian 14Update to 2.11.4-1
- and 4 more
Check the installed version:
dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="caddy"'Assess your server’s risks
The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.
Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.
curl -fsSL https://patchfirst.dev/check.sh | shChannels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
- Published
- Updated
Fixes in distributions
- DLA-4857-1 · Debian 12 ·
- DSA-6429-1 · Debian 13 ·
- openSUSE-SU-2026:21551-1 · openSUSE Leap 16.0 ·
- SUSE-SU-2026:23216-1 · SUSE Linux Enterprise Server 16.0, SUSE Linux Enterprise Server for SAP applications 16.0 ·
- SUSE-SU-2026:23227-1 · SUSE Linux Enterprise Server 16.0, SUSE Linux Enterprise Server for SAP applications 16.0 ·
Stack: system
Affected products and versions
caddy
- Versions
- < 2.11.4: Affected
No fix published
caddy Debian 12
- Versions
- 2.6.2-5
- Affected ranges
- ECOSYSTEM: < 2.6.2-5+deb12u1
Update to 2.6.2-5+deb12u1
caddy Debian 13
- Versions
- 2.6.2-12
- Affected ranges
- ECOSYSTEM: < 2.6.2-12+deb13u1
Update to 2.6.2-12+deb13u1
caddy Debian 14
- Versions
- 2.11.2-1
- 2.11.2-1~bpo13+1
- 2.6.2-12
- 2.6.2-13
- 2.6.2-14
- Affected ranges
- ECOSYSTEM: < 2.11.4-1
Update to 2.11.4-1
caddy Ubuntu Pro 24.04 LTS
- Versions
- 2.6.2-6
- 2.6.2-6ubuntu0.24.04.1
- 2.6.2-6ubuntu0.24.04.2
- 2.6.2-6ubuntu0.24.04.2+esm1
- 2.6.2-6ubuntu0.24.04.3
- 2.6.2-6ubuntu0.24.04.3+esm1
All versions (7)
- 2.6.2-6ubuntu0.24.04.3+esm2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
caddy Ubuntu 25.10
- Versions
- 2.6.2-9
- 2.6.2-11
- 2.6.2-12
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
caddy Ubuntu 26.10
- Versions
- 2.6.2-14
- 2.11.4-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
caddy Ubuntu Pro 26.04 LTS
- Versions
- 2.6.2-12
- 2.6.2-14
- 2.6.2-14ubuntu0.26.04.1~esm1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
Original sources
- https://github.com/caddyserver/caddy/security/advisories/GHSA-f59h-q822-g45g
- https://access.redhat.com/security/cve/CVE-2026-52845
- https://bugzilla.redhat.com/show_bug.cgi?id=2491907
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-52845.json
- https://nvd.nist.gov/vuln/detail/CVE-2026-52845