Rapid7 Vulnerability & Exploit Database

Red Hat: CVE-2019-12521: CVE-2019-12521 squid: Off-by-one error in addStackElement allows for heap buffer overflow and crash (Multiple Advisories)

Free InsightVM Trial No Credit Card Necessary
Watch Demo See how it all works
Back to Search

Red Hat: CVE-2019-12521: CVE-2019-12521 squid: Off-by-one error in addStackElement allows for heap buffer overflow and crash (Multiple Advisories)

Severity
4
CVSS
(AV:N/AC:M/Au:N/C:N/I:N/A:P)
Published
04/15/2020
Created
11/06/2020
Added
11/05/2020
Modified
12/15/2023

Description

An issue was discovered in Squid through 4.7. When Squid is parsing ESI, it keeps the ESI elements in ESIContext. ESIContext contains a buffer for holding a stack of ESIElements. When a new ESIElement is parsed, it is added via addStackElement. addStackElement has a check for the number of elements in this buffer, but it's off by 1, leading to a Heap Overflow of 1 element. The overflow is within the same structure so it can't affect adjacent memory blocks, and thus just leads to a crash while processing.

Solution(s)

  • redhat-upgrade-libecap
  • redhat-upgrade-libecap-debuginfo
  • redhat-upgrade-libecap-debugsource
  • redhat-upgrade-libecap-devel
  • redhat-upgrade-squid
  • redhat-upgrade-squid-debuginfo
  • redhat-upgrade-squid-debugsource

With Rapid7 live dashboards, I have a clear view of all the assets on my network, which ones can be exploited, and what I need to do in order to reduce the risk in my environment in real-time. No other tool gives us that kind of value and insight.

– Scott Cheney, Manager of Information Security, Sierra View Medical Center

;