CVE-2026-27590: Caddy: Unicode case-folding length expansion causes incorrect split_path index (SCRIPT_NAME/PATH_INFO confusion) in FastCGI transport

CVE-2026-27590 affects 49 listed versions of Caddy in the Dawnsentry catalogue.

9.8CVSS critical
Proof of concept publicexploitation
under 1%EPSS (next 30 days)
24 February 2026published

Affected products and versions

The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.

Caddy

49 of 58 listed versions are affected. Fixed in 2.11.1. The newest release, 2.11.9, is not affected.

2.11.0 2.10.2 2.10.1 2.10.0 2.9.1 2.9.0 2.8.4 2.8.3 2.8.2 2.8.1 2.8.0 2.7.6 2.7.5 2.7.4 2.7.3 2.7.2 2.7.1 2.7.0 2.6.4 2.6.3 2.6.2 2.6.1 2.6.0 2.5.2 2.5.1 2.5.0 2.4.6 2.4.5 2.4.4 2.4.3 2.4.2 2.4.1 2.4.0 2.3.0 2.2.3 2.2.1 2.2.0 2.1.1 2.1.0 2.0.0 1.0.5 1.0.4 1.0.3 1.0.2 1.0.1 1.0.0 0.11.0 0.10.3 0.6.0

What it is

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.

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (NVD)

Published by GitHub on 24 February 2026. Last changed 17 June 2026.

Sources

Check one version you run: look CVE-2026-27590 up, or pick a product and version in the quick lookup.

Updated 2 December 2026.