Unsafe Unicode handling in CGI path splitting allows non-PHP file execution in FrankenPHP

Note: This data is for reference and cybersecurity research purposes only.CyStack advises users not to use this information for unlawful purposes.

What is CVE-2026-45062?

CVE-2026-45062 is a vulnerability classified as Improper Input Validation, Improper Handling of Unicode Encoding, and Improper Handling of Case Sensitivity, affecting frankenphp (affected versions: >= 1.11.2, < 1.12.3). This vulnerability is rated High, with a CVSS score of 8.1. Public exploit code or evidence is available for this vulnerability, but that does not confirm exploitation in the wild.

Overview

Original source data

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.

Affected products and scope

  • php/frankenphp is affected from version 1.11.2 to before version 1.12.3.
  • The vendor advisory describes the affected releases as v1.11.2 through v1.12.2.
  • The patched version is v1.12.3.
  • The status of parallel branches or releases outside these boundaries is not established by this record and should be checked separately.

Technical details

FrankenPHP uses splitPos() in cgi.go to locate the PHP split in a CGI request path. When the path contains a non-ASCII byte, a fallback invokes golang.org/x/text/search with search.IgnoreCase, even though the split entries are validated as ASCII and lower-case. The first flaw can leave the match state true after a failed fallback search, causing a non-PHP filename to be treated as though .php had matched. The second flaw allows Unicode-equivalent or lookalike characters to match the ASCII string .php. If an attacker can place content in a file served by FrankenPHP, a crafted URL can cause PHP to load and execute that file; the availability of this condition depends on the deployment. The advisory states that the fix removes the fallback and treats any byte >= utf8.RuneSelf in the path as a non-match.

Exploitability

The vulnerability is reachable through a network request to FrankenPHP. The record indicates that authentication and user interaction are not required, but exploitation still depends on a deployment-specific precondition: the attacker must be able to place content in a file on the filesystem served by FrankenPHP, and the filename must match a bypass pattern. The attack complexity is high because the attacker must control or influence the file and construct a matching path. The vendor advisory includes a public proof of concept and reproducer, demonstrating that the exploit path is feasible in a suitable environment. The record does not establish whether the vulnerability has been exploited in the wild.

Technical impact

When exploited in a deployment meeting the documented precondition, the flaw causes FrankenPHP to select a file without a valid PHP extension as the script path and lets PHP load that file. This can result in remote code execution within the FrankenPHP process, potentially affecting the confidentiality, integrity and availability of resources accessible to that process. The impact may be constrained by the process's OS permissions, container, sandbox and filesystem access. If the attacker cannot place content in a served file, the RCE chain described by the advisory is not established. The record provides no evidence that the impact extends beyond the privileges of the affected process.

Business impact

When the file-placement precondition is present, a remote attacker may cause FrankenPHP to execute code with the privileges of the FrankenPHP process. Possible consequences include access to or modification of data available to that process, application behavior changes, exposure of runtime secrets and service disruption. The practical impact depends on process privileges, mounted filesystems and container or host boundaries. Public-facing services that let users upload or create files in a served location require particular attention. The record names no specific organization, victim or campaign.

Remediation

  1. Upgrade FrankenPHP to the confirmed fixed version 1.12.3.
  2. Verify after upgrading that the binary, container or image actually serving requests runs the fixed release, rather than relying only on updated manifests or dependency metadata.
  3. Until the upgrade is complete, review and restrict placement of untrusted files in filesystems served by FrankenPHP. This reduces the documented exploitation precondition but does not replace the upgrade.
  4. If maintaining a fork, apply the vendor-described fix: remove the golang.org/x/text/search fallback entirely and treat any byte >= utf8.RuneSelf in the path as a non-match. Validate the change with regression tests in an isolated environment before deployment.

Detection

  1. Inventory all FrankenPHP binaries, containers and images in service, then compare the running version with the affected range in affected_summary.
  2. Identify deployments with upload endpoints, file storage, user-content stores or package mirrors that place files in a filesystem served by FrankenPHP.
  3. Review access and PHP execution logs for requests containing non-ASCII bytes or characters in the path, especially requests that map to files whose names do not end in ASCII .php but are nevertheless passed to PHP.
  4. Compare files executed by PHP with filesystem inventory to identify non-PHP files being processed as scripts. This is a behavioral detection check, not a vendor-confirmed IOC.
  5. If behavioral validation is required, use the vendor's reproducer in an isolated test environment rather than production. Absence of suspicious log entries does not prove that a system is safe.
Sources (13)
Learn more

Run an in-depth assessment with complete web risk management

CyStack VulnScan continuously discovers assets, validates vulnerabilities, and helps security teams prioritize remediation across the organization.