Vulnerabilities / CVE-2019-12519

critical

CVE-2019-12519

squid: improper check for new member in ESIExpression::Evaluate allows for stack buffer overflow

Published Modified CWE 787
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat8.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by Red Hat (high), AlmaLinux (high), Amazon (high), Oracle (high), Rocky Linux (high), Ubuntu (medium).

Description

An issue was discovered in Squid through 4.7. When handling the tag esi:when when ESI is enabled, Squid calls ESIExpression::Evaluate. This function uses a fixed stack buffer to hold the expression while it's being evaluated. When processing the expression, it could either evaluate the top of the stack, or add a new member to the stack. When adding a new member, there is no check to ensure that the stack won't overflow.

Affected packages and fixed versions

SourcePackageFixed in
alma 8squid:4::libecap, squid:4::libecap-devel1.0.1-2.module_el8.6.0+2741+01592ae8
alpine 3.10squid4.11-r0
alpine 3.11squid4.11-r0
alpine 3.9squid4.11-r0
amazon linux 1squid, squid-debuginfo, squid-migration-script7:3.5.20-15.39.amzn1
amazon linux 2squid, squid-debuginfo, squid-migration-script and 1 more7:3.5.20-15.amzn2.1
debian 10squid4.6-1+deb10u2
debian 11squid4.11-1
debian 12squid4.11-1
debian 13squid4.11-1
debian 14squid4.11-1
debian 9squid33.5.23-5+deb9u2
Show all 38 entries from 26 sources
SourcePackageFixed in
alma 8squid:4::libecap1.0.1-2.module_el8.6.0+2741+01592ae8
alma 8squid:4::libecap-devel1.0.1-2.module_el8.6.0+2741+01592ae8
alpine 3.10squid4.11-r0
alpine 3.11squid4.11-r0
alpine 3.9squid4.11-r0
amazon linux 1squid7:3.5.20-15.39.amzn1
amazon linux 1squid-debuginfo7:3.5.20-15.39.amzn1
amazon linux 1squid-migration-script7:3.5.20-15.39.amzn1
amazon linux 2squid7:3.5.20-15.amzn2.1
amazon linux 2squid-debuginfo7:3.5.20-15.amzn2.1
amazon linux 2squid-migration-script7:3.5.20-15.amzn2.1
amazon linux 2squid-sysvinit7:3.5.20-15.amzn2.1
debian 10squid4.6-1+deb10u2
debian 11squid4.11-1
debian 12squid4.11-1
debian 13squid4.11-1
debian 14squid4.11-1
debian 9squid33.5.23-5+deb9u2
echosquid4.11-1
Oracle Linux 7squid7:3.5.20-15.el7_8.1
Oracle Linux 7squid-migration-script7:3.5.20-15.el7_8.1
Oracle Linux 7squid-sysvinit7:3.5.20-15.el7_8.1
Oracle Linux 8libecap1.0.1-2.module+el8.1.0+5405+03b963f4
Oracle Linux 8libecap-devel1.0.1-2.module+el8.1.0+5405+03b963f4
Oracle Linux 8squid7:4.4-8.module+el8.2.0+7611+d512f060.1
Red Hatsquidno fix listed
Red Hatsquid34no fix listed
rocky 8squid:4::libecap1.0.1-2.module+el8.4.0+404+316a0dc5
rocky 8squid:4::libecap-devel1.0.1-2.module+el8.4.0+404+316a0dc5
ubuntu 16.04squid33.5.12-1ubuntu7.11
ubuntu 16.04-ESMsquid33.5.12-1ubuntu7.11
ubuntu 18.04squid33.5.27-1ubuntu1.6
ubuntu 18.04-ESMsquid33.5.27-1ubuntu1.6
ubuntu 19.10squid4.8-1ubuntu2.3
ubuntu 20.04squid4.10-1ubuntu1.1
ubuntu 20.04-ESMsquid4.10-1ubuntu1.1
ubuntu 20.10squid4.10-1ubuntu2
ubuntu 21.04squid4.10-1ubuntu2

References

All 23 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.