Name of the Vulnerable Software and Affected Versions:
Squid versions through 4.7
Description:
An issue was discovered in Squid when parsing ESI. The ESIContext contains a buffer for holding a stack of ESIElements. When a new ESIElement is parsed, it is added via the `addStackElement` function. However, `addStackElement` has a check for the number of elements in this buffer that is off by 1, leading to a Heap Overflow of 1 element. The overflow is within the same structure, so it cannot affect adjacent memory blocks, and thus just leads to a crash while processing. This can be exploited by a remote attacker to cause a denial of service.
Recommendations:
For Squid versions through 4.7, update to a version that fixes this issue to prevent a potential crash while processing ESI elements.
At the moment, there is no information about a newer version that contains a fix for this vulnerability.