CVE-2026-52845
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.
Description as published by the source, in English.
Key facts
- Published
- 2026-06-23
- Last modified
- 2026-10-25
- Assigned by
- security-advisories@github.com
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N- Scored by
- security-advisories@github.com
- Probability of exploitation
-
0.3 %
higher than 22 %
of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15 - Fix available
- Not registered in the sources
Affected products
| Vendor | Product | Versions | Status |
|---|---|---|---|
| Caddyserver | Caddy | < 2.11.4 | Affected |
Weakness type
-
CWE-287: Improper Authentication
When an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct.
-
CWE-290: Authentication Bypass by Spoofing
This attack-focused weakness is caused by incorrectly implemented authentication schemes that are subject to spoofing attacks.
-
CWE-444: Inconsistent Interpretation of HTTP Requests
The product acts as an intermediary HTTP agent (such as a proxy or firewall) in the data flow between two entities such as a client and server, but it does not interpret malformed HTTP requests or responses in ways that…
Attack techniques
Derived through the weakness type: CVE to CWE to CAPEC to ATT&CK. This shows which techniques the weakness class is historically used for. It does not assert that this vulnerability has been exploited that way.
- T1036.001: Invalid Code Signature
- T1040: Network Sniffing
- T1134: Access Token Manipulation
- T1134.001: Token Impersonation/Theft
- T1185: Browser Session Hijacking
- T1505.003: Web Shell
- T1528: Steal Application Access Token
- T1539: Steal Web Session Cookie
- T1548: Abuse Elevation Control Mechanism
- T1550.001: Application Access Token
- T1550.004: Web Session Cookie
- T1553.002: Code Signing
- T1557: Adversary-in-the-Middle
- T1563: Remote Service Session Hijacking
References
- https://github.com/caddyserver/caddy/security/advisories/GHSA-f59h-q822-g45g
- https://github.com/caddyserver/caddy/security/advisories/GHSA-f59h-q822-g45g
- https://access.redhat.com/security/cve/CVE-2026-52845
- https://bugzilla.redhat.com/show_bug.cgi?id=2491907
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-52845.json
Does this affect you?
A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.