Denial of Service and request header misinterpretation in HTTP/2 trailer handling Security

Published December 1, 2026.

Overview

Since version 6.0.15r1, Varnish Enterprise has had minimal support for HTTP/2 request trailers. A client may send a final block of header fields, the trailers, after the request body. Varnish Enterprise decodes the trailer block to keep its HPACK compression state in sync with the client, and then throws the trailer fields away.

Several problems in how trailers were handled could be exploited by a malicious HTTP/2 client:

  • Trailer decoding errors were ignored. A trailer block that failed to decode was logged and then accepted, and the connection carried on. This left the connection running with an HPACK table that may no longer match the client’s.

  • Concurrent writes to the request log buffer. Errors in a trailer block could be logged from one thread while another thread was logging for the same request, causing a panic.

  • Unfinished trailer block on a closed stream. A trailer block that was left unfinished when the response completed caused a panic when the stream was cleaned up.

The attack vector only exists if HTTP/2 support is enabled by setting the feature parameter to contain +http2. HTTP/2 support is disabled by default.

Varnish Cache is not affected by this vulnerability, as it does not accept HTTP/2 request trailers.

This was discovered by Varnish Software during internal testing.

Impact

The ignored trailer decoding errors leave the client and the server with different views of the HPACK table. Varnish Enterprise may then decode the header fields of later requests on the same connection differently from how the client encoded them.

The other two issues can be used as a Denial of Service attack vector by malicious clients. Each of them makes the Varnish Enterprise child process panic and restart. All ongoing transactions are lost, as is any cache content that is not persisted.

Two threads writing to the same log buffer is undefined behavior. We have only seen it result in an assertion failure. The records written from the session thread have fixed contents and are not controlled by the client.

The vulnerability has been given a severity rating of medium.

Status

Affected software versions

  • Varnish Enterprise 6.0 series from version 6.0.15r1 up to and including 6.0.18r5.

Resolved in

  • Varnish Enterprise 6.0.18r6 (released 2026-10-12)

Solution

The recommended solution is to upgrade Varnish to one of the versions where this issue has been resolved, and then ensure that Varnish is restarted.

Mitigation

If upgrading is not possible, the vulnerability can be avoided by disabling HTTP/2 support:

  • at runtime by issuing varnishadm param.set feature -http2

  • persistently by removing -p feature=+http2 from the varnishd startup parameters

You must also remove h2 from the list of protocols if your TLS terminator is advertising it with ALPN.

Timeline

2026-10-06

  • A crash in the handling of HTTP/2 request trailers is found while fuzzing.

2026-10-07

  • A review of the HTTP/2 trailer handling finds more issues.

2026-10-12

  • Varnish Enterprise 6.0.18r6 is released, fixing the vulnerability.

2026-12-01

  • Public announcement.

References


®Varnish Software, Wallingatan 12, 111 60 Stockholm, Organization nr. 556805-6203