Resource management error in Squid - CVE-2021-31807

 

Resource management error in Squid - CVE-2021-31807

Published: May 26, 2021 / Updated: October 21, 2021


Vulnerability identifier: #VU53599
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2021-31807
CWE-ID: CWE-399
Exploitation vector: Remote access
Exploit availability: Public exploit is available

Vulnerability details

The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.

The vulnerability exists due to improper management of memory within the application when processing HTTP Range header. A remote attacker can pass specially crafted data to the application and perform a denial of service (DoS) attack.


Affected software

Squid
Gentoo Linux
Amazon Linux AMI
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for ARM 64
Anolis OS
Debian Linux
Ubuntu
Fedora
squid3 (Debian package)
squid (Debian package)
libecap
libecap-devel
squid
squid (Ubuntu package)

How to mitigate CVE-2021-31807

Install updates from vendor's website.

Squid - addressed in versions 4.15, 5.0.6
squid3 (Debian package) - update to 3.5.23-5+deb9u7
squid (Debian package) - update to 4.6-1+deb10u6
libecap - update to 1.0.1-2.0.1
libecap-devel - update to 1.0.1-2.0.1
squid - update to 3.5.20-17.44
squid - addressed in versions 4.15-1.fc33, 5.0.6-1.fc34
squid - update to 4.15-3
squid (Ubuntu package) - addressed in versions 3.5.27-1ubuntu1.11, 4.10-1ubuntu1.4, 4.13-1ubuntu2.2, 4.13-1ubuntu4.1

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins