Bug 1730528 (CVE-2019-12529) - CVE-2019-12529 squid: Out of bounds read in Proxy-Authorization header causes DoS
Summary: CVE-2019-12529 squid: Out of bounds read in Proxy-Authorization header causes...
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2019-12529
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1730529 1738580 1738581
Blocks: 1730537
TreeView+ depends on / blocked
 
Reported: 2019-07-17 04:14 UTC by Dhananjay Arunesh
Modified: 2021-02-16 21:42 UTC (History)
7 users (show)

Fixed In Version: squid 4.8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-11-04 02:21:34 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2020:4743 0 None None None 2020-11-04 03:31:15 UTC

Description Dhananjay Arunesh 2019-07-17 04:14:59 UTC
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.

Reference:
http://www.squid-cache.org/Versions/v4/changesets/
https://github.com/squid-cache/squid/commits/v4

Upstream commit:
http://www.squid-cache.org/Versions/v4/changesets/squid-4-dd46b5417809647f561d8a5e0e74c3aacd235258.patch

Comment 1 Dhananjay Arunesh 2019-07-17 04:15:59 UTC
Created squid tracking bugs for this issue:

Affects: fedora-all [bug 1730529]

Comment 2 Cedric Buissart 2019-08-07 10:08:32 UTC
External References:

http://www.squid-cache.org/Advisories/SQUID-2019_2.txt

Comment 3 Cedric Buissart 2019-08-07 13:48:56 UTC
Mitigation:

Remove 'auth_param basic ...' configuration settings from squid.conf

Comment 6 Product Security DevOps Team 2020-11-04 02:21:34 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2019-12529

Comment 7 errata-xmlrpc 2020-11-04 03:31:12 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2020:4743 https://access.redhat.com/errata/RHSA-2020:4743


Note You need to log in before you can comment on or make changes to this bug.