{"id":"CVE-2026-52845","published":"2026-06-23T17:52:01Z","modified":"2026-07-15T00:46:09Z","title":"Caddy: FastCGI header normalization bypass in `forward_auth copy_headers`","vendor":"caddyserver","product":"caddy","tier":"tail","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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00445,"percentile":0.39611,"provenance":"source"},"cwes":[{"id":"CWE-287","name":"Improper Authentication"},{"id":"CWE-290","name":"Authentication Bypass by Spoofing"},{"id":"CWE-444","name":"Inconsistent Interpretation of HTTP Requests"}],"references":[{"url":"https://github.com/caddyserver/caddy/security/advisories/GHSA-f59h-q822-g45g","tags":["x_refsource_CONFIRM"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-52845","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2491907","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-52845.json","tags":["x_sadp-csaf-vex"]}],"priority":{"score":13.6,"factors":[{"name":"EPSS percentile","points":7.92},{"name":"CVSS severity","points":5.67}]},"vendorSlug":"caddyserver","affectedVersions":[{"vendor":"caddyserver","product":"caddy","versions":["< 2.11.4"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-06-24T14:25:18.472130Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/caddyserver/caddy/v2","vulnerableRanges":["<2.11.4"],"patched":["2.11.4"],"from":["GHSA-f59h-q822-g45g","GO-2026-5346"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/caddyserver/caddy","vulnerableRanges":["<=1.0.5"],"patched":[],"from":["GHSA-f59h-q822-g45g"],"provenance":"source"}],"summary":{"text":"Caddy, the extensible web server platform, has a flaw in how its forward_auth copy_headers directive handles identity headers when requests are passed on to php_fastcgi, because Caddy converts - to _ when building CGI variables after the header-deletion step has already run. An attacker with network access and low privileges (a valid client session that the request path allows) can send an underscore-named alias of a trusted identity or group header, which then reaches PHP/FastCGI applications as the same variable and can inject or sometimes override the identity the application trusts.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:39:07Z"},"euvd":{"id":"EUVD-2026-38558","exploited":false,"provenance":"source"}}