Out-of-bounds Read in Squid-Cache Squid
CVE-2019-12529
An issue was discovered in Squid 2.x through 2.7.STABLE9, 3.x through 3.5.28, and 4.x through 4.7. When Squid is configured to use Basic Authentication, the Proxy-Authorization header is parsed via uudecode. uudecode determines how many bytes will be decoded by iterating over the input and checking its table. The length is then used to start decoding the string. There are no checks to ensure that the length it calculates isn't greater than the input buffer. This leads to adjacent memory being decoded as well. An attacker would not be able to retrieve the decoded data unless the Squid maintainer had configured the display of usernames on error pages.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.9 (Medium). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N.
EPSS exploit prediction
EPSS 0.078, 94.7th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Squid-Cache Squid — versions 2.7
- Canonical Ubuntu Linux — versions 12.04, 16.04, 18.04
- Debian Linux — versions 8.0, 9.0, 10.0
- Fedoraproject Fedora — versions 29
- openSUSE Leap — versions 15.0, 15.1
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 1 other repository (ARPSyndicate/cve-scores). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- www.squid-cache.org/Versions/v4/changesets/ (Vendor Advisory)
- github.com/squid-cache/squid/commits/v4 (Patch, Third Party Advisory)
- www.squid-cache.org/Versions/v4/changesets/squid-4-dd46b5417809647f561d8a5e0e74… (Patch, Vendor Advisory)
- USN-4065-1 (vendor-advisory, Third Party Advisory)
- [debian-lts-announce] 20190720 [SECURITY] [DLA 1858-1] squid3 security update (mailing-list, Mailing List, Third Party Advisory)
- USN-4065-2 (vendor-advisory, Third Party Advisory)
- FEDORA-2019-cb50bcc189 (vendor-advisory)
- DSA-4507 (vendor-advisory, Third Party Advisory)
- 20190825 [SECURITY] [DSA 4507-1] squid security update (mailing-list, Mailing List, Third Party Advisory)
- openSUSE-SU-2019:2540 (vendor-advisory, Mailing List, Third Party Advisory)