Authentication Bypass by Spoofing in Caddy - CVE-2026-52845
Published: November 9, 2026
Vulnerability details
The vulnerability allows a low-privileged remote attacker to inject trusted identity or group values into PHP/FastCGI applications behind Caddy.
The vulnerability exists due to inconsistent header normalization between Caddy's forward_auth copy_headers filtering and subsequent FastCGI processing in deployments whose applications trust the resulting identity variables. A low-privileged remote attacker can send underscore-containing header aliases that survive filtering and become trusted CGI variables, including injecting a group value omitted by the authentication gateway.