CVE Database›Document archive›CVE-2021-36740

CVE-2021-36740

varnish: HTTP/2 request smuggling attack via a large Content-Length header for a POST request

Loading…

Severity

Important

Red Hat Product Security

8.1

CVSS 3.1

Review impact separately from score.

Published · July 13, 2021

Updated · November 2, 2026

Description

A flaw was found in Varnish. The Varnish Cache, with HTTP/2 enabled, allows request smuggling and VCL authorization bypass via a large Content-Length header for a POST request. As a result, this flaw allows the information on the Varnish cache to be poisoned. The highest threat from this vulnerability is to confidentiality, integrity, as well as system availability.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

This issue can be mitigated by:

  1. Disabling HTTP/2 request support by executing:
sudo varnishadm param.set feature -http2
  1. Disabling backend connection reuse on varnish side, the following rule can be inserted into Varnish configuration:
sub vcl_backend_fetch {
      set bereq.http.Connection = "close";
}

CVSS / CWE

CVSS 3.1 · 8.1
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

CWE-444 · Inconsistent Interpretation of HTTP Requests