CVE-2026-52844·Caddy vulnerability
Caddy is an extensible server platform that uses TLS by default. Prior to 2.11.4, 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 bypass Caddy path-scoped auth/deny routes protecting /private/*. This vulnerability is fixed in 2.11.4.
- Severity
- high
- Software
- Caddy
- Fixed in
- 2.11.4
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at 0.62% — higher than 48% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Read the two together. CVE-2026-52844 scores 7.5 on CVSS, so a successful attack would be serious — but at 0.62%, almost nobody is currently attempting it. That is a different situation from a flaw under mass exploitation, and it is usually the difference between patching on your next maintenance window and patching tonight.
Affected versions
Until: 2.11.4
Fixed in: 2.11.4
How to fix this CVE
Upgrade Caddy to version 2.11.4 or later to resolve a critical path traversal vulnerability on Windows systems. The vulnerability allows attackers to bypass authentication controls by exploiting inconsistent path handling between the matcher and file server components. Immediately apply this update if your Caddy instance runs on Windows and uses path-scoped authorization rules.
sudo dnf update caddyDefensia detects this vulnerability
What an exploitation attempt looks like
Sample log line indicative of exploitation attempts:
GET|POST requests containing encoded or literal backslash characters in the path (e.g., /private%5Csecret.txt or /private\secret.txt) targeting directories protected by auth/deny matchers, resulting in HTTP 200 responses instead of expected 401/403WAF mitigation (if patching is not yet possible)
Add this rule to your WAF to block exploitation attempts while you schedule the patch.
Configure WAF rules to block HTTP requests with backslash characters in the URI path on Windows-hosted Caddy servers: ModSecurity rule to reject requests where REQUEST_URI matches (?:\\|%5C) when path matching rules are in placeHow to check if you are affected
- Check your Caddy version by running: caddy version
- Verify if your Caddyfile contains path matchers with auth/deny directives: grep -E '(basicauth|authorize|deny)' /etc/caddy/Caddyfile
- On Windows systems, inspect access logs for requests using backslash notation (e.g., /private\secret.txt) targeting protected paths: Get-Content C:\path\to\caddy\logs\* | Select-String '\\' | Select-String '/private'
- After updating to 2.11.4+, confirm the fix: caddy version | grep -E '2\.(1[1-9]|[2-9][0-9]|11\.[4-9])'
- Restart Caddy service: sudo systemctl restart caddy (Linux) or net stop Caddy && net start Caddy (Windows)
FAQ
What is CVE-2026-52844?
CVE-2026-52844 is a Windows-specific path traversal vulnerability in Caddy where the path matcher and file server components interpret backslash-encoded paths differently, allowing attackers to bypass authentication rules protecting directories with forward slashes.
Is CVE-2026-52844 being actively exploited?
No, this vulnerability is not currently listed in CISA's Known Exploited Vulnerabilities (KEV) catalog, and no public exploits are available.
What versions of Caddy are affected by CVE-2026-52844?
All versions of Caddy prior to and including 2.11.3 are vulnerable; the vulnerability is patched in version 2.11.4 and later.
How do I check if my server is vulnerable to CVE-2026-52844?
Run 'caddy version' and compare against version 2.11.4. If your version is 2.11.3 or earlier AND your system is Windows AND your Caddyfile contains path-scoped authentication rules, your server is vulnerable.
Does this vulnerability affect Linux systems?
No, this vulnerability is specific to Windows due to differences in path resolution between forward slashes and backslashes; Linux systems are not affected.
Does Defensia detect CVE-2026-52844?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Caddy is installed on a monitored server, CVE-2026-52844 will appear in your dashboard with remediation steps.
Related Caddy CVEs
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-52844. Free for 1 server.
Get started free