CVE-2019-12521

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 its off by 1, leading to a Heap Overflow of 1 element. The overflow is within the same structure so it cant affect adjacent memory blocks, and thus just leads to a crash while processing.

Risk Information

Base Score
5.9
MODERATE
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS Score
Exploitation Probability
0.565

Associated Vulnerability

VulnerabilityOS Platform
squid security update(DSA-4682-1) squid_4.6-1+deb10u2_i386.debLinux
squid security update(DSA-4682-1) squid_4.6-1+deb10u2_amd64.debLinux
SUSE-SU-2020:1227-1(SUSE Linux Enterprise Server 12-SP4 ) squid-3.5.21-26.23.1.x86_64.rpmLinux
SUSE-SU-2020:1227-1(SUSE Linux Enterprise Server 12-SP4 ) squid-debuginfo-3.5.21-26.23.1.x86_64.rpmLinux
SUSE-SU-2020:1227-1(SUSE Linux Enterprise Server 12-SP4 ) squid-debugsource-3.5.21-26.23.1.x86_64.rpmLinux
Web proxy cache server (USN-4356-1) squid_4.8-1ubuntu2.3_i386.debLinux
Web proxy cache server (USN-4356-1) squid_4.8-1ubuntu2.3_amd64.debLinux
Web proxy cache server (USN-4356-1) squid_4.10-1ubuntu1.1_amd64.debLinux
Web proxy cache server (USN-4356-1) squid_3.5.27-1ubuntu1.6_i386.debLinux
Web proxy cache server (USN-4356-1) squid_3.5.27-1ubuntu1.6_amd64.debLinux
Web proxy cache server (USN-4356-1) squid_3.5.12-1ubuntu7.11_i386.debLinux
Web proxy cache server (USN-4356-1) squid_3.5.12-1ubuntu7.11_amd64.debLinux
(RHSA-2020:4743) squid:4 security, bug fix, and enhancement update squid-4.11-3.module+el8.3.0+7851+7808b5f9.x86_64.rpmLinux
(RHSA-2020:4743) squid:4 security, bug fix, and enhancement update squid-debugsource-4.11-3.module+el8.3.0+7851+7808b5f9.x86_64.rpmLinux
squid Security Update (ALAS-2024-2509) squid-3.5.20-17.amzn2.7.20.x86_64.rpmLinux
squid Security Update (ALAS-2024-2509) squid-sysvinit-3.5.20-17.amzn2.7.20.x86_64.rpmLinux
squid Security Update (ALAS-2024-2509) squid-migration-script-3.5.20-17.amzn2.7.20.x86_64.rpmLinux

Patch Details

No records found

References

https://nvd.nist.gov/vuln/detail/CVE-2023-1234
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-1234