CVE-2026-52845
published high CVSS 3.1 · 8.1Caddy: FastCGI header normalization bypass in `forward_auth copy_headers`
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| caddyserver | — | caddy< 2.11.4 | Affected | Not stated | GitHub_M |
| Red Hat | — | caddyRed Hat Hardened Images | Unaffected | Not required | redhat-SADP |
| Debian | bookworm | caddy | Advisory build | 2.6.2-5+deb12u1 | DLA-4857-1 |
| Debian | trixie | caddy | Advisory build | 2.6.2-12+deb13u1 | DSA-6429-1 |
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.
A flaw was found in Caddy, an extensible server platform. A remote attacker can exploit a vulnerability in the `forward_auth` `copy_headers` functionality. This occurs because Caddy normalizes HTTP headers into Common Gateway Interface (CGI) variables by replacing hyphens with underscores, allowing a client to send an underscore alias that bypasses the header deletion step. This enables the remote attacker to inject or override identity and group headers trusted by PHP/FastCGI applications operating behind Caddy.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.1 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 8.1 | high | redhat-SADP · adp | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| caddyserver | caddy | < 2.11.4 (affected) | GitHub_M · cna |
| Red Hat | Red Hat Hardened Images | Default: unaffected | redhat-SADP · adp |
Weaknesses
4- CWE-287 CWE-287: Improper Authentication
- CWE-290 CWE-290: Authentication Bypass by Spoofing
- CWE-444 CWE-444: Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling')
- CWE-444 Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling')
References
4- https://access.redhat.com/security/cve/CVE-2026-52845
- RHBZ#2491907 https://bugzilla.redhat.com/show_bug.cgi?id=2491907
- https://github.com/caddyserver/caddy/security/advisories/GHSA-f59h-q822-g45g
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-52845.json
Provider assertions
3GitHub_M · cna
Caddy: FastCGI header normalization bypass in `forward_auth copy_headers`
redhat-SADP · adp
github.com/caddyserver/caddy: Caddy: Remote client can inject or override identity headers via header normalization
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- d2a977921edcf6aa7900e9a986e7eddc7221b9c893616fd0f264442a4f9836e3
- Ingested
- 23 Sep 2026, 09:19:36 UTC
- Source record
- Official CVE record