PT-2019-5326 · Squid+7 · Squid+8

Published

2019-07-11

·

Updated

2024-06-15

·

CVE-2019-12525

CVSS v3.1

9.8

Critical

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions Squid versions 3.3.9 through 3.5.28 Squid versions 4.x through 4.7
Description An issue was discovered in Squid when it is configured to use Digest authentication. It parses the header Proxy-Authorization and searches for certain tokens such as domain, uri, and qop. Squid checks if this token's value starts with a quote and ends with one, and if so, it performs a memcpy of its length minus 2. However, Squid never checks whether the value is just a single quote, leading to a memcpy of its length minus 1. This can cause a buffer overflow in memory, potentially allowing a remote attacker to cause a denial of service or execute arbitrary code.
Recommendations For Squid versions 3.3.9 through 3.5.28, consider disabling the Digest authentication mechanism until a patch is available. For Squid versions 4.x through 4.7, consider disabling the Digest authentication mechanism until a patch is available. As a temporary workaround, consider restricting access to the Proxy-Authorization header to minimize the risk of exploitation. At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Buffer Overflow

Memory Corruption

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

ALSA-2020:2041
ALT-PU-2019-2264
ALT-PU-2019-2271
BDU:2020-02395
CESA-2020_2040
CESA-2020_2041
CVE-2019-12525
DLA-1858-1
DLA-2278-1
DSA-4507-1
MGASA-2019-0265
MGASA-2019-0266
OPENSUSE-SU-2019:2540-1
OPENSUSE-SU-2019:2541-1
OPENSUSE-SU-2019_2540-1
OPENSUSE-SU-2019_2541-1
OPENSUSE-SU-2024:11403-1
RHSA-2020:2040
RHSA-2020:2041
RHSA-2020_2040
RHSA-2020_2041
RLSA-2020:2041
SUSE-SU-2019:2089-1
SUSE-SU-2019:2089-2
SUSE-SU-2019:2975-1
SUSE-SU-2019_2089-1
SUSE-SU-2020:14460-1
USN-4065-1
USN-4065-2

Affected Products

Alt Linux
Almalinux
Centos
Red Hat
Rocky Linux
Squid
Squid Cache
Suse
Ubuntu