Live threats

All CVEs / Caddyserver

CVE-2026-27590Caddyserver Caddy

High 8.9 No auth needed

Priority
68
CVSS 4.0
8.9
EPSS
—
Auth required
No
Published
Feb 24, 2026
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-20, CWE-180
SSVC (CISA)
Exploitation: proof of concept · Automatable: yes · Technical impact: total
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

What happens

Caddy is an extensible server platform that uses TLS by default. Prior to version 2.11.1, Caddy's FastCGI path splitting logic computes the split index on a lowercased copy of the request path and then uses that byte index to slice the original path. This is unsafe for Unicode because `strings.ToLower()` can change UTF-8 byte length for some characters. As a result, Caddy can derive an incorrect `SCRIPT_NAME`/`SCRIPT_FILENAME` and `PATH_INFO`, potentially causing a request that contains `.php` to execute a different on-disk file than intended (path confusion). In setups where an attacker can control file contents (e.g., upload features), this can lead to unintended PHP execution of non-.php files (potential RCE depending on deployment). Version 2.11.1 fixes the issue.

Original NVD text.

What to do

  1. Apply the vendor's security update for Caddy.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go github.com/caddyserver/caddy/v2 < 2.11.1 2.11.1 go get github.com/caddyserver/caddy/v2@v2.11.1
Go github.com/caddyserver/caddy/v2 < 2.11.1 2.11.1 go get github.com/caddyserver/caddy/v2@v2.11.1

Per OSV / GitHub Advisories (GHSA-5r3v-vc8m-m96g, GO-2026-4536). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
caddyservercaddy< 2.11.1

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.