CVE-2019-12525

Published: 11 July 2019

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.

Priority

Medium

CVSS 3 base score: 9.8

Status

Package Release Status
squid
Launchpad, Ubuntu, Debian
Upstream
Released (4.8)
Ubuntu 18.04 LTS (Bionic Beaver) Does not exist

Ubuntu 16.04 ESM (Xenial Xerus) Does not exist

Ubuntu 14.04 ESM (Trusty Tahr) Does not exist

Patches:
Upstream: https://github.com/squid-cache/squid/commit/fb73497a6977ce11170a48a547e16d4a50c3bac2 (master)
Upstream: https://github.com/squid-cache/squid/commit/409956536647b3a05ee1e367424a24ae6b8f13fd (4.x)
squid3
Launchpad, Ubuntu, Debian
Upstream Needed

Ubuntu 18.04 LTS (Bionic Beaver)
Released (3.5.27-1ubuntu1.3)
Ubuntu 16.04 ESM (Xenial Xerus)
Released (3.5.12-1ubuntu7.8)
Ubuntu 14.04 ESM (Trusty Tahr) Does not exist

Patches:
Upstream: https://github.com/squid-cache/squid/commit/ec0d0f39cf28da14eead0ba5e777e95855bc2f67 (3.x)