All vulnerabilities

Go · Servers and applications

CVE-2026-52844

Caddy: Windows `file_server` path authorization bypass via encoded backslash

Severity
High 7.5
Published
8 Jun 2026
Last changed
25 Oct 2026
Added to UpHeron
22 Oct 2026
Fixed in
2.11.4
Exploit chance
0.6% in the next 30 daysHigher than 50% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Path traversal (CWE-22)Improper access control (CWE-284)
Attack
Over the network · No login needed · No user action needed
Attacker can
Read data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Also known as
GHSA-qrp7-cvwr-j2c6, GO-2026-5595
Sources
NVD, OSV.dev and GitHub, Project advisories (GitHub)

Description

On Windows, Caddy path matchers treat /private\secret.txt as outside /private/*, but file_server later resolves the same request path as private\secret.txt on disk.

An unauthenticated remote client can request /private%5csecret.txt and bypass Caddy path-scoped auth/deny routes protecting /private/*.

The mismatch is between two Caddy code paths:

  • MatchPath.MatchWithError() compares r.URL.Path using URL path semantics and does not normalize \ to /: modules/caddyhttp/matchers.go:429, :436, :490, :532.
  • If the route matcher misses, Caddy skips that route: modules/caddyhttp/routes.go:271.
  • file_server then maps the same request path to a filesystem path with SanitizedPathJoin(root, r.URL.Path): modules/caddyhttp/fileserver/staticfiles.go:294, modules/caddyhttp/caddyhttp.go:257, :263.
  • On Windows, Go filesystem path handling treats \ as a separator, so the default filesystem opens the file under the protected directory: internal/filesystems/os.go:18.
From caddyserver/caddy's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
CaddyServers and applications · cpe:a:caddyserver:caddy
  • Every version before 2.11.4
CaddyServers and applications · github:caddyserver/caddy
  • Every version before 2.11.4
github.com/caddyserver/caddyGo · osv:Go:github.com/caddyserver/caddy
  • Every version up to 1.0.5
CaddyGo · osv:Go:github.com/caddyserver/caddy/v2
  • Every version before 2.11.4

About Caddy

open source web server

From Wikidata, CC0 1.0.
Share of websites with a known web server
1.3%W3Techs, Nov 2026
Docker Hub pulls
770,668,265Docker Hub, 15 Nov 2026
GitHub stars
79,049GitHub, 15 Nov 2026
Forks
5,264GitHub, 15 Nov 2026
Latest release
v2.11.9GitHub, 15 Nov 2026
Released
5 Nov 2026GitHub
License
Apache Software License 2.0Wikidata
Written in
GoWikidata
First published on GitHub
13 Jan 2015GitHub

Release lines

ReleaseLatestSecurity fixes
22.11.9Yes
11.0.5Ended 1 Jul 2020

From endoflife.date.

About github.com/caddyserver/caddy

Vulnerabilities in github.com/caddyserver/caddy

In our list
4
Published in the last 12 months
3
Critical, last 12 months
0
High, last 12 months
2
Known exploited
0
Search the list for github.com/caddyserver/caddy

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2026-52844
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-52844
  • GitHub Advisory Database https://github.com/advisories/GHSA-qrp7-cvwr-j2c6
  • OSV.dev https://osv.dev/vulnerability/GO-2026-5595
  • github.com https://github.com/caddyserver/caddy/security/advisories/GHSA-qrp7-cvwr-j2c6