Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/caddyserver/caddy/v2
  4. ›
  5. CVE-2026-45135

CVE-2026-45135: Caddy: Unsafe Unicode Handling in FastCGI splitPos Allows Execution of Non-PHP Files

May 18, 2026 (updated July 20, 2026)

The FastCGI transport’s splitPos() in modules/caddyhttp/reverseproxy/fastcgi/fastcgi.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 Caddy’s FastCGI splitting into treating a non-.php (or other configured split_path extension) file as a script. In any deployment where the attacker can place content into a file served via FastCGI (uploads, file storage, etc.), this can be escalated to remote code execution by crafting a URL whose path triggers either flaw.

This function was adapted from FrankenPHP’s code (see the source comment) and inherits the same bugs. Both were originally reported against FrankenPHP by @KC1zs4 as GHSA-3g8v-8r37-cgjm (which absorbed the duplicate GHSA-v4h7-cj44-8fc8). Credit for finding the underlying flaws belongs to @KC1zs4.

References

  • github.com/advisories/GHSA-m675-2p33-xv9g
  • github.com/caddyserver/caddy/security/advisories/GHSA-m675-2p33-xv9g
  • github.com/php/frankenphp/security/advisories/GHSA-3g8v-8r37-cgjm
  • github.com/php/frankenphp/security/advisories/GHSA-g966-83w7-6w38
  • nvd.nist.gov/vuln/detail/CVE-2026-45135

Code Behaviors & Features

Detect and mitigate CVE-2026-45135 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 2.7.0 before 2.11.3

Fixed versions

  • 2.11.3

Solution

Upgrade to version 2.11.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/caddyserver/caddy/v2/CVE-2026-45135.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 08 Nov 2026 00:16:32 +0000.