Vulnerability · Published Feb 24, 2026 · Assigned by GitHub_M
CVE-2026-27585Caddy's improper sanitization of glob characters in file matcher may lead to bypassing security protections
Medium 6.9
In plain English
A medium-severity improper input validation in caddy from caddyserver. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 31% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
Caddy is an extensible server platform that uses TLS by default. Prior to version 2.11.1, the path sanitization routine in file matcher doesn't sanitize backslashes which can lead to bypassing path related security protections. It affects users with specific Caddy and environment configurations. Version 2.11.1 fixes the issue.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.23 | caddy | 2.11.2-r0 | ALPINE-CVE-2026-27585 |
| Alpine:v3.24 | caddy | 2.11.1-r0 | ALPINE-CVE-2026-27585 |
| Debian:12 | caddy | 2.6.2-5+deb12u1 | DEBIAN-CVE-2026-27585 |
| Debian:13 | caddy | 2.6.2-12+deb13u1 | DEBIAN-CVE-2026-27585 |
| Debian:14 | caddy | 2.11.2-1 | DEBIAN-CVE-2026-27585 |
| Go | github.com/caddyserver/caddy/v2 | 2.11.1 | GO-2026-4535 |
| Go | github.com/caddyserver/caddy/v2 | 2.11.1 | GHSA-4xrr-hq4w-6vf4 |
| Ubuntu:25.10 | caddy | no fix listed | UBUNTU-CVE-2026-27585 |
| Ubuntu:26.10 | caddy | no fix listed | UBUNTU-CVE-2026-27585 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| caddyserver | caddy | < 2.11.1 |
Weakness: CWE-20 · Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:P
References
- https://github.com/caddyserver/caddy/security/advisories/GHSA-4xrr-hq4w-6vf4 x_refsource_CONFIRM
- https://github.com/caddyserver/caddy/blob/68d50020eef0d4c3398b878f17c8092ca5b58ca0/modules/caddyhttp/fileserver/matcher.go#L361 x_refsource_MISC
- https://github.com/caddyserver/caddy/blob/68d50020eef0d4c3398b878f17c8092ca5b58ca0/modules/caddyhttp/fileserver/matcher.go#L398 x_refsource_MISC
- https://github.com/caddyserver/caddy/releases/tag/v2.11.1 x_refsource_MISC