7.5high
Traefik: tcp router clears read deadlines before tls forwarding, enabling stalled handshakes (slowloris doS)
- Severity
- 7.5high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.60% (higher than 49% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-xw98-5q62-jx94GO-2026-4594
Description
Traefik is an HTTP reverse proxy and load balancer. Prior to versions 2.11.38 and 3.6.9, there is a potential vulnerability in Traefik managing TLS handshake on TCP routers. When Traefik processes a TLS connection on a TCP router, the read deadline used to bound protocol sniffing is cleared before the TLS handshake is completed. When a TLS handshake read error occurs, the code attempts a second handshake with different connection parameters, silently ignoring the initial error. A remote unauthenticated client can exploit this by sending an incomplete TLS record and stopping further data transmission, causing the TLS handshake to stall indefinitely and holding connections open. By opening many such stalled connections in parallel, an attacker can exhaust file descriptors and goroutines, degrading availability of all services on the affected entrypoint. This issue has been patched in versions 2.11.38 and 3.6.9.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| traefik traefik | < 2.11.38, < 3.6.9, before 2.11.38, from 3.0.0 before 3.6.9 | CVE List, NVD |
| devspaces/traefik-rhel9 | Not specified Not affected: from 1776718585 before * | CVE List |
| github.com/traefik/traefik/v2 (Go) | before 2.11.38 | GitHub Advisory Database, Go Vulnerability Database |
| github.com/traefik/traefik/v3 (Go) | before 3.6.9 | GitHub Advisory Database, Go Vulnerability Database |
| github.com/traefik/traefik (Go) | all versions | Go Vulnerability Database |
All scores
| GitHub_M | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| redhat-SADP | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Classification
What each source says
CVE List
Traefik is an HTTP reverse proxy and load balancer. Prior to versions 2.11.38 and 3.6.9, there is a potential vulnerability in Traefik managing TLS handshake on TCP routers. When Traefik processes a TLS connection on a TCP router, the read deadline used to bound protocol sniffing is cleared before the TLS handshake is completed. When a TLS handshake read error occurs, the code attempts a second handshake with different connection parameters, silently ignoring the initial error. A remote unauthenticated client can exploit this by sending an incomplete TLS record and stopping further data transmission, causing the TLS handshake to stall indefinitely and holding connections open. By opening many such stalled connections in parallel, an attacker can exhaust file descriptors and goroutines, degrading availability of all services on the affected entrypoint. This issue has been patched in versions 2.11.38 and 3.6.9.
GitHub Advisory Database
Impact
There is a potential vulnerability in Traefik managing TLS handshake on TCP routers.
When Traefik processes a TLS connection on a TCP router, the read deadline used to bound protocol sniffing is cleared before the TLS handshake is completed. When a TLS handshake read error occurs, the code attempts a second handshake with different connection parameters, silently ignoring the initial error. A remote unauthenticated client can exploit this by sending an incomplete TLS record and stopping further data transmission, causing the TLS handshake to stall indefinitely and holding connections open.
By opening many such stalled connections in parallel, an attacker can exhaust file descriptors and goroutines, degrading availability of all services on the affected entrypoint.
Patches
- https://github.com/traefik/traefik/releases/tag/v2.11.38
- https://github.com/traefik/traefik/releases/tag/v3.6.9
Workarounds
No workaround available.
For more information
If there are any questions or comments about this advisory, please open an issue.
<details> <summary>Original Description</summary>
Traefik's TCP router uses a connection-level read deadline to bound protocol sniffing (peeking a TLS client hello), but then clears the deadline via conn.SetDeadline(time.Time{}) before delegating the connection to TLS forwarding.
A remote unauthenticated client can send an incomplete TLS record header and stop sending data. After the initial peek times out, the router clears the deadline and the subsequent TLS handshake reads can stall indefinitely, holding connections open and consuming resources.
Expected vs Actual
Expected: if an entrypoint-level read deadline is used to bound initial protocol sniffing, TLS handshake reads should remain bounded by a deadline (either the same deadline is preserved, or a dedicated handshake timeout is enforced).
Actual: after protocol sniffing the router clears the connection deadline and delegates to TLS handling; an attacker can keep the TLS handshake stalled beyond the configured read timeout.
Severity
HIGH CWE: CWE-400 (Uncontrolled Resource Consumption)
Affected Code
- pkg/server/router/tcp/router.go: (*Router).ServeTCP clears the deadline before TLS forwarding
- conn.SetDeadline(time.Time{}) removes the entrypoint-level deadline that previously bounded reads
Root Cause
In (*Router).ServeTCP, after sniffing a TLS client hello, the router removes the connection read deadline:
// Remove read/write deadline and delegate this to underlying TCP server
// (for now only handled by HTTP Server)
if err := conn.SetDeadline(time.Time{}); err != nil {
...
}
TLS handshake reads that happen after this point are not guaranteed to have any deadline, so a client that stops sending bytes can keep the connection open indefinitely.
Attacker Control
Attacker-controlled input is the raw TCP byte stream on an entrypoint that routes to a TLS forwarder. The attacker controls:
- Sending a partial TLS record header (enough to trigger the TLS sniffing path)
- Stopping further sends so the subsequent handshake read blocks
Impact
Each stalled connection occupies file descriptors and goroutines (and may consume additional memory depending on buffering). By opening many such connections in parallel, an attacker can cause resource exhaustion and degrade availability.
Reproduction
Attachments include poc.zip with a self-contained integration harness. It pins the repository commit, applies fix.patch as the control variant, and runs a regression-style test that demonstrates the stall in canonical mode and the timeout in control mode.
Run canonical (vulnerable):
unzip poc.zip -d poc
cd poc
make test
Canonical output excerpt: PROOF_MARKER
Run control (deadline preserved / no stall):
unzip poc.zip -d poc
cd poc
make control
Control output excerpt: NC_MARKER
Recommended Fix
Do not clear the entrypoint-level deadline prior to completing TLS handshake, or enforce a dedicated handshake timeout for the TLS forwarder path.
Fix accepted when: an incomplete TLS record cannot stall past the configured entrypoint-level read deadline (or an explicit handshake timeout), and a regression test covers the canonical/control behavior.
</details>Go Vulnerability Database
Traefik: tcp router clears read deadlines before tls forwarding, enabling stalled handshakes (Slowloris DOS) in github.com/traefik/traefik
NVD (es)
Traefik es un proxy inverso HTTP y balanceador de carga. Antes de las versiones 2.11.38 y 3.6.9, existe una potencial vulnerabilidad en Traefik al gestionar el handshake TLS en routers TCP. Cuando Traefik procesa una conexión TLS en un router TCP, el plazo de lectura utilizado para limitar el sniffing del protocolo se borra antes de que se complete el handshake TLS. Cuando ocurre un error de lectura en el handshake TLS, el código intenta un segundo handshake con diferentes parámetros de conexión, ignorando silenciosamente el error inicial. Un cliente remoto no autenticado puede explotar esto enviando un registro TLS incompleto y deteniendo la transmisión de datos posterior, lo que hace que el handshake TLS se detenga indefinidamente y mantenga las conexiones abiertas. Al abrir muchas de estas conexiones estancadas en paralelo, un atacante puede agotar los descriptores de archivo y las goroutines, degradando la disponibilidad de todos los servicios en el punto de entrada afectado. Este problema ha sido parcheado en las versiones 2.11.38 y 3.6.9.
References
| https://github.com/traefik/traefik/security/advisories/GHSA-xw98-5q62-jx94 | advisory, patch, vendor-advisory, web | |
| https://github.com/traefik/traefik/releases/tag/v2.11.38 | product, release-notes, web | |
| https://github.com/traefik/traefik/releases/tag/v3.6.9 | product, release-notes, web | |
| https://access.redhat.com/security/cve/CVE-2026-26999 | vdb-entry | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2444874 | issue-tracking | |
| https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-26999.json | ||
| https://access.redhat.com/errata/RHSA-2026:10175 | vendor-advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-26999 | advisory | |
| https://github.com/traefik/traefik | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-26999 changed 2026-07-15 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-xw98-5q62-jx94 changed 2026-04-16 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2026-4594 changed 2026-04-16 | CC-BY-4.0 |
| NVD | CVE-2026-26999 changed 2026-07-15 | Public domain |