Vulnerabilities / CVE-2019-12525

critical

CVE-2019-12525

squid: parsing of header Proxy-Authentication leads to memory corruption

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 Hat4.3CVSS:3.0/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

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

Description

An issue was discovered in Squid 3.3.9 through 3.5.28 and 4.x through 4.7. When Squid is configured to use Digest authentication, it parses the header Proxy-Authorization. It searches for certain tokens such as domain, uri, and qop. Squid checks if this token's value starts with a quote and ends with one. If so, it performs a memcpy of its length minus 2. Squid never checks whether the value is just a single quote (which would satisfy its requirements), leading to a memcpy of its length minus 1.

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.8-r0
alpine 3.9squid4.8-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+deb10u1
debian 11squid4.8-1
debian 12squid4.8-1
debian 13squid4.8-1
debian 14squid4.8-1
debian 8squid33.4.8-6+deb8u8
debian 9squid33.5.23-5+deb9u2
Show all 33 entries from 22 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.8-r0
alpine 3.9squid4.8-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+deb10u1
debian 11squid4.8-1
debian 12squid4.8-1
debian 13squid4.8-1
debian 14squid4.8-1
debian 8squid33.4.8-6+deb8u8
debian 9squid33.5.23-5+deb9u2
echosquid4.8-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 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.8
ubuntu 16.04-ESMsquid33.5.12-1ubuntu7.8
ubuntu 18.04squid33.5.27-1ubuntu1.3
ubuntu 18.04-ESMsquid33.5.27-1ubuntu1.3
ubuntu 19.04squid4.4-1ubuntu2.2

References

All 28 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.