Skip to content

CVE-2026-45135 Caddy: Unsafe Unicode Handling in FastCGI splitPos Allows Execution of Non-PHP Files

HighCVSS 8.1 EPSS 0.68%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: total
Technology
PHPUbuntuDebianRed Hat

Description

Caddy is an extensible server platform that uses TLS by default. From 2.7.0 until 2.11.3, the FastCGI transport's splitPos() in modules/caddyhttp/reverseproxy/fastcgi/fastcgi.go misuses golang.org/x/text/search with search.IgnoreCase when the request path contains a non-ASCII byte. Two distinct flaws in that fallback let an attacker mislead Caddy's FastCGI splitting into treating a non-.php (or other configured split_path extension) file as a script. In any deployment where the attacker can place content into a file served via FastCGI (uploads, file storage, etc.), this can be escalated to remote code execution by crafting a URL whose path triggers either flaw. This vulnerability is fixed in 2.11.3.

Upgrade path

8 packages: 5 fixed, 3 with no fix yet.

PackageAffectedFixed inStatus
ubuntu/caddy(Ubuntu 24.04) All versions No fix listed No fix yet
ubuntu/caddy(Ubuntu 26.04) All versions No fix listed No fix yet
ubuntu/caddy(Ubuntu 26.10) All versions No fix listed No fix yet
alpine/caddy(Alpine v3.23) >= 2.7.0, < 2.11.4-r0 2.11.4-r0 Fixed
alpine/caddy(Alpine v3.24) >= 2.7.0, < 2.11.4-r0 2.11.4-r0 Fixed
caddyserver github.com/caddyserver/caddy = >= 2.7.0, < 2.11.3; >= 2.7.0, < 2.11.3 2.11.3 Fixed
caddyserver github.com/caddyserver/caddy(Go) >= 2.7.0, < 2.11.3; >= 2.7.0, <= 2.10.2 2.11.3 Fixed
debian/caddy(Debian 14) < 2.11.4-1; = 2.6.2-12; = 2.6.2-13; = 2.6.2-14 +2 more 2.11.4-1 Fixed

Affected products

ProductAffected versionsFixed in
caddyserver github.com/caddyserver/caddy = >= 2.7.0, < 2.11.3 No fix listed
caddyserver github.com/caddyserver/caddy(Go) >= 2.7.0, < 2.11.3 2.11.3
caddyserver github.com/caddyserver/caddy(Go) >= 2.7.0, <= 2.10.2 No fix listed
debian/caddy(Debian:14) < 2.11.4-1 2.11.4-1
debian/caddy(Debian:14) = 2.11.2-1 No fix listed
debian/caddy(Debian:14) = 2.11.2-1~bpo13+1 No fix listed
debian/caddy(Debian:14) = 2.6.2-12 No fix listed
debian/caddy(Debian:14) = 2.6.2-13 No fix listed
debian/caddy(Debian:14) = 2.6.2-14 No fix listed
alpine/caddy(Alpine:v3.23) >= 2.7.0, < 2.11.4-r0 2.11.4-r0
alpine/caddy(Alpine:v3.24) >= 2.7.0, < 2.11.4-r0 2.11.4-r0
ubuntu/caddy(Ubuntu:24.04) All versions No fix listed
ubuntu/caddy(Ubuntu:26.04) All versions No fix listed
ubuntu/caddy(Ubuntu:26.10) All versions No fix listed
caddyserver github.com/caddyserver/caddy >= 2.7.0, < 2.11.3 2.11.3

References