Skip to main content
← All vulnerabilities
CVE-2026-52845GHSA-F59H-Q822-G45GGO-2026-5346

Caddy: FastCGI header normalization bypass in `forward_auth copy_headers`

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.11.4
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • caddyserver caddy

    fixed in 2.11.4

  • github.com/caddyserver/caddy/v2Go

    fixed in 2.11.4

  • github.com/caddyserver/caddyGo

    through 1.0.5

References 1

GitHub · caddyserver/caddy