CVE-2026-24895 FrankenPHP affected by Path Confusion via Unicode casing in CGI path splitting allows execution of arbitrary files
Attackers can execute arbitrary files by exploiting Unicode casing flaws in CGI path splitting, allowing unauthorized code execution on the server.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-24895?
CVE-2026-24895 is a high-severity path traversal vulnerability in frankenphp, published on 12 Feb 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
FrankenPHP is a modern application server for PHP. Prior to 1.11.2, FrankenPHP’s CGI path splitting logic improperly handles Unicode characters during case conversion. The logic computes the split index (for finding .php) on a lowercased copy of the request path but applies that byte index to the original path. Because strings.ToLower() in Go can increase the byte length of certain UTF-8 characters (e.g., Ⱥ expands when lowercased), the computed index may not align with the correct position in the original string. This results in an incorrect SCRIPT_NAME and SCRIPT_FILENAME, potentially causing FrankenPHP to execute a file other than the one intended by the URI. This vulnerability is fixed in 1.11.2.
Weakness: CWE-180
Which versions are affected by CVE-2026-24895?
3 open source packages ship an affected version, including github.com/dunglas/frankenphp. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
github.com/dunglas/frankenphp Go | All versions | 1.11.2 |
github.com/dunglas/frankenphp Go | All versions | 1.11.2 |
github.com/dunglas/frankenphp Go | All versions | 1.11.2 |
Products include Php Frankenphp.
How do I fix CVE-2026-24895?
Upgrade github.com/dunglas/frankenphp to 1.11.2 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2026-24895 being exploited?
There is no known exploitation of CVE-2026-24895 in the wild and no public exploit code.
Other vulnerabilities in frankenphp
Sources
Also known as GHSA-g966-83w7-6w38, GO-2026-4486.