All vulnerabilities

Go · Servers and applications

CVE-2026-45135

Caddy: Unsafe Unicode Handling in FastCGI splitPos Allows Execution of Non-PHP Files in github.com/caddyserver/caddy

Severity
High 8.1
Published
13 May 2026
Last changed
25 Oct 2026
Added to UpHeron
22 Oct 2026
Fixed in
2.11.3
Exploit chance
0.7% in the next 30 daysHigher than 53% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Improper input validation (CWE-20)CWE-176Case-sensitivity mistakes (CWE-178)
Attack
Over the network · Only under certain conditions · No login needed · No user action needed
Attacker can
Read data · Change data · Take it down
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Also known as
GHSA-m675-2p33-xv9g, GO-2026-5492
Sources
NVD, OSV.dev and GitHub, Project advisories (GitHub)

Description

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.

From caddyserver/caddy's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
CaddyServers and applications · cpe:a:caddyserver:caddy
  • From 2.7.0 before 2.11.3
CaddyServers and applications · github:caddyserver/caddy
  • From 2.7.0 before 2.11.3
CaddyGo · osv:Go:github.com/caddyserver/caddy/v2
  • From 2.7.0 before 2.11.3

About Caddy

open source web server

From Wikidata, CC0 1.0.
Share of websites with a known web server
1.3%W3Techs, Nov 2026
Docker Hub pulls
770,668,265Docker Hub, 15 Nov 2026
GitHub stars
79,049GitHub, 15 Nov 2026
Forks
5,264GitHub, 15 Nov 2026
Latest release
v2.11.9GitHub, 15 Nov 2026
Released
5 Nov 2026GitHub
License
Apache Software License 2.0Wikidata
Written in
GoWikidata
First published on GitHub
13 Jan 2015GitHub

Release lines

ReleaseLatestSecurity fixes
22.11.9Yes
11.0.5Ended 1 Jul 2020

From endoflife.date.

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2026-45135
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-45135
  • GitHub Advisory Database https://github.com/advisories/GHSA-m675-2p33-xv9g
  • OSV.dev https://osv.dev/vulnerability/GO-2026-5492
  • github.com https://github.com/caddyserver/caddy/security/advisories/GHSA-m675-2p33-xv9g