CVE-2026-27590
published high CVSS 4.0 · 8.9Caddy: Unicode case-folding length expansion causes incorrect split_path index (SCRIPT_NAME/PATH_INFO confusion) in FastCGI transport
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| caddyserver | — | caddy< 2.11.1 | Affected | Not stated | GitHub_M |
| Alpine Linux | edge | caddy | Fixed | 2.11.1-r0 | Package fix record |
| Debian | bookworm | caddy | Advisory build | 2.6.2-5+deb12u1 | DLA-4857-1 |
| Ubuntu | noble | caddy | Advisory build | 2.6.2-6ubuntu0.24.04.3+esm3 | USN-9260-1 |
| Alpine Linux | v3.23 | caddy | Fixed | 2.11.2-r0 | Package fix record |
| Alpine Linux | v3.24 | caddy | Fixed | 2.11.1-r0 | Package fix record |
| Debian | trixie | caddy | Advisory build | 2.6.2-12+deb13u1 | DSA-6429-1 |
| Ubuntu | resolute | caddy | Advisory build | 2.6.2-14ubuntu0.26.04.1~esm2 | USN-9260-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.9 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| caddyserver | caddy | < 2.11.1 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-20 CWE-20: Improper Input Validation
- CWE-180 CWE-180: Incorrect Behavior Order: Validate Before Canonicalize
References
3Provider assertions
2GitHub_M · cna
Caddy: Unicode case-folding length expansion causes incorrect split_path index (SCRIPT_NAME/PATH_INFO confusion) in FastCGI transport
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- e4f924e8edfcda4f13e6f4fa746e426bc9379204e446bc947b0e1472ae3b2bbd
- Ingested
- 23 Sep 2026, 09:07:41 UTC
- Source record
- Official CVE record