CVE-2026-52845
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.
Weakness
- CWE-287: Improper Authentication
- CWE-290: Authentication Bypass by Spoofing
- CWE-444: Inconsistent Interpretation of HTTP Requests
CISA SSVC decision points
| Exploitation | poc |
|---|---|
| Automatable | no |
| Technical impact | total |
| Scored | 2026-06-24 |
Timeline
- 2026-06-16GitHub advisory published (GHSA-f59h-q822-g45g)7 days before publication
- 2026-06-23Published by the CNA17:52 UTC
- 2026-06-24CISA SSVC decision recorded1 day after publication
Exploit and advisory records
GitHub advisory GHSA-f59h-q822-g45g, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| Go github.com/caddyserver/caddy | through 1.0.5 | |
| Go github.com/caddyserver/caddy/v2 | before 2.11.4 | 2.11.4 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| caddyserver caddy | before 2.11.4fixed in 2.11.4 | 2.11.4 |
References
- 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
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2026-52845'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2026-52845'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2026-52845'curl 'https://api.contrastcyber.com/cve_products/CVE-2026-52845'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).