CVSS 3.1
6.5 mediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:NMedium (6.5). EPSS 1.6% estimated probability of exploitation activity in the next 30 days.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:NExplain 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.
From the NVD's CPE matches.
| Product | Affected |
|---|---|
| varnish-cache:varnish_cache | from 6.0.0 before 6.0.8 |
| varnish-cache:varnish_cache | 6.0.8:r1 |
| varnish-cache:varnish_cache | 6.0.8:r2 |
| varnish-software:varnish_cache | from 6.0.0 through 6.0.5 |
| varnish-software:varnish_cache | from 6.0.0 through 6.0.7 |
| varnish_cache_project:varnish_cache | from 5.0.0 through 5.2.1 |
| varnish_cache_project:varnish_cache | from 6.1.0 through 6.6.0 |
| fedoraproject:fedora | 33 |
| fedoraproject:fedora | 34 |
| debian:debian_linux | 10.0 |
| debian:debian_linux | 11.0 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 10 | varnish | 6.1.1-1+deb10u3 | DSA-5088-1 |
| Debian | 11 | varnish | 6.5.1-1+deb11u2 | DSA-5088-1 |
| Debian | 12, 13 | varnish | 6.5.2-1 | DEBIAN-CVE-2021-36740 |
| Ubuntu | 18.04:LTS | varnish | 5.2.1-1ubuntu0.1 | USN-5474-1 |
| Ubuntu | 20.04:LTS | varnish | 6.2.1-2ubuntu0.1 | UBUNTU-CVE-2021-36740 USN-5474-1 |
| Ubuntu | 22.04:LTS | varnish | 6.6.1-1ubuntu0.2 | USN-5474-1 |
| Red Hat | enterprise_linux:8::appstream | varnish, varnish-docs, varnish-devel | 0:6.0.6-2.module+el8.4.0+11921+1a6539fc.1 | RHSA-2021:2988 |
| Red Hat | enterprise_linux:8::appstream | varnish-modules, varnish-modules-debuginfo, varnish-modules-debugsource | 0:0.15.0-5.module+el8.3.0+6843+b3b42fcc | RHSA-2021:2988 |
| Red Hat | rhel_eus:8.1::appstream | varnish, varnish-docs, varnish-devel | 0:6.0.2-2.module+el8.1.0+11974+ea5ba4f1 | RHSA-2021:2988 |
| Red Hat | rhel_eus:8.1::appstream, rhel_eus:8.2::appstream | varnish-modules, varnish-modules-debuginfo, varnish-modules-debugsource | 0:0.15.0-4.module+el8+2481+4078e9d2 | RHSA-2021:2988 |
| Red Hat | rhel_eus:8.2::appstream | varnish, varnish-docs, varnish-devel | 0:6.0.2-2.module+el8.2.0+11973+a748eca7 | RHSA-2021:2988 |
| Red Hat | rhel_software_collections:3::el7 | rh-varnish6-varnish, rh-varnish6-varnish-docs, rh-varnish6-varnish-libs and 1 more | 0:6.0.8-2.el7 | RHSA-2021:2993 |
| Red Hat | rhel_software_collections:3::el7 | rh-varnish6-varnish-modules, rh-varnish6-varnish-modules-debuginfo | 0:0.15.0-7.el7 | RHSA-2021:2993 |
| SUSE | Package Hub 15 SP3 | varnish | 7.1.0-bp153.2.3.1 | openSUSE-SU-2022:0148-1 |
| openSUSE | Leap 15.3 | varnish | 7.1.0-bp153.2.3.1 | openSUSE-SU-2022:0148-1 |
| Rocky Linux | 8 | varnish | 0:6.0.6-2.module+el8.3.0+179+20b582cc | RLSA-2021:2988 |
| Rocky Linux | 8 | varnish-modules | 0:0.15.0-5.module+el8.3.0+179+20b582cc | RLSA-2021:2988 |
| Alpine | v3.11, v3.12, v3.13 | varnish | 6.5.2-r0 | ALPINE-CVE-2021-36740 |
| Alpine | v3.14, v3.15, v3.16 and 8 more | varnish | 6.6.1-r0 | ALPINE-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 rates this Important.
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";
}
~~~
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 8 | varnish:6-8040020210722190209.522a0ee4 | Fixed 2021-08-02 | RHSA-2021:2988 |
| Red Hat Enterprise Linux 8.1 Extended Update Support | varnish:6-8010020210726155835.c27ad7f8 | Fixed 2021-08-02 | RHSA-2021:2988 |
| Red Hat Enterprise Linux 8.2 Extended Update Support | varnish:6-8020020210726155330.4cda2c84 | Fixed 2021-08-02 | RHSA-2021:2988 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-varnish6-varnish-0:6.0.8-2.el7 | Fixed 2021-08-03 | RHSA-2021:2993 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-varnish6-varnish-modules-0:0.15.0-7.el7 | Fixed 2021-08-03 | RHSA-2021:2993 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.7 EUS | rh-varnish6-varnish-0:6.0.8-2.el7 | Fixed 2021-08-03 | RHSA-2021:2993 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.7 EUS | rh-varnish6-varnish-modules-0:0.15.0-7.el7 | Fixed 2021-08-03 | RHSA-2021:2993 |
| Red Hat Enterprise Linux 9 | varnish | Not 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.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.