Skip to content
OpenAdvisories
High · 8.1 CVE-2026-45135 EUVD-2026-38560GHSA-m675-2p33-xv9gGO-2026-5492

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

Published Jun 23, 2026 · Updated Jun 23, 2026 · Assigned by GitHub_M

Description

Caddy is an extensible server platform that uses TLS by default. From 2.7.0 until 2.11.3, 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 vulnerability is fixed in 2.11.3.

Affected products

VendorProductAffectedFixed
caddyserver caddy >= 2.7.0, < 2.11.3 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 caddy 2.11.4-1 —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 caddy No fix yet —
Ubuntu 25.10 caddy No fix yet —
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 26.04 LTS caddy No fix yet —
Ubuntu Pro 24.04 LTS caddy No fix yet —
ReleasePackageFixed inAdvisory
SLES for SAP 16.0 govulncheck-vulndb 0.0.20260727T201416-160000.1.1 SUSE-SU-2026:23227-1, SUSE-SU-2026:23216-1
SLES 16.0 govulncheck-vulndb 0.0.20260727T201416-160000.1.1 SUSE-SU-2026:23227-1, SUSE-SU-2026:23216-1
ReleasePackageFixed inAdvisory
openSUSE Leap 16.0 govulncheck-vulndb 0.0.20260727T201416-160000.1.1 openSUSE-SU-2026:21551-1
ReleasePackageFixed inAdvisory
Alpine v3.24 caddy 2.11.4-r0 —
Alpine v3.23 caddy 2.11.4-r0 —

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/caddyserver/caddy/v2 >= 2.7.0, < 2.11.3 2.11.3 GHSA-m675-2p33-xv9g

Advisories 3

References