Detect Traefik sanitizePath Authorization Bypass via Path-Parameter Dot-Segments (CVE-2026-137481) in Elastic Security
Detects attempts to exploit CVE-2026-137481, an authorization bypass in Traefik reverse proxy (before 2.11.62, 3.x before 3.7.18, and 3.8.0-rc.1). The sanitizePath entry point option resolves the . and .. dot-segments but leaves a dot-segment carrying a path parameter, such as /..;x/, unresolved. Traefik matches its routers and applies its middlewares on this unresolved path and forwards it unchanged. When a parameter-stripping backend (for example Servlet containers or Spring) is shared between an unauthenticated router and a router protected by authentication or authorization middleware, an unauthenticated attacker can send a request such as /public/..;x/admin to reach protected resources and bypass the middleware. Detection focuses on Traefik access logs and backend web logs showing requests with dot-segment path parameters or traversal sequences reaching sensitive routes, correlated with authorization bypass indicators such as anonymous access to privileged paths or 2xx responses on routes that should return 401/403.
MITRE ATT&CK
Elastic Detection Query
// df00tech DF00-98b407c0f4 · https://df00tech.com/detections/CVE-2026-137481 · licence: https://df00tech.com/detections/licence
any where event.dataset == "traefik.access" and
(
stringContains(url.original, "/..") or
stringContains(url.original, "/./") or
stringContains(url.original, "%2e") or
stringContains(url.original, "..;") or
stringContains(url.original, "..%2f") or
stringContains(url.original, "....//")
) and
url.path : ("/admin*", "/dashboard*", "/api/internal*", "/actuator*", "/metrics*", "/config*") Elastic EQL rule over Traefik access datasets matching dot-segment and encoded traversal patterns in the original URL that target sensitive route prefixes.
Data Sources
Required Tables
False Positives & Tuning
- Benign relative URLs normalized before authorization
- Security scanner traffic not reaching protected routes
- Internal observability tooling hitting /metrics
Other platforms for CVE-2026-137481
Testing Methodology
Validate this detection against 3 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are further down this page.
- Test 1 Path-parameter dot-segment traversal against protected prefix
Expected signal: Traefik access log entry with a RequestPath containing a ..;x path-parameter dot-segment targeting /admin/config
- Test 2 Encoded %2e dot-segment bypass
Expected signal: Traefik access log showing %2e%2e encoded segments in the request path toward /api/internal
- Test 3 Semicolon dot-segment variant
Expected signal: Traefik access log entry containing ..; segment in path targeting /dashboard
Response Playbook
Triage
- Confirm the Traefik version serving the affected route is vulnerable (< 2.11.62, 3.x < 3.7.18, or 3.8.0-rc.1) by checking the running image tag or `traefik version` output.
- Extract the raw request path from the access log and manually normalize dot-segments to determine the actual backend route reached versus the route the authorization middleware matched.
- Check the HTTP response code: a 2xx/3xx response on a route that should require authentication (expected 401/403) is a strong indicator the bypass succeeded.
- Identify the source IP's full request history to distinguish a single opportunistic probe from a sustained bypass campaign against protected endpoints.
Containment
- Upgrade Traefik to a fixed release (2.11.62, 3.7.18, or later) as the authoritative remediation.
- As an interim mitigation, add a middleware or WAF rule that rejects requests whose raw path contains dot-segments or encoded traversal sequences (., .., %2e) before routing, and verify ForwardAuth matches the normalized path.
- Block the offending source IP(s) at the edge if an active bypass against sensitive routes is confirmed.
Evidence Collection
- Preserve full Traefik access logs (raw RequestPath, matched router, response code, source IP) covering the suspected exploitation window.
- Capture backend application logs for the targeted sensitive routes to determine whether the request was actually served and what data was returned.
- Snapshot the Traefik configuration (entry points, routers, middleware chain, sanitizePath setting) as deployed at the time of the incident.
Escalation Criteria
- !Escalate to incident response if a privileged or admin route returned a successful response to an unauthenticated or unauthorized request.
- !Escalate if evidence shows sensitive data retrieval, configuration disclosure, or state-changing actions performed via the bypassed route.
Investigation Guide
Forensic Artifacts
- >
Traefik access log entries showing raw (pre-normalization) request paths with dot-segments - >
Backend web server logs showing the normalized path actually served - >
Traefik router/middleware match records indicating which rule the request matched
Tuning Guidance
Baseline normal relative-path and encoded-segment usage for your APIs before alerting; many clients and scanners generate dot-segment noise that never reaches a protected route. Prioritize alerts where the normalized path reaches a sensitive route AND the response code indicates success (2xx/3xx) rather than 401/403. Maintain the sensitive-route list to match your actual protected prefixes, and suppress known observability/health-check source IPs hitting /metrics and /actuator.
Hunting Queries
Surfaces source IPs and paths repeatedly submitting dot-segment/encoded traversal sequences to Traefik, useful for spotting enumeration before a successful bypass.
// df00tech DF00-98b407c0f4 · https://df00tech.com/detections/CVE-2026-137481 · licence: https://df00tech.com/detections/licence
CommonSecurityLog | where SourceServiceName has "traefik" | where RequestURL has_any ("/..","%2e","..;") | summarize count() by SourceIP, RequestURL | sort by count_ desc ``` df00tech DF00-98b407c0f4 · https://df00tech.com/detections/CVE-2026-137481 · licence: https://df00tech.com/detections/licence ```
index=proxy sourcetype IN ("traefik:access","traefik:json") | regex _raw="(?i)(/\.\.|%2e|\.\.;)" | stats count by src_ip, uri_path | sort - count Atomic Red Team Tests
Send a request embedding a path-parameter dot-segment to attempt to bypass a PathPrefix authorization rule and reach a protected route on a lab Traefik instance.
Command
curl -sk -o /dev/null -w '%{http_code}\n' 'http://traefik-lab.local/public/..;x/admin/config' Cleanup
echo 'No cleanup required; stateless GET request' Expected Telemetry
Traefik access log entry with a RequestPath containing a ..;x path-parameter dot-segment targeting /admin/config
Expected Detection
Rule fires on the dot-segment path parameter reaching the /admin sensitive route prefix
Use percent-encoded dot sequences (%2e%2e) to probe incomplete sanitizePath normalization toward an internal API route.
Command
curl -sk 'http://traefik-lab.local/app/%2e%2e/api/internal/users' Cleanup
echo 'No cleanup required' Expected Telemetry
Traefik access log showing %2e%2e encoded segments in the request path toward /api/internal
Expected Detection
Rule matches encoded %2e%2e traversal targeting /api/internal
Submit the ..; path-parameter variant used to confuse path normalizers and bypass path-based routing/authorization.
Command
powershell -c "Invoke-WebRequest -UseBasicParsing -Uri 'http://traefik-lab.local/files/..;/dashboard' -MaximumRedirection 0" Cleanup
Write-Output 'No cleanup required' Expected Telemetry
Traefik access log entry containing ..; segment in path targeting /dashboard
Expected Detection
Rule fires on the ..; dot-segment variant reaching the /dashboard route