CVE-2026-45062 FrankenPHP: Unsafe Unicode Handling in CGI Path Splitting Allows Execution of Non-PHP Files
An attacker can execute arbitrary code by crafting URLs that exploit unsafe Unicode handling in path splitting, allowing non-PHP files to be executed as scripts.
- 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-45062?
CVE-2026-45062 is a high-severity code injection vulnerability in frankenphp, published on 10 Jun 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. From version 1.11.2 to before version 1.12.3, the splitPos() function in cgi.go misuses golang.org/x/text/search with search.IgnoreCase when the request path contains a non-ASCII byte. Two distinct flaws in that fallback let an attacker mislead FrankenPHP into treating a non-.php file as a .php script. In any deployment where the attacker can place content into a file served by FrankenPHP (uploads, file storage, etc.), this can be escalated to remote code execution by crafting a URL whose path triggers either flaw. This issue has been patched in version 1.12.3.
Which versions are affected by CVE-2026-45062?
3 open source packages ship an affected version, including github.com/dunglas/frankenphp.
| Package | Affected | Fixed in |
|---|---|---|
github.com/dunglas/frankenphp Go | From 1.11.2 | 1.12.3 |
github.com/dunglas/frankenphp Go | From 1.11.2 | 1.12.3 |
github.com/dunglas/frankenphp Go | From 1.11.2 | 1.12.3 |
How do I fix CVE-2026-45062?
Upgrade github.com/dunglas/frankenphp to 1.12.3 or later.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2026-45062 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-45062 exists.
Sources
Also known as GHSA-3g8v-8r37-cgjm, GO-2026-5084.