Skip to content
OpenAdvisories
High · 8.1 CVE-2026-52845 EUVD-2026-38558GHSA-f59h-q822-g45gGO-2026-5346

Caddy: FastCGI header normalization bypass in `forward_auth copy_headers`

Published Jun 23, 2026 · Updated Jul 15, 2026 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
caddyserver caddy < 2.11.4 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 caddy 2.11.4-1 —
Debian 13 caddy 2.6.2-12+deb13u1 —
Debian 12 caddy 2.6.2-5+deb12u1 —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 caddy No fix yet —
Ubuntu 25.10 caddy No fix yet —
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 26.04 LTS caddy No fix yet —
Ubuntu Pro 24.04 LTS caddy No fix yet —
ReleasePackageFixed inAdvisory
SLES for SAP 16.0 govulncheck-vulndb 0.0.20260727T201416-160000.1.1 SUSE-SU-2026:23227-1, SUSE-SU-2026:23216-1
SLES 16.0 govulncheck-vulndb 0.0.20260727T201416-160000.1.1 SUSE-SU-2026:23227-1, SUSE-SU-2026:23216-1
ReleasePackageFixed inAdvisory
openSUSE Leap 16.0 govulncheck-vulndb 0.0.20260727T201416-160000.1.1 openSUSE-SU-2026:21551-1

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/caddyserver/caddy <= 1.0.5 — GHSA-f59h-q822-g45g
Go github.com/caddyserver/caddy/v2 < 2.11.4 2.11.4 GHSA-f59h-q822-g45g

Advisories 3

References