Caddy
cpe:2.3:a:caddy_project:caddy:*:*:*:*:typo3:*:*
- < 2.11.0
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.
Exploitation of this vulnerability can cause Caddy to execute the wrong file in a PHP environment, particularly if the misrouted file contains PHP code. This could lead to remote code execution, depending on the specific server setup.
The vulnerability can be reproduced by sending a request to a Caddy server with a path that includes a Unicode character that expands when lowercased, such as `Ⱥ`. The FastCGI transport will incorrectly calculate the split point for `.php` files, leading to the execution of a different file than intended.
Users can upgrade to Caddy version 2.11.1, where this vulnerability has been fixed.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.