Input validation error in Caddy - CVE-2026-27590
Published: April 27, 2026
Caddy
Detailed vulnerability description
The vulnerability allows a remote attacker to execute unintended PHP code.
The vulnerability exists due to incorrect calculation of a path split index in fastcgi.Transport.splitPos() and buildEnv() in the FastCGI transport when processing crafted request paths containing Unicode characters whose lowercase form changes UTF-8 byte length. A remote attacker can send a specially crafted request path to execute unintended PHP code.
Exploitation depends on deployment conditions that allow attacker-controlled file contents to be resolved as SCRIPT_FILENAME, such as upload features or writable directories.