cve.bz

CVE-2021-36740 HTTP Request Smuggling

6.5 mediumEPSS 1.6%Fix available

Medium (6.5). EPSS 1.6% estimated probability of exploitation activity in the next 30 days.

On this page
Varnish Cache, with HTTP/2 enabled, allows request smuggling and VCL authorization bypass via a large Content-Length header for a POST request. This affects Varnish Enterprise 6.0.x before 6.0.8r3, and Varnish Cache 5.x and 6.x before 6.5.2, 6.6.x before 6.6.1, and 6.0 LTS before 6.0.8.

Severity

CVSS 3.1

6.5 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
EPSS
1.6% (unchanged from 1.6% a week ago; 1.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 76th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-444 Inconsistent Interpretation of HTTP Requests (HTTP Request Smuggling)
OWASP Top 10
A06:2025 Insecure Design
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-36740 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-36740?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-36740?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-36740 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
varnish-cache:varnish_cachefrom 6.0.0 before 6.0.8
varnish-cache:varnish_cache6.0.8:r1
varnish-cache:varnish_cache6.0.8:r2
varnish-software:varnish_cachefrom 6.0.0 through 6.0.5
varnish-software:varnish_cachefrom 6.0.0 through 6.0.7
varnish_cache_project:varnish_cachefrom 5.0.0 through 5.2.1
varnish_cache_project:varnish_cachefrom 6.1.0 through 6.6.0
fedoraproject:fedora33
fedoraproject:fedora34
debian:debian_linux10.0
debian:debian_linux11.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10varnish6.1.1-1+deb10u3DSA-5088-1
Debian11varnish6.5.1-1+deb11u2DSA-5088-1
Debian12, 13varnish6.5.2-1DEBIAN-CVE-2021-36740
Ubuntu18.04:LTSvarnish5.2.1-1ubuntu0.1USN-5474-1
Ubuntu20.04:LTSvarnish6.2.1-2ubuntu0.1UBUNTU-CVE-2021-36740 USN-5474-1
Ubuntu22.04:LTSvarnish6.6.1-1ubuntu0.2USN-5474-1
Red Hatenterprise_linux:8::appstreamvarnish, varnish-docs, varnish-devel0:6.0.6-2.module+el8.4.0+11921+1a6539fc.1RHSA-2021:2988
Red Hatenterprise_linux:8::appstreamvarnish-modules, varnish-modules-debuginfo, varnish-modules-debugsource0:0.15.0-5.module+el8.3.0+6843+b3b42fccRHSA-2021:2988
Red Hatrhel_eus:8.1::appstreamvarnish, varnish-docs, varnish-devel0:6.0.2-2.module+el8.1.0+11974+ea5ba4f1RHSA-2021:2988
Red Hatrhel_eus:8.1::appstream, rhel_eus:8.2::appstreamvarnish-modules, varnish-modules-debuginfo, varnish-modules-debugsource0:0.15.0-4.module+el8+2481+4078e9d2RHSA-2021:2988
Red Hatrhel_eus:8.2::appstreamvarnish, varnish-docs, varnish-devel0:6.0.2-2.module+el8.2.0+11973+a748eca7RHSA-2021:2988
Red Hatrhel_software_collections:3::el7rh-varnish6-varnish, rh-varnish6-varnish-docs, rh-varnish6-varnish-libs and 1 more0:6.0.8-2.el7RHSA-2021:2993
Red Hatrhel_software_collections:3::el7rh-varnish6-varnish-modules, rh-varnish6-varnish-modules-debuginfo0:0.15.0-7.el7RHSA-2021:2993
SUSEPackage Hub 15 SP3varnish7.1.0-bp153.2.3.1openSUSE-SU-2022:0148-1
openSUSELeap 15.3varnish7.1.0-bp153.2.3.1openSUSE-SU-2022:0148-1
Rocky Linux8varnish0:6.0.6-2.module+el8.3.0+179+20b582ccRLSA-2021:2988
Rocky Linux8varnish-modules0:0.15.0-5.module+el8.3.0+179+20b582ccRLSA-2021:2988
Alpinev3.11, v3.12, v3.13varnish6.5.2-r0ALPINE-CVE-2021-36740
Alpinev3.14, v3.15, v3.16 and 8 morevarnish6.6.1-r0ALPINE-CVE-2021-36740

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Important.

Red Hat's mitigation

This issue can be mitigated by:

1) Disabling HTTP/2 request support by executing:

~~~

sudo varnishadm param.set feature -http2

~~~

2) 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";

}

~~~

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8varnish:6-8040020210722190209.522a0ee4Fixed 2021-08-02RHSA-2021:2988
Red Hat Enterprise Linux 8.1 Extended Update Supportvarnish:6-8010020210726155835.c27ad7f8Fixed 2021-08-02RHSA-2021:2988
Red Hat Enterprise Linux 8.2 Extended Update Supportvarnish:6-8020020210726155330.4cda2c84Fixed 2021-08-02RHSA-2021:2988
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-varnish6-varnish-0:6.0.8-2.el7Fixed 2021-08-03RHSA-2021:2993
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-varnish6-varnish-modules-0:0.15.0-7.el7Fixed 2021-08-03RHSA-2021:2993
Red Hat Software Collections for Red Hat Enterprise Linux 7.7 EUSrh-varnish6-varnish-0:6.0.8-2.el7Fixed 2021-08-03RHSA-2021:2993
Red Hat Software Collections for Red Hat Enterprise Linux 7.7 EUSrh-varnish6-varnish-modules-0:0.15.0-7.el7Fixed 2021-08-03RHSA-2021:2993
Red Hat Enterprise Linux 9varnishNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-36740.

Attack patterns (CAPEC)

  • CAPEC-33 HTTP Request Smuggling Likelihood: Medium · Severity: High
  • CAPEC-273 HTTP Response Smuggling Likelihood: Medium · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON