Detect Traefik digestAuth Middleware Authentication Bypass (CVE-2026-85595) in Google Chronicle
Detects exploitation and exposure of CVE-2026-85595, an authentication bypass in Traefik's digestAuth middleware. In affected versions (Traefik < 2.11.55 and 3.0.0 <= v < 3.7.11), unknown usernames presented in a Digest Authentication 'Authorization' header are mishandled, allowing an attacker to bypass authentication on routes protected by the digestAuth middleware. CVSS 9.3 (CWE-287). This detection surfaces anomalous Digest-auth requests reaching protected backends, successful access following previously-failed digest challenges, and reconnaissance against Traefik-fronted services, as well as the presence of vulnerable Traefik versions in the environment.
Based on Traefik GHSA-5w68-77r2-r64c digestAuth authentication bypass advisory
MITRE ATT&CK
YARA-L Detection Query
// df00tech DF00-0d1245382c · https://df00tech.com/detections/CVE-2026-85595 · licence: https://df00tech.com/detections/licence
rule traefik_digestauth_bypass_cve_2026_85595 {
meta:
author = "Argus"
description = "Traefik digestAuth authentication bypass (CVE-2026-85595)"
severity = "HIGH"
events:
$e.metadata.product_name = "Traefik"
$e.network.http.user_agent != ""
re.regex($e.additional.fields["authorization"], `^Digest `)
re.regex($e.additional.fields["router_name"], `(?i)(digest|auth)`)
$e.network.http.response_code < 400
$ip = $e.principal.ip
match:
$ip over 1h
condition:
#e > 1
} Chronicle YARA-L rule correlating multiple successful digest-authenticated requests to Traefik auth routers from a single source IP within an hour.
Data Sources
Required Tables
False Positives & Tuning
- Cached-credential legitimate digest clients
- Monitoring probes replaying headers
- Internal scheduled digest automation
Other platforms for CVE-2026-85595
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 Digest auth request with unknown username against Traefik route
Expected signal: A Traefik access-log entry with a Digest Authorization header, username=nonexistent_bypass_user, on the digestAuth-protected router.
- Test 2 Digest challenge handshake skip
Expected signal: Multiple Traefik access-log entries from one source carrying Digest headers with empty nonces across several usernames.
- Test 3 Traefik vulnerable version fingerprint
Expected signal: An HTTP request to the Traefik dashboard /api/version endpoint and a JSON response containing the version string.
Response Playbook
Triage
- Confirm the Traefik version fronting the affected route via the dashboard/API (`/api/version`) or deployment manifest; versions < 2.11.55 or 3.0.0 <= v < 3.7.11 are vulnerable.
- Inspect the flagged access-log entries: extract the Digest 'username' value and verify whether it maps to a real, provisioned account for that realm. Unknown/nonexistent usernames that still receive a <400 response indicate a successful bypass.
- Review whether the matched requests carried a valid nonce obtained from a prior 401 WWW-Authenticate challenge, or skipped the challenge handshake entirely.
- Determine which backend route/service sits behind the digestAuth middleware and assess the sensitivity of data or functions exposed.
Containment
- Immediately upgrade Traefik to 2.11.55 or 3.7.11 (or later) on all affected instances.
- As an interim mitigation, replace digestAuth middleware with basicAuth over TLS, forwardAuth to an external IdP, or restrict the protected route by source IP / mTLS until patched.
- Rotate any credentials or session tokens that may have been exposed through the bypassed route.
Evidence Collection
- Preserve raw Traefik access logs (including full Authorization headers) and any application logs from the protected backend for the exposure window.
- Capture the Traefik static and dynamic configuration (middleware definitions, router-to-middleware bindings) and the running version/build hash.
Escalation Criteria
- !Escalate to incident response if an unknown or unprovisioned digest username received a successful (<400) response on a route protected by digestAuth.
- !Escalate if backend application logs show data access, state changes, or privileged actions correlated with the bypassed requests.
Investigation Guide
Forensic Artifacts
- >
Traefik access logs containing Digest Authorization headers with unknown usernames and <400 downstream status codes - >
Traefik dynamic configuration showing digestAuth middleware bindings and the running binary version - >
Backend application logs showing sessions/actions that lack a corresponding legitimate authentication event
Tuning Guidance
Build an allowlist of legitimate digest usernames and realms for each protected route, then invert the detection to alert only on usernames outside that allowlist. Exclude known monitoring/health-check source IPs. If your Traefik access logs do not capture request headers by default, enable header logging (accesslog.fields.headers) scoped to the Authorization header so the detection has the fields it needs. Adjust the Requests>1 threshold based on baseline digest-auth volume for the route.
Hunting Queries
Enumerates all Digest usernames seen per client and how many produced successful (<400) backend access, to spot unknown-username bypass attempts.
// df00tech DF00-0d1245382c · https://df00tech.com/detections/CVE-2026-85595 · licence: https://df00tech.com/detections/licence
TraefikAccessLogs_CL | where RequestHeaders_Authorization_s startswith "Digest " | extend DigestUser = extract(@'username="?([^",]+)"?', 1, RequestHeaders_Authorization_s) | summarize Requests=count(), SuccessfulAccess=countif(toint(DownstreamStatus_d) < 400) by DigestUser, ClientHost_s | where SuccessfulAccess > 0 | order by Requests desc ``` df00tech DF00-0d1245382c · https://df00tech.com/detections/CVE-2026-85595 · licence: https://df00tech.com/detections/licence ```
index=proxy sourcetype=traefik:access "Digest " | rex field=_raw "username=\"?(?<digest_user>[^\",]+)\"?" | stats count AS requests count(eval(DownstreamStatus<400)) AS successes by digest_user ClientHost | where successes > 0 | sort - requests Atomic Red Team Tests
Sends a Digest Authorization header with a non-existent username to a Traefik route protected by digestAuth middleware, simulating the bypass attempt.
Command
curl -s -o /dev/null -w '%{http_code}\n' -H 'Authorization: Digest username="nonexistent_bypass_user", realm="traefik", nonce="", uri="/protected", response="00000000000000000000000000000000"' http://traefik.lab.local/protected Cleanup
echo 'No cleanup required; no state is modified by the request.' Expected Telemetry
A Traefik access-log entry with a Digest Authorization header, username=nonexistent_bypass_user, on the digestAuth-protected router.
Expected Detection
The detection fires when the unknown-username digest request returns a <400 status on a vulnerable instance (bypass succeeded); on a patched instance the request returns 401 and no alert fires.
Issues a digest-authenticated request without first obtaining a WWW-Authenticate nonce challenge, replaying an empty/forged nonce.
Command
for u in admin test svc_unknown; do curl -s -o /dev/null -w "$u %{http_code}\n" -H "Authorization: Digest username=\"$u\", realm=\"traefik\", nonce=\"\", uri=\"/admin\", response=\"deadbeefdeadbeefdeadbeefdeadbeef\"" http://traefik.lab.local/admin; done Cleanup
echo 'No cleanup required.' Expected Telemetry
Multiple Traefik access-log entries from one source carrying Digest headers with empty nonces across several usernames.
Expected Detection
The detection's missing-nonce handshake and repeated-request logic flags the source IP.
Queries the Traefik API to record the running version and confirm whether it falls in the vulnerable range.
Command
curl -s http://traefik.lab.local:8080/api/version | tee /tmp/traefik_version.json Cleanup
rm -f /tmp/traefik_version.json Expected Telemetry
An HTTP request to the Traefik dashboard /api/version endpoint and a JSON response containing the version string.
Expected Detection
Version-inventory correlation flags the host if the reported version is < 2.11.55 or in the 3.0.0-3.7.10 range.