FrankenPHP affected by Path Confusion via Unicode casing in CGI path splitting allows execution of arbitrary files
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
github.com/dunglas/frankenphpGo | < 1.11.2 | 1.11.2 |
Affected products
3- ghsa-coords2 versionspkg:golang/github.com/dunglas/frankenphppkg:rpm/opensuse/govulncheck-vulndb&distro=openSUSE%20Leap%2015.6
< 1.11.2+ 1 more
- (no CPE)range: < 1.11.2
- (no CPE)range: < 0.0.20260226T182644-150000.1.149.1
- Range: < 1.11.2
Patches
Vulnerability mechanics
References
5- github.com/advisories/GHSA-g966-83w7-6w38ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-24895ghsaADVISORY
- github.com/php/frankenphp/commit/04fdc0c1e8fde94e2c1ad86217e962c88d27c53eghsax_refsource_MISCWEB
- github.com/php/frankenphp/releases/tag/v1.11.2ghsax_refsource_MISCWEB
- github.com/php/frankenphp/security/advisories/GHSA-g966-83w7-6w38ghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.