REDHAT-BUG-2532644: High severity HAProxy HAProxy vulnerability
An issue was discovered in HAProxy 3.3.0 through 3.4.4 and in 3.5-dev1 through 3.5-dev5. Exploitation requires an HTTP/3 frontend: HAProxy must be built with QUIC support and configured with a QUIC bind listener, and the affected traffic must reach a backend over HTTP/1.1 using chunked transfer coding on a reused connection. Under those conditions, when an HTTP/3 request carries no Content-Length header, the HTTP/3 multiplexer credits the length declared in a DATA frame header to the stream endpoint's known-input-payload estimate at the moment the frame header is decoded, before the payload has been received, and that declared length is emitted verbatim as the HTTP/1.1 chunk size. A remote unauthenticated client that declares more payload than it delivers and then ends the stream causes HAProxy to announce a chunk larger than the bytes it writes and to return the connection to the idle pool in a desynchronized state. The result is potential HTTP request smuggling on reused backend connections: an attacker can place a request past a frontend rule such as a path-based http-request deny, so that the smuggled request is never seen by HAProxy's HTTP analysis, and can cause concurrent clients' requests, including their request lines and Authorization headers, to be consumed as the attacker's request body and lost. Exploitation is not deterministic; it depends on a race with backend connection pooling, succeeding in a majority of but not all trials during testing, and can be retried freely. The mechanism was introduced in 3.3-dev10; releases 3.2.x and earlier are unaffected.
Affected Software
Event History
Frequently Asked Questions
Which HAProxy deployments are exposed to this issue?
Exposure requires an HTTP/3 frontend, an HAProxy build with QUIC support, and a configured QUIC bind listener. The affected request must then be sent to a backend over HTTP/1.1 using chunked transfer coding on a reused connection.
Does exploitation require authentication or a privileged position?
No. A remote unauthenticated client can trigger the issue by sending an HTTP/3 request without a Content-Length header, declaring more DATA-frame payload than it delivers, and then ending the stream.
What can an attacker achieve if exploitation succeeds?
The backend connection can be returned to the idle pool in a desynchronized state, enabling potential request smuggling on reused backend connections. A smuggled request may bypass HAProxy HTTP analysis and frontend rules such as path-based http-request deny rules.
What configurations reduce exposure if an update cannot be applied immediately?
The described exploit path depends on HTTP/3/QUIC being enabled at the frontend and HTTP/1.1 chunked traffic being sent over reused backend connections. Deployments without a QUIC-enabled HTTP/3 listener do not meet the stated exploitation requirements.