CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2026-71324

CVE-2026-71324: Cross-User Response Poisoning in Traefik via HTTP/2 and HTTP/3 CONNECT Handling

Amit Schendel
Amit Schendel
Senior Security Researcher

Aug 6, 2026·7 min read·2 visits

Executive Summary (TL;DR)

An unauthenticated remote attacker can poison the backend connection pool in Traefik by sending HTTP/2 or HTTP/3 CONNECT requests containing smuggled payloads. When the upstream HTTP/1.1 server rejects the tunnel, unconsumed payload bytes remain in the connection buffer and are served to other users.

CVE-2026-71324 is a high-severity HTTP request smuggling vulnerability in the Traefik reverse proxy. It allows an unauthenticated remote attacker to achieve cross-user response poisoning when Traefik is configured to route HTTP/2 or HTTP/3 CONNECT requests to an HTTP/1.1 upstream backend. By sending a crafted CONNECT request that is subsequently rejected by the backend with a keep-alive non-2xx response, the attacker can leave smuggled requests within the shared connection pool, which are then served to subsequent clients.

Vulnerability Overview

Traefik is a widely deployed, open-source HTTP reverse proxy and load balancer written in Go. The software acts as an entry point for microservices, routing external traffic to internal services using various protocols. The vulnerability exists in the transition layer where incoming HTTP/2 or HTTP/3 protocols are mapped down to HTTP/1.1 connections for communication with backend servers.

Under modern HTTP specifications, specifically RFC 8441, clients can initiate a raw TCP tunnel over multiplexed HTTP/2 or HTTP/3 streams using the CONNECT method. This mechanism allows protocols like WebSockets or custom TCP-based streams to share a single, multiplexed transport channel. When Traefik processes these incoming streams, it establishes a corresponding HTTP/1.1 connection to the upstream server and forwards the headers along with the payload.

The core of the vulnerability lies in the lack of correlation between the lifecycle of the downstream tunnel stream and the upstream HTTP/1.1 connection. When the backend rejects the connection request but leaves the connection open, Traefik returns the socket to the connection pool while client-controlled bytes are still pending. This mismatch creates an attack surface where subsequent client requests get associated with smuggled data.

Root Cause Analysis

The root cause of CVE-2026-71324 is a desynchronization between Go's internal net/http client transport and the state of physical TCP sockets within Traefik's idle connection pool. When a client issues an HTTP/2 or HTTP/3 CONNECT request, Traefik forwards this request over an HTTP/1.1 socket managed by Go's net/http.Transport. If the backend processes the header and decides to reject the tunnel, it responds with a status code such as 401 Unauthorized or 405 Method Not Allowed.

Upon receiving this non-2xx response, the backend does not read or drain any data from the request body because it has already determined that the transaction has failed. Crucially, the backend leaves the connection open by supplying a keep-alive header. When the net/http.Transport reads the non-2xx response, it determines that the HTTP transaction is finished and returns the backend TCP socket directly to the shared idle connection pool.

However, the client's tunnel data has already been written to that same socket or is still being transmitted. Because the backend rejected the request without reading the remaining request body, those unconsumed bytes reside within the socket's receive buffer on the backend. This unconsumed payload contains complete, syntactically valid HTTP/1.1 requests drafted by the attacker. When another user's request is dispatched over this recycled connection, the backend processes the attacker's smuggled request first, leading to response poisoning.

Code Analysis

The vulnerability has been addressed across three separate pull requests. The first patch modifies the ForwardAuth middleware to prevent tunnel data from being sent to the authentication server when the length is unknown.

