CVE-2026-27585
MEDIUM6.5EPSS 0.12%Improper sanitization of glob characters in github.com/caddyserver/caddy/v2
Published: 2/24/2026Modified: 4/30/2026
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 (3)
- Debian/caddyfrom 0
- Go/github.com/caddyserver/caddy/v2from 0, < 2.11.1
- Go/github.com/caddyserver/caddy/v2from 0, < 2.11.1
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | 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 |
| osv | CVSS 3.1 | MEDIUM6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N |
References (9)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2026-27585
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2026-27585
- PATCHhttps://github.com/caddyserver/caddy
- WEBhttps://caddyserver.com/docs/caddyfile/directives#directive-order
- WEBhttps://github.com/caddyserver/caddy/blob/68d50020eef0d4c3398b878f17c8092ca5b58ca0/modules/caddyhttp/fileserver/matcher.go#L361
- WEBhttps://github.com/caddyserver/caddy/blob/68d50020eef0d4c3398b878f17c8092ca5b58ca0/modules/caddyhttp/fileserver/matcher.go#L398
- WEBhttps://github.com/caddyserver/caddy/releases/tag/v2.11.1
- WEBhttps://github.com/caddyserver/caddy/security/advisories/GHSA-4xrr-hq4w-6vf4
- WEBhttps://pkg.go.dev/vuln/GO-2026-4535