Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/dunglas/frankenphp
  4. ›
  5. CVE-2026-45062

CVE-2026-45062: FrankenPHP: Unsafe Unicode Handling in CGI Path Splitting Allows Execution of Non-PHP Files

May 15, 2026 (updated June 10, 2026)

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 advisory consolidates two independent reports against the same function (the duplicate, GHSA-v4h7-cj44-8fc8, has been closed). Both were reported by @KC1zs4.

References

  • github.com/advisories/GHSA-3g8v-8r37-cgjm
  • github.com/php/frankenphp/commit/2d0f480329a02571d6f635dad9fdb066e1a11e81
  • github.com/php/frankenphp/releases/tag/v1.12.3
  • github.com/php/frankenphp/security/advisories/GHSA-3g8v-8r37-cgjm
  • nvd.nist.gov/vuln/detail/CVE-2026-45062

Code Behaviors & Features

Detect and mitigate CVE-2026-45062 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 1.11.2 before 1.12.3

Fixed versions

  • 1.12.3

Solution

Upgrade to version 1.12.3 or above.

Impact 8.1 HIGH

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-176: Improper Handling of Unicode Encoding
  • CWE-178: Improper Handling of Case Sensitivity
  • CWE-20: Improper Input Validation

Source file

go/github.com/dunglas/frankenphp/CVE-2026-45062.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:26 +0000.