Out-of-Bounds Affecting squid package, versions [3.3.9,3.5.28][4.0,4.8)


Severity

Recommended
0.0
critical
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
6% (94th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-SQUID-2370875
  • published26 Jan 2022
  • disclosed11 Jul 2019
  • creditUnknown

Introduced: 11 Jul 2019

CVE-2019-12525  (opens in a new tab)
CWE-119  (opens in a new tab)

How to fix?

Upgrade squid to version 4.8 or higher.

Overview

Affected versions of this package are vulnerable to Out-of-Bounds. 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.

CVSS Scores

version 3.1