cve.bz

CVE-2022-45060 Improper Input Validation

7.5 highEPSS 1.3%

High (7.5). EPSS 1.3% estimated probability of exploitation activity in the next 30 days.

On this page
An HTTP Request Forgery issue was discovered in Varnish Cache 5.x and 6.x before 6.0.11, 7.x before 7.1.2, and 7.2.x before 7.2.1. An attacker may introduce characters through HTTP/2 pseudo-headers that are invalid in the context of an HTTP/1 request line, causing the Varnish server to produce invalid HTTP/1 requests to the backend. This could, in turn, be used to exploit vulnerabilities in a server behind the Varnish server. Note: the 6.0.x LTS series (before 6.0.11) is affected.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
EPSS
1.3% (unchanged from 1.3% a week ago; 1.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 71st percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2025-05-01. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-20 Improper Input Validation
OWASP Top 10
A05:2025 Injection
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-2022-45060 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-45060?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-45060?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-2022-45060 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-software:varnish_cachefrom 6.0.0 before 6.0.11
varnish-software:varnish_cache_plus6.0.0
varnish-software:varnish_cache_plus6.0.0:r0
varnish-software:varnish_cache_plus6.0.0:r1
varnish-software:varnish_cache_plus6.0.0:r2
varnish-software:varnish_cache_plus6.0.1:r1
varnish-software:varnish_cache_plus6.0.1:r2
varnish-software:varnish_cache_plus6.0.1:r3
varnish-software:varnish_cache_plus6.0.1:r4
varnish-software:varnish_cache_plus6.0.1:r5
varnish-software:varnish_cache_plus6.0.2:r1
varnish-software:varnish_cache_plus6.0.3:r1
varnish-software:varnish_cache_plus6.0.3:r2
varnish-software:varnish_cache_plus6.0.3:r3
varnish-software:varnish_cache_plus6.0.3:r4
varnish-software:varnish_cache_plus6.0.3:r5
varnish-software:varnish_cache_plus6.0.3:r6
varnish-software:varnish_cache_plus6.0.3:r7
varnish-software:varnish_cache_plus6.0.3:r8
varnish-software:varnish_cache_plus6.0.3:r9
varnish-software:varnish_cache_plus6.0.4:r1
varnish-software:varnish_cache_plus6.0.4:r2
varnish-software:varnish_cache_plus6.0.4:r3
varnish-software:varnish_cache_plus6.0.5:r1
varnish-software:varnish_cache_plus6.0.5:r2
varnish-software:varnish_cache_plus6.0.5:r3
varnish-software:varnish_cache_plus6.0.6:r1
varnish-software:varnish_cache_plus6.0.6:r10
varnish-software:varnish_cache_plus6.0.6:r2
varnish-software:varnish_cache_plus6.0.6:r3
varnish-software:varnish_cache_plus6.0.6:r4
varnish-software:varnish_cache_plus6.0.6:r5
varnish-software:varnish_cache_plus6.0.6:r6
varnish-software:varnish_cache_plus6.0.6:r7
varnish-software:varnish_cache_plus6.0.6:r8
varnish-software:varnish_cache_plus6.0.6:r9
varnish-software:varnish_cache_plus6.0.7:r1
varnish-software:varnish_cache_plus6.0.7:r2
varnish-software:varnish_cache_plus6.0.7:r3
varnish-software:varnish_cache_plus6.0.8:r1
varnish-software:varnish_cache_plus6.0.8:r2
varnish-software:varnish_cache_plus6.0.8:r3
varnish-software:varnish_cache_plus6.0.8:r4
varnish-software:varnish_cache_plus6.0.8:r5
varnish-software:varnish_cache_plus6.0.8:r6
varnish-software:varnish_cache_plus6.0.8:r7
varnish-software:varnish_cache_plus6.0.9:r1
varnish-software:varnish_cache_plus6.0.9:r2
varnish-software:varnish_cache_plus6.0.9:r3
varnish-software:varnish_cache_plus6.0.9:r4
varnish-software:varnish_cache_plus6.0.9:r5
varnish-software:varnish_cache_plus6.0.9:r6
varnish-software:varnish_cache_plus6.0.9:r7
varnish-software:varnish_cache_plus6.0.10:r1
varnish-software:varnish_cache_plus6.0.10:r2
varnish_cache_project:varnish_cachefrom 5.0.0 before 6.0.11
varnish_cache_project:varnish_cachefrom 7.0.0 before 7.1.2
varnish_cache_project:varnish_cache7.2.0
fedoraproject:fedora35
fedoraproject:fedora36
fedoraproject:fedora37
debian:debian_linux10.0
debian:debian_linux11.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10varnish6.1.1-1+deb10u4DLA-3208-1
Debian11varnish6.5.1-1+deb11u3DSA-5334-1
Debian12, 13varnish7.1.1-1.1DEBIAN-CVE-2022-45060
UbuntuPro:18.04:LTSvarnish5.2.1-1ubuntu0.1+esm1UBUNTU-CVE-2022-45060 USN-7372-1
UbuntuPro:20.04:LTSvarnish6.2.1-2ubuntu0.2+esm1UBUNTU-CVE-2022-45060 USN-7372-1
UbuntuPro:22.04:LTSvarnish6.6.1-1ubuntu0.2+esm1UBUNTU-CVE-2022-45060 USN-7372-1
Red Hatenterprise_linux:8::appstreamvarnish, varnish-docs, varnish-devel0:6.0.8-2.module+el8.7.0+17239+94d153bd.1RHSA-2022:8649
Red Hatenterprise_linux:8::appstreamvarnish-modules, varnish-modules-debuginfo, varnish-modules-debugsource0:0.15.0-6.module+el8.5.0+11976+0b4af72dRHSA-2022:8649
Red Hatenterprise_linux:9::appstreamvarnish, varnish-docs0:6.6.2-2.el9_1.1RHSA-2022:8643
Red Hatenterprise_linux:9::crbvarnish-devel0:6.6.2-2.el9_1.1RHSA-2022:8643
Red Hatrhel_aus:8.2::appstream, rhel_e4s:8.2::appstream, rhel_tus:8.2::appstreamvarnish, varnish-docs, varnish-devel0:6.0.2-2.module+el8.2.0+17242+97092129.2RHSA-2022:8646
Red Hatrhel_aus:8.2::appstream, rhel_e4s:8.2::appstream, rhel_tus:8.2::appstreamvarnish-modules, varnish-modules-debuginfo, varnish-modules-debugsource0:0.15.0-4.module+el8+2481+4078e9d2RHSA-2022:8646
Red Hatrhel_e4s:8.1::appstreamvarnish, varnish-docs, varnish-devel0:6.0.2-2.module+el8.1.0+17243+35307414.2RHSA-2022:8647
Red Hatrhel_e4s:8.1::appstreamvarnish-modules, varnish-modules-debuginfo, varnish-modules-debugsource0:0.15.0-4.module+el8+2481+4078e9d2RHSA-2022:8647
Red Hatrhel_eus:8.4::appstreamvarnish, varnish-docs, varnish-devel0:6.0.6-2.module+el8.4.0+17241+96fc0d9c.3RHSA-2022:8645
Red Hatrhel_eus:8.4::appstreamvarnish-modules, varnish-modules-debuginfo, varnish-modules-debugsource0:0.15.0-5.module+el8.3.0+6843+b3b42fccRHSA-2022:8645
Red Hatrhel_eus:8.6::appstreamvarnish, varnish-docs, varnish-devel0:6.0.8-2.module+el8.6.0+17240+b7b5e45c.1RHSA-2022:8650
Red Hatrhel_eus:8.6::appstreamvarnish-modules, varnish-modules-debuginfo, varnish-modules-debugsource0:0.15.0-6.module+el8.5.0+11976+0b4af72dRHSA-2022:8650
3 more for Red Hat in the JSON and on Red Hat's page.
SUSEPackage Hub 15 SP4varnish7.2.1-bp154.2.9.1openSUSE-SU-2022:10198-1
openSUSELeap 15.4varnish7.2.1-bp154.2.9.1openSUSE-SU-2022:10198-1
openSUSETumbleweedvarnish7.2.1-1.1openSUSE-SU-2024:12496-1
openSUSETumbleweedvinyl-cache9.0.0-1.1openSUSE-SU-2026:10751-1
AlmaLinux8varnish, varnish-docs, varnish-devel6.0.8-2.module_el8.7.0+3353+b11d8f2f.1ALSA-2022:8649
AlmaLinux8varnish-modules0.15.0-6.module_el8.5.0+2620+03a0c2ccALSA-2022:8649
AlmaLinux8varnish-modules0.15.0-6.module_el8.5.0+76+a10ffa55ALSA-2022:8649
AlmaLinux8varnish-modules0.15.0-6.module_el8.6.0+3089+dac88e97ALSA-2022:8649
AlmaLinux9varnish, varnish-docs, varnish-devel6.6.2-2.el9_1.1ALSA-2022:8643
Rocky Linux8varnish0:6.0.8-2.module+el8.7.0+1094+66cdd070.1RLSA-2022:8649
Rocky Linux8varnish-modules0:0.15.0-6.module+el8.5.0+677+2a78a869RLSA-2022:8649
Rocky Linux9varnish0:6.6.2-2.el9_1.1RLSA-2022:8643
Alpinev3.17, v3.18, v3.19 and 5 morevarnish7.2.1-r0ALPINE-CVE-2022-45060

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; AlmaLinux's OSV database, MIT; 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

The following mitigation can be applied under the impossibility of update the varnish package:

1) Add the following snippet under vcl_recv VCL function at /etc/varnish/default.vcl

