5.9medium
Traefik's ACME TLS-ALPN fast path lacks timeouts and close on handshake stall
- Severity
- 5.9medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.45% (higher than 31% of CVEs)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-cwjm-3f7h-9hwqGO-2026-4322
Description
Traefik is an HTTP reverse proxy and load balancer. Prior to 2.11.35 and 3.6.7, there is a potential vulnerability in Traefik ACME TLS certificates' automatic generation: the ACME TLS-ALPN fast path can allow unauthenticated clients to tie up go routines and file descriptors indefinitely when the ACME TLS challenge is enabled. A malicious client can open many connections, send a minimal ClientHello with acme-tls/1, then stop responding, leading to denial of service of the entry point. The vulnerability is fixed in 2.11.35 and 3.6.7.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| traefik traefik | < 2.11.35, >=3.0.0-beta1, < 3.6.7, before 2.11.35, from 3.0.0 before 3.6.7 | CVE List, NVD |
| github.com/traefik/traefik/v3 (Go) | before 3.6.7 | GitHub Advisory Database, Go Vulnerability Database |
| github.com/traefik/traefik/v2 (Go) | before 2.11.35 | GitHub Advisory Database, Go Vulnerability Database |
| github.com/traefik/traefik (Go) | all versions | Go Vulnerability Database |
All scores
| GitHub_M | 5.9medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 5.9medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 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
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
Traefik is an HTTP reverse proxy and load balancer. Prior to 2.11.35 and 3.6.7, there is a potential vulnerability in Traefik ACME TLS certificates' automatic generation: the ACME TLS-ALPN fast path can allow unauthenticated clients to tie up go routines and file descriptors indefinitely when the ACME TLS challenge is enabled. A malicious client can open many connections, send a minimal ClientHello with acme-tls/1, then stop responding, leading to denial of service of the entry point. The vulnerability is fixed in 2.11.35 and 3.6.7.
GitHub Advisory Database
Impact
There is a potential vulnerability in Traefik ACME TLS certificates' automatic generation: the ACME TLS-ALPN fast path can allow unauthenticated clients to tie up goroutines and file descriptors indefinitely when the ACME TLS challenge is enabled.
A malicious client can open many connections, send a minimal ClientHello with acme-tls/1, then stop responding, leading to denial of service of the entrypoint.
Patches
- https://github.com/traefik/traefik/releases/tag/v2.11.35
- https://github.com/traefik/traefik/releases/tag/v3.6.7
For more information
If you have any questions or comments about this advisory, please open an issue.
<details> <summary>Original Description</summary>[Security] ACME TLS-ALPN fast path lacks timeouts and close on handshake stall
Dear Traefik security team,
We believe we have identified a resource-exhaustion issue in the ACME TLS-ALPN fast path that can allow unauthenticated clients to tie up goroutines and file descriptors indefinitely when the ACME TLS challenge is enabled.
Summary
- Affected code:
pkg/server/router/tcp/router.go(ACME TLS-ALPN handling). - When a ClientHello advertises
acme-tls/1, Traefik intercepts it and callstls.Server(...).Handshake()without any read/write deadlines and without closing the connection afterward. - Immediately before this branch, existing deadlines set by the entrypoint are cleared.
- A client that sends the ALPN marker and then stops responding can keep the goroutine and socket open indefinitely, potentially exhausting the entrypoint under load.
- Exposure is limited to entrypoints where the ACME TLS-ALPN challenge is enabled and ACME bypass is not allowed.
Relevant snippets
// Deadlines are cleared before protocol dispatch
if err := conn.SetDeadline(time.Time{}); err != nil {
log.Error().Err(err).Msg("Error while setting deadline")
}
// ACME TLS-ALPN fast path
if !r.acmeTLSPassthrough && slices.Contains(hello.protos, tlsalpn01.ACMETLS1Protocol) {
r.acmeTLSALPNHandler().ServeTCP(r.GetConn(conn, hello.peeked))
return
}
// Handler invoked by the branch above
return tcp.HandlerFunc(func(conn tcp.WriteCloser) {
_ = tls.Server(conn, r.httpsTLSConfig).Handshake()
})
Impact
- Each stalled handshake consumes a goroutine and FD with no timeout and no server-side close.
- A malicious client can open many connections, send a minimal ClientHello with
acme-tls/1, then stop responding, leading to denial of service of the entrypoint. - Normal HTTPS handling uses
http.Servertimeouts; this bespoke path bypasses them.
Conditions for exploitation
- ACME TLS-ALPN challenge enabled (default when configured).
allowACMEByPassdisabled for the entrypoint (the default when ACME TLS challenge is handled by Traefik).
CWE
- CWE-400: Uncontrolled Resource Consumption.
Proposed fix (illustrative)
@@ func (r *Router) acmeTLSALPNHandler() tcp.Handler {
- return tcp.HandlerFunc(func(conn tcp.WriteCloser) {
- _ = tls.Server(conn, r.httpsTLSConfig).Handshake()
- })
+ return tcp.HandlerFunc(func(conn tcp.WriteCloser) {
+ // Ensure the handshake cannot block indefinitely and always closes the socket.
+ _ = conn.SetReadDeadline(time.Now().Add(10 * time.Second))
+ _ = conn.SetWriteDeadline(time.Now().Add(10 * time.Second))
+
+ tlsConn := tls.Server(conn, r.httpsTLSConfig)
+ _ = tlsConn.Handshake()
+ _ = tlsConn.Close() // close regardless of handshake outcome
+ })
}
Alternatively, route ACME TLS-ALPN through the existing tcp.TLSHandler/HTTP server path so the configured timeouts and lifecycle management apply automatically.
CVSS v3.1 (estimate)
- Vector: AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Base score: 7.5 (High)
- Rationale: Network-only, no auth/user interaction required; impact is service availability via resource exhaustion; no confidentiality or integrity impact.
Please let us know if you would like a PoC or further details. We have not made any code changes in this report.
Let us know if you have any questions or need clarification!
Best wishes,
Pavel Kohout
Aisle Research
Go Vulnerability Database
Traefik's ACME TLS-ALPN fast path lacks timeouts and close on handshake stall in github.com/traefik/traefik
NVD (es)
Traefik es un proxy inverso HTTP y balanceador de carga. Antes de 2.11.35 y 3.6.7, existe una potencial vulnerabilidad en la generación automática de certificados TLS ACME de Traefik: la ruta rápida ACME TLS-ALPN puede permitir a clientes no autenticados acaparar go routines y descriptores de archivo indefinidamente cuando el desafío ACME TLS está habilitado. Un cliente malicioso puede abrir muchas conexiones, enviar un ClientHello mínimo con acme-tls/1, luego dejar de responder, lo que lleva a una denegación de servicio del punto de entrada. La vulnerabilidad está corregida en 2.11.35 y 3.6.7.
References
| https://github.com/traefik/traefik/security/advisories/GHSA-cwjm-3f7h-9hwq | advisory, patch, vendor-advisory, web | |
| https://github.com/traefik/traefik/commit/e9f3089e9045812bcf1b410a9d40568917b26c3d | fix, patch, web | |
| https://github.com/traefik/traefik/releases/tag/v2.11.35 | release-notes, web | |
| https://github.com/traefik/traefik/releases/tag/v3.6.7 | release-notes, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-22045 | advisory | |
| https://github.com/traefik/traefik | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-22045 changed 2026-01-20 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-cwjm-3f7h-9hwq changed 2026-04-16 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2026-4322 changed 2026-04-16 | CC-BY-4.0 |
| NVD | CVE-2026-22045 changed 2026-06-17 | Public domain |