CVE-2019-12525
published 2019-07-11CVE-2019-12525: 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…
PriorityP264critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
EPSS
24.40%
97.6th percentile
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
17 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| canonical | ubuntu_linux | — | — |
| canonical | ubuntu_linux | — | — |
| canonical | ubuntu_linux | — | — |
| canonical | ubuntu_linux | — | — |
| debian | debian_linux | — | — |
| debian | debian_linux | — | — |
| debian | debian_linux | — | — |
| debian | squid | < squid 4.8-1 (bookworm) | squid 4.8-1 (bookworm) |
| fedoraproject | fedora | — | — |
| opensuse | leap | — | — |
| opensuse | leap | — | — |
| squid-cache | squid | 3.3.9 – 3.5.28 | — |
| squid-cache | squid | 4.0 – 4.7 | — |
| squid | squid | >= 0 < 4.8-1 | 4.8-1 |
| squid | squid | >= 0 < 4.8-1 | 4.8-1 |
| squid | squid | >= 0 < 4.8-1 | 4.8-1 |
| squid | squid | >= 0 < 4.8-1 | 4.8-1 |
Detection & IOCsextracted from sources · hover to see the quote
- →Trigger condition: Squid receives a Proxy-Authorization header with a Digest auth token (e.g., domain, uri, or qop) whose value is a single quote character — this causes memcpy of length minus 1, corrupting memory. ↗
- →Monitor HTTP/HTTPS proxy traffic for malformed Proxy-Authorization headers using Digest authentication scheme, especially tokens with a single-quote value. ↗
- →Affected versions: Squid 3.3.9 through 3.5.28 and 4.x through 4.7. Fixed in Squid 4.8+. Alert on these version strings in proxy banners or package inventory. ↗
- ·Vulnerability is only exploitable when Digest authentication is enabled in squid.conf. Removing 'auth_param digest ...' lines mitigates the issue without patching. ↗
- ·Red Hat Enterprise Linux 5 and 6 (squid package) are listed as Not Affected; squid34 on RHEL 6 is out of support scope. ↗
CVSS provenance
nvdv3.19.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvdv2.07.5HIGHAV:N/AC:L/Au:N/C:P/I:P/A:P
osv9.8CRITICAL
vendor_debian9.8CRITICAL
vendor_redhat9.8CRITICAL
vendor_ubuntu9.8CRITICAL
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Ubuntu
Squid vulnerabilities
vendor_ubuntu·2019-07-22·CVSS 9.8
CVE-2019-12525 [CRITICAL] Squid vulnerabilities
Title: Squid vulnerabilities
Summary: Several security issues were fixed in Squid.
USN-4065-1 fixed several vulnerabilities in Squid. This update provides
the corresponding update for Ubuntu 12.04 ESM.
Original advisory details:
It was discovered that Squid incorrectly handled Digest authentication. A
remote attacker could possibly use this issue to cause Squid to crash,
resulting in a denial of service. (CVE-2019-12525)
It was discovered that Squid incorrectly handled Basic authentication. A
remote attacker could possibly use this issue to cause Squid to crash,
resulting in a denial of service. (CVE-2019-12529)
Instructions: In general, a standard system update will make all the necessary changes.
Ubuntu
Squid vulnerabilities
vendor_ubuntu·2019-07-18·CVSS 9.8
CVE-2019-12525 [CRITICAL] Squid vulnerabilities
Title: Squid vulnerabilities
Summary: Several security issues were fixed in Squid.
It was discovered that Squid incorrectly handled Digest authentication. A
remote attacker could possibly use this issue to cause Squid to crash,
resulting in a denial of service. (CVE-2019-12525)
It was discovered that Squid incorrectly handled Basic authentication. A
remote attacker could use this issue to cause Squid to crash, resulting in
a denial of service, or possibly execute arbitrary code. This issue only
affected Ubuntu 19.04. (CVE-2019-12527)
It was discovered that Squid incorrectly handled Basic authentication. A
remote attacker could possibly use this issue to cause Squid to crash,
resulting in a denial of service. (CVE-2019-12529)
Instructions: In general, a standard system update will make
Red Hat
squid: parsing of header Proxy-Authentication leads to memory corruption
vendor_redhat·2019-07-12·CVSS 9.8
CVE-2019-12525 [CRITICAL] CWE-119 squid: parsing of header Proxy-Authentication leads to memory corruption
squid: parsing of header Proxy-Authentication leads to memory corruption
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.
Mitigation: Remove 'auth_param digest ...' configuration settings from squid.conf.
Package: squid (Red Hat Enterprise Linux 5) - Not affected
Package: squid (Red Hat Enterprise Linux 6) - Not affected
Package: squid34 (Re
Debian
CVE-2019-12525: squid - An issue was discovered in Squid 3.3.9 through 3.5.28 and 4.x through 4.7. When ...
vendor_debian·2019·CVSS 9.8
CVE-2019-12525 [CRITICAL] CVE-2019-12525: squid - An issue was discovered in Squid 3.3.9 through 3.5.28 and 4.x through 4.7. When ...
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.
Scope: local
bookworm: resolved (fixed in 4.8-1)
bullseye: resolved (fixed in 4.8-1)
forky: resolved (fixed in 4.8-1)
sid: resolved (fixed in 4.8-1)
trixie: resolved (fixed in 4.8-1)
GHSA
GHSA-wxh3-97xf-wv5x: An issue was discovered in Squid 3
ghsa_unreviewed·2022-05-24
CVE-2019-12525 [CRITICAL] CWE-119 GHSA-wxh3-97xf-wv5x: An issue was discovered in Squid 3
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.
OSV
squid, squid3 vulnerabilities
osv·2019-07-18·CVSS 9.8
CVE-2019-12525 [CRITICAL] squid, squid3 vulnerabilities
squid, squid3 vulnerabilities
It was discovered that Squid incorrectly handled Digest authentication. A
remote attacker could possibly use this issue to cause Squid to crash,
resulting in a denial of service. (CVE-2019-12525)
It was discovered that Squid incorrectly handled Basic authentication. A
remote attacker could use this issue to cause Squid to crash, resulting in
a denial of service, or possibly execute arbitrary code. This issue only
affected Ubuntu 19.04. (CVE-2019-12527)
It was discovered that Squid incorrectly handled Basic authentication. A
remote attacker could possibly use this issue to cause Squid to crash,
resulting in a denial of service. (CVE-2019-12529)
OSV
CVE-2019-12525: An issue was discovered in Squid 3
osv·2019-07-11·CVSS 9.8
CVE-2019-12525 [CRITICAL] CVE-2019-12525: An issue was discovered in Squid 3
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.
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2019-12525 squid: parsing of header Proxy-Authentication leads to memory corruption
bugzilla·2019-07-17·CVSS 9.8
CVE-2019-12525 [CRITICAL] CVE-2019-12525 squid: parsing of header Proxy-Authentication leads to memory corruption
CVE-2019-12525 squid: parsing of header Proxy-Authentication leads to memory corruption
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.
Reference:
http://www.squid-cache.org/Versions/v4/changesets/
https://github.com/squid-cache/squid/commits/v4
Upstream patches:
squid-4 : http://www.squid-cache.org/Versions/v4/changesets/squid-4-409956536647
Bugzilla
CVE-2019-12525 squid: parsing of header Proxy-Authentication leads to memory corruption [fedora-all]
bugzilla·2019-07-17·CVSS 9.8
CVE-2019-12525 [CRITICAL] CVE-2019-12525 squid: parsing of header Proxy-Authentication leads to memory corruption [fedora-all]
CVE-2019-12525 squid: parsing of header Proxy-Authentication leads to memory corruption [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of fedora-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue affects mult
http://lists.opensuse.org/opensuse-security-announce/2019-11/msg00053.htmlhttp://lists.opensuse.org/opensuse-security-announce/2019-11/msg00056.htmlhttp://www.squid-cache.org/Versions/v4/changesets/http://www.squid-cache.org/Versions/v4/changesets/squid-4-7f73e9c5d17664b882ed32590e6af310c247f320.patchhttps://github.com/squid-cache/squid/commits/v4https://lists.debian.org/debian-lts-announce/2019/07/msg00018.htmlhttps://lists.debian.org/debian-lts-announce/2020/07/msg00009.htmlhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SPXN2CLAGN5QSQBTOV5IGVLDOQSRFNTZ/https://seclists.org/bugtraq/2019/Aug/42https://usn.ubuntu.com/4065-1/https://usn.ubuntu.com/4065-2/https://www.debian.org/security/2019/dsa-4507http://lists.opensuse.org/opensuse-security-announce/2019-11/msg00053.htmlhttp://lists.opensuse.org/opensuse-security-announce/2019-11/msg00056.htmlhttp://www.squid-cache.org/Versions/v4/changesets/http://www.squid-cache.org/Versions/v4/changesets/squid-4-7f73e9c5d17664b882ed32590e6af310c247f320.patchhttps://github.com/squid-cache/squid/commits/v4https://lists.debian.org/debian-lts-announce/2019/07/msg00018.htmlhttps://lists.debian.org/debian-lts-announce/2020/07/msg00009.htmlhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SPXN2CLAGN5QSQBTOV5IGVLDOQSRFNTZ/https://seclists.org/bugtraq/2019/Aug/42https://usn.ubuntu.com/4065-1/https://usn.ubuntu.com/4065-2/https://www.debian.org/security/2019/dsa-4507
2019-07-11
Published