CVE-2026-27590
Caddy is an extensible server platform that uses TLS by default. Prior ...
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by GHSA (high).
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.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| alpine 3.23 | caddy | 2.11.2-r0 |
| alpine 3.24 | caddy | 2.11.1-r0 |
| alpine edge | caddy | 2.11.1-r0 |
| debian 12 | caddy | 2.6.2-5+deb12u1 |
| debian 13 | caddy | 2.6.2-12+deb13u1 |
| debian 14 | caddy | 2.11.2-1 |
| echo | caddy | 2.6.2-5+deb12u1 |
| go::GitHub Security Advisory Go | github.com/caddyserver/caddy/v2 | 2.11.1 |
| minimos | caddy | 2.11.1-r0 |
| rapidfort alpine 3.20 | caddy | 2.11.1-r0 |
| rapidfort alpine 3.21 | caddy | 2.11.1-r0 |
| rapidfort alpine 3.22 | caddy | 2.11.1-r0 |
Show all 20 entries from 20 sources
| Source | Package | Fixed in |
|---|---|---|
| alpine 3.23 | caddy | 2.11.2-r0 |
| alpine 3.24 | caddy | 2.11.1-r0 |
| alpine edge | caddy | 2.11.1-r0 |
| debian 12 | caddy | 2.6.2-5+deb12u1 |
| debian 13 | caddy | 2.6.2-12+deb13u1 |
| debian 14 | caddy | 2.11.2-1 |
| echo | caddy | 2.6.2-5+deb12u1 |
| go::GitHub Security Advisory Go | github.com/caddyserver/caddy/v2 | 2.11.1 |
| minimos | caddy | 2.11.1-r0 |
| rapidfort alpine 3.20 | caddy | 2.11.1-r0 |
| rapidfort alpine 3.21 | caddy | 2.11.1-r0 |
| rapidfort alpine 3.22 | caddy | 2.11.1-r0 |
| rapidfort alpine 3.23 | caddy | 2.11.1-r0 |
| rapidfort debian 12 | caddy | 0:2.11.2-1, 0:2.6.2-12+deb13u1, 0:2.6.2-5+deb12u1 |
| rapidfort debian 13 | caddy | 0:2.11.2-1, 0:2.6.2-12+deb13u1, 0:2.6.2-5+deb12u1 |
| rapidfort fedora 43 | caddy | 2.10.2-9.fc43 |
| rapidfort Oracle Linux 10 | caddy | 2.10.2-9.el10_3 |
| rapidfort ubuntu 20.04 | caddy | 0:2.11.2-1 |
| rapidfort ubuntu 22.04 | caddy | 0:2.11.2-1 |
| rapidfort ubuntu 24.04 | caddy | 0:2.11.2-1 |
References
- https://github.com/caddyserver/caddy
- https://github.com/caddyserver/caddy/releases/tag/v2.11.1
- https://github.com/caddyserver/caddy/security/advisories/GHSA-5r3v-vc8m-m96g
- https://github.com/php/frankenphp/security/advisories/GHSA-g966-83w7-6w38
- https://nvd.nist.gov/vuln/detail/CVE-2026-27590
- https://pkg.go.dev/vuln/GO-2026-4536