CVE-2026-27590 Details
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.
A vulnerability in Caddy's FastCGI path handling prior to version 2.11.1 allows for path confusion, where a request intended for a `.php` file could be misrouted to a different file. This issue arises because the path splitting logic incorrectly processes Unicode characters, leading to an erroneous `SCRIPT_NAME`, `SCRIPT_FILENAME`, and `PATH_INFO`. In environments where file contents can be controlled, such as through uploads, this could result in unintended execution of PHP code, potentially allowing for remote code execution.
Users can upgrade to Caddy version 2.11.1, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Feb 27, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/caddyserver/caddy/releases/tag/v2.11.1 | [email protected] | Release Notes |
| https://github.com/caddyserver/caddy/security/advisories/GHSA-5r3v-vc8m-m96g | [email protected] | ExploitVendor Advisory |
| https://github.com/php/frankenphp/security/advisories/GHSA-g966-83w7-6w38 | [email protected] | Third Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-180 | Incorrect Behavior Order: Validate Before Canonicalize | [email protected] |
| CWE-20 | Improper Input Validation | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| caddyserver caddy | < 2.11.1 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Feb 25, 2026 | Initial Analysis | [email protected] |
| Feb 24, 2026 | New CVE Received | [email protected] |