~~~

if (req.url ~ "(^$)|[ \t]+" || req.method ~ "(^$)|[ \t]+") {

return (synth(400));

}

~~~

2) Restart the varnish service by running the following command as a privileged user:

~~~

systemctl restart varnish

~~~

The VCL script above will check by any invalid character or pseudo-header values and when found it will return a synthetic HTTP error code 400.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8varnish:6-8070020221114151716.bd1311edFixed 2022-11-28RHSA-2022:8649
Red Hat Enterprise Linux 8.1 Update Services for SAP Solutionsvarnish:6-8010020221114160433.c27ad7f8Fixed 2022-11-28RHSA-2022:8647
Red Hat Enterprise Linux 8.2 Advanced Update Supportvarnish:6-8020020221114155218.4cda2c84Fixed 2022-11-28RHSA-2022:8646
Red Hat Enterprise Linux 8.2 Telecommunications Update Servicevarnish:6-8020020221114155218.4cda2c84Fixed 2022-11-28RHSA-2022:8646
Red Hat Enterprise Linux 8.2 Update Services for SAP Solutionsvarnish:6-8020020221114155218.4cda2c84Fixed 2022-11-28RHSA-2022:8646
Red Hat Enterprise Linux 8.4 Extended Update Supportvarnish:6-8040020221114153543.522a0ee4Fixed 2022-11-28RHSA-2022:8645
Red Hat Enterprise Linux 8.6 Extended Update Supportvarnish:6-8060020221114152527.ad008a3aFixed 2022-11-28RHSA-2022:8650
Red Hat Enterprise Linux 9varnish-0:6.6.2-2.el9_1.1Fixed 2022-11-28RHSA-2022:8643
Red Hat Enterprise Linux 9.0 Extended Update Supportvarnish-0:6.6.2-2.el9_0.1Fixed 2022-11-28RHSA-2022:8644
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-varnish6-varnish-0:6.0.8-2.el7.2Fixed 2023-02-08RHSA-2023:0673

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-2022-45060.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-20 (51).

References

Check your stackJSON