# CVE-2026-52845: Caddy: FastCGI header normalization bypass in \`forward\_auth copy\_headers\`

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability: affected before 2.11.4 (CNA); fix release not confirmed
- Status: published
- Published: 2026-06-23 · Modified: 2026-07-15
- Aliases: UBUNTU-CVE-2026-52845, DEBIAN-CVE-2026-52845, GHSA-f59h-q822-g45g, GO-2026-5346
- Record: https://cvemate.com/vulnerability/CVE-2026-52845 · JSON: https://cvemate.com/vulnerability/CVE-2026-52845/json

## Description

```text
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.
```

## Signals

- CVSS: 8.1 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
- EPSS: 0.291%, percentile 23.311%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- caddyserver caddy: \< 2.11.4
- debian caddy (Debian): All versions (No fix recorded) \| \< 2.6.2-5+deb12u1 \| \< 2.6.2-12+deb13u1 \| \< 2.11.4-1
- ubuntu caddy (Ubuntu): All versions (No fix recorded) \| \< 2.6.2-6ubuntu0.24.04.3+esm3 \| \< 2.6.2-14ubuntu0.26.04.1~esm2
- github.com/caddyserver caddy (Go): ≤ 1.0.5
- github.com/caddyserver/caddy v2 (Go): \< 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>
- <https://ubuntu.com/security/CVE-2026-52845>
- <https://www.cve.org/CVERecord?id=CVE-2026-52845>
- <https://security-tracker.debian.org/tracker/CVE-2026-52845>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-52845>
- <https://github.com/caddyserver/caddy>
- <https://github.com/caddyserver/caddy/pull/7633>
- <https://ubuntu.com/security/notices/USN-9260-1>

---

Data as of 2026-12-05T09:45:20.818Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
