# CVE-2026-27585: Caddy's improper sanitization of glob characters in file matcher may lead to bypassing security protections

- Severity: Medium 6.9 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.36%, higher than 32% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-02-24T16:06:05.030Z
- Modified: 2026-06-17T10:27:20.763Z
- Also known as: GHSA-4xrr-hq4w-6vf4, GO-2026-4535
- Weaknesses: CWE-20
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- caddyserver caddy: < 2.11.1; before 2.11.1
- github.com/caddyserver/caddy/v2 (Go): before 2.11.1

## Every score

- GitHub_M: CVSS:4.0 6.9 Medium `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`
- GitHub: CVSS:4.0 Medium `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`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N`

## References

- <https://github.com/caddyserver/caddy/security/advisories/GHSA-4xrr-hq4w-6vf4> (exploit, advisory, vendor-advisory, web)
- <https://github.com/caddyserver/caddy/blob/68d50020eef0d4c3398b878f17c8092ca5b58ca0/modules/caddyhttp/fileserver/matcher.go#L361> (product, web)
- <https://github.com/caddyserver/caddy/blob/68d50020eef0d4c3398b878f17c8092ca5b58ca0/modules/caddyhttp/fileserver/matcher.go#L398> (product, web)
- <https://github.com/caddyserver/caddy/releases/tag/v2.11.1> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-27585> (advisory)
- <https://caddyserver.com/docs/caddyfile/directives#directive-order> (web)
- <https://github.com/caddyserver/caddy> (package)
- <https://pkg.go.dev/vuln/GO-2026-4535> (web)

## Sources

- CVE List: [CVE-2026-27585](https://www.cve.org/CVERecord?id=CVE-2026-27585), CVE Terms of Use, modified 2026-02-26
- GitHub Advisory Database: [GHSA-4xrr-hq4w-6vf4](https://github.com/advisories/GHSA-4xrr-hq4w-6vf4), CC-BY-4.0, modified 2026-02-27
- Go Vulnerability Database: [GO-2026-4535](https://pkg.go.dev/vuln/GO-2026-4535), CC-BY-4.0, modified 2026-02-26
- NVD: [CVE-2026-27585](https://nvd.nist.gov/vuln/detail/CVE-2026-27585), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-27585 · Whole record: https://cve.day/CVE-2026-27585.json · Rebuilt by cve.day 2026-11-25T22:59:14.770Z
