p PatchFirst

CVE-2026-27590

CVE-2026-27590 · Caddy: Unicode case-folding length expansion causes incorrect split_path index (SCRIPT_NAME/PATH_INFO confusion) in FastCGI transport

CVSS 8.9 · High · EPSS 0.6% · Fix available

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

  • caddyNo fix published
  • caddy Alpine 3.23Update to 2.11.2-r0
  • caddy Alpine 3.24Update to 2.11.1-r0
  • caddy Debian 12Update to 2.6.2-5+deb12u1
  • and 6 more

Check the installed version:

apk list -I -o caddy
dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="caddy"'

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

Published
Updated

Fixes in distributions

Stack: system

Affected products and versions

  • caddy

    Versions
    • < 2.11.1: Affected

    No fix published

  • caddy Alpine 3.23

    Affected ranges
    • ECOSYSTEM: < 2.11.2-r0

    Update to 2.11.2-r0

  • caddy Alpine 3.24

    Affected ranges
    • ECOSYSTEM: < 2.11.1-r0

    Update to 2.11.1-r0

  • caddy Debian 12

    Versions
    • 2.6.2-5
    Affected ranges
    • ECOSYSTEM: < 2.6.2-5+deb12u1

    Update to 2.6.2-5+deb12u1

  • caddy Debian 13

    Versions
    • 2.6.2-12
    Affected ranges
    • ECOSYSTEM: < 2.6.2-12+deb13u1

    Update to 2.6.2-12+deb13u1

  • caddy Debian 14

    Versions
    • 2.11.2-1~bpo13+1
    • 2.6.2-12
    • 2.6.2-13
    • 2.6.2-14
    Affected ranges
    • ECOSYSTEM: < 2.11.2-1

    Update to 2.11.2-1

  • caddy Ubuntu Pro 24.04 LTS

    Versions
    • 2.6.2-6
    • 2.6.2-6ubuntu0.24.04.1
    • 2.6.2-6ubuntu0.24.04.2
    • 2.6.2-6ubuntu0.24.04.2+esm1
    • 2.6.2-6ubuntu0.24.04.3
    • 2.6.2-6ubuntu0.24.04.3+esm1
    All versions (7)
    • 2.6.2-6ubuntu0.24.04.3+esm2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • caddy Ubuntu 25.10

    Versions
    • 2.6.2-9
    • 2.6.2-11
    • 2.6.2-12
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • caddy Ubuntu 26.10

    Versions
    • 2.6.2-14
    • 2.11.4-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • caddy Ubuntu Pro 26.04 LTS

    Versions
    • 2.6.2-12
    • 2.6.2-14
    • 2.6.2-14ubuntu0.26.04.1~esm1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →