Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/caddyserver/caddy/v2
  4. ›
  5. CVE-2026-27585

CVE-2026-27585: Caddy: Improper sanitization of glob characters in file matcher may lead to bypassing security protections

February 24, 2026 (updated February 27, 2026)

The path sanitization in file matcher doesn’t sanitize backslashes which can lead to bypassing path related security protections.

References

  • caddyserver.com/docs/caddyfile/directives
  • github.com/advisories/GHSA-4xrr-hq4w-6vf4
  • github.com/caddyserver/caddy
  • github.com/caddyserver/caddy/blob/68d50020eef0d4c3398b878f17c8092ca5b58ca0/modules/caddyhttp/fileserver/matcher.go
  • github.com/caddyserver/caddy/blob/68d50020eef0d4c3398b878f17c8092ca5b58ca0/modules/caddyhttp/fileserver/matcher.go
  • github.com/caddyserver/caddy/releases/tag/v2.11.1
  • github.com/caddyserver/caddy/security/advisories/GHSA-4xrr-hq4w-6vf4
  • nvd.nist.gov/vuln/detail/CVE-2026-27585
  • pkg.go.dev/vuln/GO-2026-4535

Code Behaviors & Features

Detect and mitigate CVE-2026-27585 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.11.1

Fixed versions

  • 2.11.1

Solution

Upgrade to version 2.11.1 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation

Source file

go/github.com/caddyserver/caddy/v2/CVE-2026-27585.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 25 Mar 2026 00:16:34 +0000.