// pkg/middlewares/auth/forward.go
 
	forwardBody := fa.forwardBody
	// When a CONNECT method has a body with an unknown length we consider the bytes as tunnel data.
	// Therefore, we do not want to forward them to the auth server.
	if req.Method == http.MethodConnect && req.ContentLength < 0 {
		forwardBody = false
	}
 
	if forwardBody {
		forwardReq.ContentLength = req.ContentLength
		forwardReq.TransferEncoding = req.TransferEncoding
 
		bodyBytes, err := fa.readBodyBytes(req)

The second patch targets the core proxy implementation in pkg/server/service/proxy.go. It forces the proxy to set Close = true on outgoing CONNECT requests, ensuring the underlying socket is closed after the transaction and never returned to the pool.

// pkg/server/service/proxy.go
 
			// Adding the "Connection: close" header to the request ensures that we are not reusing the connection for
			// subsequent requests in case the backend does not support CONNECT and returns a 2xx response.
			if pr.Out.Method == http.MethodConnect {
				pr.Out.Close = true
			}

The third patch introduces a new handler, connectHandler, which acts as a deferral mechanism for the payload. It blocks delivery of the CONNECT body until the upstream server explicitly returns a successful 2xx status code.

// pkg/server/service/connect.go
 
func (h *connectHandler) ServeHTTP(rw http.ResponseWriter, req *http.Request) {
	if req.Method != http.MethodConnect {
		h.next.ServeHTTP(rw, req)
		return
	}
	// ...
	pipeReader, pipeWriter := io.Pipe()
	tunnel := &connectTunnel{in: pipeWriter, data: req.Body}
	// The Transport blocks on the empty pipe, preventing the body from reaching the backend
	req.Body = pipeReader
	h.next.ServeHTTP(&connectResponseWriter{ResponseWriter: rw, req: req, tunnel: tunnel}, req)
}

In the custom connectResponseWriter, if the status code is not 2xx, the tunnel is closed and the buffered payload bytes are discarded without being written to the socket.

Exploitation Methodology

To exploit this vulnerability, an attacker must identify a path where Traefik handles HTTP/2 or HTTP/3 traffic and forwards it to an HTTP/1.1 backend. The target endpoint must also be configured to reject the CONNECT method or return a keep-alive non-2xx status code. The attacker then structures an HTTP/2 CONNECT request where the payload is configured to look like a standard HTTP/1.1 GET or POST request.

Because the backend processes the buffered bytes first, it generates a response to the smuggled request first. The proxy maps this response to the first available active request on the connection, which belongs to the victim client. The victim then receives the response intended for the attacker's smuggled request, potentially exposing sensitive data or executing unauthorized scripts in the context of the victim's session.

Impact Assessment

The security impact of CVE-2026-71324 is classified as high. Successful exploitation leads to cross-user response poisoning, which breaks the fundamental isolation between different clients sharing the same proxy. An attacker can manipulate what a victim receives, potentially injecting malicious JavaScript to hijack accounts or redirect traffic.

The CVSS v4.0 base score is calculated as 7.0 (High). The vulnerability does not require authentication and has low attack complexity, although it requires specific preconditions such as an upstream backend that rejects CONNECT requests while maintaining keep-alive. The primary impact is classified under subsequent confidentiality and integrity, as arbitrary responses can be forced upon unrelated sessions.

In scenarios where the ForwardAuth middleware is active with forwardBody enabled, the auth pool is also exposed. An attacker could poison the authentication connection pool, causing subsequent users' credentials or sessions to be processed against incorrect context, or potentially bypassing authentication checks entirely.

Remediation & Mitigation Guidance

The primary recommendation is to upgrade Traefik instances to one of the patched releases: 2.11.53, 3.6.24, or 3.7.9. These updates contain the deferred body handling logic and connection closure configurations that prevent socket reuse after a rejected CONNECT transaction.

If patching is not immediately feasible, administrators can apply several mitigation strategies. Disabling HTTP/2 and HTTP/3 support on Traefik entrypoints prevents the processing of multiplexed CONNECT streams, which completely disables the primary attack vector. This can be configured by modifying the entrypoints section of the Traefik configuration file to only negotiate HTTP/1.1.

Additionally, if the ForwardAuth middleware is in use, verify that forwardBody and preserveRequestMethod are set to false. Deploying Web Application Firewall (WAF) rules to detect and drop incoming requests utilizing the CONNECT method can also prevent exploit attempts from reaching the proxy. These mitigations should be applied incrementally until a formal software upgrade is completed.

Official Patches

Traefik LabsPull request addressing CONNECT state deferral.
Traefik LabsPull request correcting ForwardAuth and FastProxy state logic.
Traefik LabsPull request regulating connection closure behavior for CONNECT requests.

Fix Analysis (3)

Technical Appendix

CVSS Score
7.0/ 10
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N

Affected Systems

Traefik Proxy (versions < 2.11.53)Traefik Proxy (versions 3.0.0 to 3.6.23)Traefik Proxy (versions 3.7.0 to 3.7.8)

Affected Versions Detail

Product
Affected Versions
Fixed Version
Traefik
Traefik Labs
< 2.11.532.11.53
Traefik
Traefik Labs
>= 3.0.0, < 3.6.243.6.24
Traefik
Traefik Labs
>= 3.7.0, < 3.7.93.7.9
AttributeDetail
CWE IDCWE-444
Attack VectorNetwork
CVSS v4.0 Score7.0 (High)
Exploit StatusProof-of-Concept
KEV StatusNot Listed
ImpactCross-User Response Poisoning

MITRE ATT&CK Mapping

T1557.002Adversary-in-the-Middle: HTTP Request Smuggling
Credential Access
CWE-444
Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling')

The product does not properly parse, interpret, or handle inconsistent or malformed HTTP requests, which may allow attackers to pass smuggled headers or commands across trust boundaries.

Known Exploits & Detection

GitHub Security AdvisoryOriginal security disclosure and analysis document.

Vulnerability Timeline

Patches drafted for body deferral and authorization corrections
2026-07-22
Patches drafted for connection pool closure limits
2026-07-23
Coordinated vulnerability advisory GHSA-3ccp-42pg-hgv6 published
2026-08-06
CVE-2026-71324 registered in the global CVE index
2026-08-06

References & Sources

  • [1]GHSA-3ccp-42pg-hgv6: Response poisoning via CONNECT requests
  • [2]CVE.org Authority Record for CVE-2026-71324
  • [3]Traefik v3.7.9 Release Notes

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•16 minutes ago•CVE-2026-54763
10.0

CVE-2026-54763: Authentication Bypass and Identity Spoofing in Traefik Middlewares via Header Normalization Discrepancies

A critical authentication bypass and context spoofing vulnerability exists in Traefik's BasicAuth, DigestAuth, and ForwardAuth middlewares prior to versions 2.11.51, 3.6.22, and 3.7.6. The flaw arises because Traefik's header cleanup mechanisms rely on Go's standard library header canonicalization, which does not modify or delete headers containing underscores. Consequently, unauthenticated remote attackers can inject custom underscore-variant headers (e.g., X_Auth_User) that bypass Traefik's stripping filters and reach backend application servers. When downstream backends normalize both hyphens and underscores into the same environment variables, the attacker's spoofed identity value is processed as trusted authorization data.

Alon Barad
Alon Barad
1 views•7 min read
•about 2 hours ago•GHSA-3X6R-WXXG-53VV
5.3

GHSA-3x6r-wxxg-53vv: Process-Fatal Nil Pointer Dereference in rclone WebDAV TUS Upload Backend

A critical process-fatal NULL pointer dereference vulnerability exists in the WebDAV backend of rclone (when configured with ownCloud Infinite Scale TUS uploads). During transport failures, a nil HTTP response pointer is dereferenced directly without validation, leading to an unhandled Go runtime panic that terminates the entire rclone daemon. This vulnerability was resolved in rclone version 1.75.0.

Amit Schendel
Amit Schendel
2 views•11 min read
•about 3 hours ago•GHSA-8V25-V8P6-QF7V
8.6

GHSA-8V25-V8P6-QF7V: Path Traversal in rclone S3 API Gateway Emulation

A path traversal vulnerability exists in the S3 emulation layer of rclone when executing the 'serve s3' subcommand. Because the application maps client-supplied S3 object keys containing relative directory sequences to file paths without proper boundary checks, an attacker can escape the logical containment of a target bucket. This enables unauthorized reading, writing, and deletion of files at the root level of the served storage directory.

Alon Barad
Alon Barad
3 views•5 min read
•about 4 hours ago•GHSA-8MXV-9XHP-86H4
5.3

GHSA-8MXV-9XHP-86H4: Information Disclosure and Credential Leakage during S3 HTTP Redirects in rclone

A critical security flaw was identified in rclone before version 1.75.0, where the custom S3 redirect handler failed to sanitize sensitive authentication headers and encryption keys during cross-host redirects or transport downgrades. This flaw allows attackers on the path or controlling target hosts to intercept sensitive IBM IAM tokens, AWS S3 Express tokens, and customer-provided server-side encryption keys (SSE-C).

Amit Schendel
Amit Schendel
3 views•7 min read
•about 5 hours ago•CVE-2026-71311
6.4

CVE-2026-71311: FTP Command Injection via Path CRLF Injection in rclone FTP Backend

A protocol-level CRLF injection vulnerability exists in rclone's FTP backend before version 1.75.0. When configured with a non-default filename encoding, rclone allows carriage return and line feed characters to pass directly into the underlying FTP client library. Because the library constructs line-oriented control commands without input validation, an attacker-controlled filename can inject arbitrary FTP commands into the session, allowing unauthorized file deletion and modification on the target server.

Amit Schendel
Amit Schendel
6 views•6 min read
•about 6 hours ago•GHSA-H4MF-4V27-HGGJ
7.4

GHSA-H4MF-4V27-HGGJ: WebDAV Credential Disclosure via Same-Host HTTPS-to-HTTP Redirect in rclone

A protocol downgrade vulnerability in rclone's WebDAV backend allows sensitive credentials, cookies, and authentication headers to be transmitted in cleartext. This occurs when a remote server redirects an HTTPS request to a plaintext HTTP URL on the same host, which the Go HTTP client default behavior permits without checking the protocol transport layer. This report provides a detailed technical analysis of the root cause, exploit mechanics, patch diff, and remediation strategies.

Amit Schendel
Amit Schendel
4 views•7 min read