Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2026-52845— Caddy: FastCGI header normalization bypass in `forward_auth copy_headers`

Quick assessment

Affected
caddyserver caddy
Exploitation
Public or AI PoC available; prioritize validation
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

caddyserver caddy是caddyserver团队开源的一款Web服务器软件。 caddyserver caddy 2.11.4之前版本存在安全漏洞,该漏洞源于forward_auth copy_headers在复制认证网关的可信值前删除客户端提供的身份标头,但请求经过php_fastcgi时Caddy会将HTTP标头转换为CGI变量,把-替换为_,从而允许客户端发送下划线别名绕过删除步骤,使得远程客户端能注入或覆盖PHP/FastCGI应用程序信任的身份或组标头。

CVSS 8.1 · High EPSS 0.29% · P22

Affected Version Matrix 1

VendorProduct Version RangeStatus
caddyserver caddy < 2.11.4 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-52845

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Caddy: FastCGI header normalization bypass in `forward_auth copy_headers`
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
认证机制不恰当
Source: CVE Program / CVE List V5
Vulnerability Title
caddyserver caddy 授权问题漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
caddyserver caddy是caddyserver团队开源的一款Web服务器软件。 caddyserver caddy 2.11.4之前版本存在安全漏洞,该漏洞源于forward_auth copy_headers在复制认证网关的可信值前删除客户端提供的身份标头,但请求经过php_fastcgi时Caddy会将HTTP标头转换为CGI变量,把-替换为_,从而允许客户端发送下划线别名绕过删除步骤,使得远程客户端能注入或覆盖PHP/FastCGI应用程序信任的身份或组标头。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
caddyserver caddy < 2.11.4 -

II. Public POCs for CVE-2026-52845

# POC Description Source Link Shenlong Link
AI-Generated POC Premium
Qwen3.6-35B-A3B · 11314 chars
Pro+ exclusive includes:
Vulnerability reproduction recording (real sandbox build + trigger, exclusive)
In-depth vulnerability mechanism
Trigger conditions & impact
Full executable POC code
Exploit chain & mitigation
POC zip download
100+ AI POC generations per month

III. Intelligence Information for CVE-2026-52845

登录查看更多情报信息。

Vendor Advisories for CVE-2026-52845 (1)

Same Patch Batch · caddyserver · 2026-06-23 · 5 CVEs total

CVE-2026-45135 8.1 HIGH Caddy: Unsafe Unicode Handling in FastCGI splitPos Allows Execution of Non-PHP Files
CVE-2026-52844 7.5 HIGH Caddy: Windows `file_server` path authorization bypass via encoded backslash
CVE-2026-45692 5.4 MEDIUM Caddy: Remote Admin Authorization Bypass in `/config` API via Array Index Normalization
CVE-2026-52846 4.2 MEDIUM Caddy: stripHTML template function bypass

IV. Related Vulnerabilities

V. Comments for CVE-2026-52845

No comments yet


Leave a comment