CVE-2019-12521
MEDIUMAn 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.
CVSS Score
5.9
FIRST EPSS
5.9%
Observed Hosts
2,037
Published
2020-04-15
Top Exposed Countries
- US407
- JP384
- TH137
- ID103
- CN96
- DE58
- HK56
- IN50
Top Exposed Ports
- 3128 / tcp1,048
- 8080 / tcp818
- 80 / tcp181
- 443 / tcp119
- 22 / tcp67
- 8000 / tcp54
- 53 / tcp40
- 8443 / tcp33
Observed Software
- Squid http proxy1,742
- squid49
- Apache httpd34
- OpenSSH25
- nginx14
- OpenClaw AI Agent7