patchminder
Proof of concept · CISA assessment CVE-2026-52845

Authentication bypassin caddyserver caddy.

Published 23 Jun 2026 · Updated 15 Jul 2026 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Proof of concept public (CISAThe US cyber defence agency. Its list names every hole it has seen used in real attacks. assessment).

Severity
High 8.1
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1
Attack likelihood
Low
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 0.3% chance in 30 days · 4 Dec 2026
Fix
Available
Upgrade to 2.11.4 or later
In plain words

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.

What to do now
  • Upgrade caddy to 2.11.4 or later.
  • Upgrade github.com/caddyserver/caddy/v2 (Go) to 2.11.4 or later.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
caddy
before 2.11.4
2.11.4
CVE record
github.com/caddyserver/caddy/v2 (Go)
before 2.11.4
2.11.4
GitHub advisory
github.com/caddyserver/caddy (Go)
1.0.5 and earlier
Not confirmed
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 8 Jun 2026
    CVE ID reserved by GitHub_M.
  2. 23 Jun 2026
    Published in the CVE List.
  3. 15 Jul 2026
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Proof of concept (CISA assessment). CISA assessment (SSVC): exploitation poc.

Metasploit module
None known
Nuclei scan template
None known
Exploit-DB
None known
GitHub proof of concepts
None known

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Other caddy vulnerabilities

Same weakness: Improper authentication

All CWE-287 vulnerabilities

References
Cite this page

Patchminder. CVE-2026-52845: Authentication bypass in caddyserver caddy. https://patchminder.com/cve/cve-2026-52845/ (accessed 5 December 2026).