CVE-2026-27590 Caddy: Unicode case-folding length expansion causes incorrect split_path index (SCRIPT_NAME/PATH_INFO confusion) in FastCGI transport
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: total
- Technology
- PHPUbuntuDebian
Description
Caddy is an extensible server platform that uses TLS by default. Prior to version 2.11.1, Caddy's FastCGI path splitting logic computes the split index on a lowercased copy of the request path and then uses that byte index to slice the original path. This is unsafe for Unicode because strings.ToLower() can change UTF-8 byte length for some characters. As a result, Caddy can derive an incorrect SCRIPT_NAME/SCRIPT_FILENAME and PATH_INFO, potentially causing a request that contains .php to execute a different on-disk file than intended (path confusion). In setups where an attacker can control file contents (e.g., upload features), this can lead to unintended PHP execution of non-.php files (potential RCE depending on deployment). Version 2.11.1 fixes the issue.
Upgrade path
10 packages: 7 fixed, 3 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| 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.11.2-r0 | 2.11.2-r0 | Fixed |
| alpine/caddy(Alpine v3.24) | < 2.11.1-r0 | 2.11.1-r0 | Fixed |
| caddyserver github.com/caddyserver/caddy | < 2.11.1; = < 2.11.1 | 2.11.1 | Fixed |
| caddyserver github.com/caddyserver/caddy(Go) | < 2.11.1 | 2.11.1 | Fixed |
| debian/caddy(Debian 12) | < 2.6.2-5+deb12u1; = 2.6.2-5 | 2.6.2-5+deb12u1 | Fixed |
| debian/caddy(Debian 13) | < 2.6.2-12+deb13u1; = 2.6.2-12 | 2.6.2-12+deb13u1 | Fixed |
| debian/caddy(Debian 14) | < 2.11.2-1; = 2.6.2-12; = 2.6.2-13; = 2.6.2-14 +1 more | 2.11.2-1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| caddyserver github.com/caddyserver/caddy(Go) | < 2.11.1 | 2.11.1 |
| caddyserver github.com/caddyserver/caddy | = < 2.11.1 | No fix listed |
| debian/caddy(Debian:12) | < 2.6.2-5+deb12u1 | 2.6.2-5+deb12u1 |
| debian/caddy(Debian:12) | = 2.6.2-5 | No fix listed |
| debian/caddy(Debian:13) | < 2.6.2-12+deb13u1 | 2.6.2-12+deb13u1 |
| debian/caddy(Debian:13) | = 2.6.2-12 | No fix listed |
| debian/caddy(Debian:14) | < 2.11.2-1 | 2.11.2-1 |
| 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.11.2-r0 | 2.11.2-r0 |
| alpine/caddy(Alpine:v3.24) | < 2.11.1-r0 | 2.11.1-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.11.1 | 2.11.1 |
References
- https://github.com/caddyserver/caddy/security/advisories/GHSA-5r3v-vc8m-m96g exploit vendor-advisory
- https://github.com/php/frankenphp/security/advisories/GHSA-g966-83w7-6w38 third-party-advisory vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com product
- https://github.com/caddyserver/caddy/releases/tag/v2.11.1 release-notes
- pkg.go.dev
- github.com
- Debian Security Tracker CVE-2026-27590 vendor-advisory
- security.alpinelinux.org vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- bugs.debian.org issue-tracking