CVE-2026-52845: Caddy is an extensible server platform that uses TLS by default.
High CVSS 8.1
- CVE id
- CVE-2026-52845
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| Caddy Runtimes and servers |
< 2.11.4 | 2.11.4 |
How to fix it
Upgrade Caddy to 2.11.4 or later.
caddy version
- Upgrade Caddy (the caddy image tag or binary) to the patched release.
A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.
Details
Caddy is an extensible server platform that uses TLS by default. Prior to 2.11.4, forwardauth copyheaders 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 forwardauth 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.
References
- CVE-2026-52845 on the NVD
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2026-52845
- Web: https://github.com/caddyserver/caddy/security/advisories/GHSA-f59h-q822-g45g
- Web: https://access.redhat.com/security/cve/CVE-2026-52845
- Web: https://bugzilla.redhat.com/show_bug.cgi?id=2491907
- Web: https://github.com/caddyserver/caddy/security/advisories/GHSA-f59h-q822-g45g
- Web: https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-52845.json
Am I affected?
Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.
About this data
Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.