Integer overflow in Squid - CVE-2020-11945

 

Integer overflow in Squid - CVE-2020-11945

Published: May 11, 2020


Vulnerability identifier: #VU27666
CSH Severity: High
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2020-11945
CWE-ID: CWE-190
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to integer overflow when processing HTTP Digest Authentication tokens, if memory pooling is disabled. A remote attacker can pass a specially crafted authentication nonce and execute arbitrary code on the server through the free'd nonce credentials.

In case memory pooling is enabled, a remote attacker can replay a sniffed Digest Authentication nonce to gain access  to resources that are otherwise forbidden.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.



Affected software

Squid
Amazon Linux AMI
Gentoo Linux
CentOS
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for Power, big endian
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux Workstation
Red Hat Enterprise Linux Server
Anolis OS
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for ARM 64
Red Hat Enterprise Linux for x86_64 - Extended Update Support
Red Hat Enterprise Linux for IBM z Systems - Extended Update Support
Red Hat Enterprise Linux for Power, little endian - Extended Update Support
Red Hat Enterprise Linux for ARM 64 - Extended Update Support
Opensuse
openEuler
Fedora
squid (Debian package)
squid (Alpine package)
squid (Red Hat package)
squid3 (Ubuntu package)
squid (Ubuntu package)
Red Hat Enterprise Linux Server for x86_64 - Update Services for SAP Solutions
Red Hat Enterprise Linux Server for Power LE - Update Services for SAP Solutions
squid
squid-migration-script
squid-sysvinit
squid-debugsource
squid-debuginfo

How to mitigate CVE-2020-11945

Install updates from vendor's website.

Squid - addressed in versions 4.11, 5.0.2
squid (Debian package) - update to 4.6-1+deb10u2
squid (Red Hat package) - update to 3.5.20-15.el7_8.1
squid3 (Ubuntu package) - addressed in versions 3.5.12-1ubuntu7.11, 3.5.27-1ubuntu1.6
squid (Ubuntu package) - addressed in versions 4.8-1ubuntu2.3, 4.10-1ubuntu1.1
squid - update to 3.5.20-17
squid-migration-script - update to 3.5.20-17
squid-sysvinit - update to 3.5.20-17
squid - update to 4.9-5
squid-debugsource - update to 4.9-5
squid-debuginfo - update to 4.9-5
squid - addressed in versions 4.11-1.fc30, 4.11-1.fc31, 4.11-1.fc32

External References

Related Security Bulletins