An issue was discovered in Squid 3.3.9 through 3.5.28 and 4.x through 4.7.
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 5 fixed, 1 without a fix
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and Red Hat. Impact type from CWE-787 and the CVSS impact.
Summary
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
CPE configurations NVD · 11
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:squid-cache:squid:*:*:*:*:*:*:*:* | 3.3.9 – 3.5.28; 4.0 – 4.7 | Vulnerable | squid-cache |
| cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* | 8.0 | Vulnerable | Debian |
| cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* | 9.0 | Vulnerable | Debian |
| cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* | 10.0 | Vulnerable | Debian |
| cpe:2.3:o:opensuse:leap:15.0:*:*:*:*:*:*:* | 15.0 | Vulnerable | openSUSE |
| cpe:2.3:o:opensuse:leap:15.1:*:*:*:*:*:*:* | 15.1 | Vulnerable | openSUSE |
| cpe:2.3:o:fedoraproject:fedora:29:*:*:*:*:*:*:* | 29 | Vulnerable | Fedoraproject |
| cpe:2.3:o:canonical:ubuntu_linux:12.04:*:*:*:-:*:*:* | 12.04 | Vulnerable | Canonical |
| cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:esm:*:*:* | 16.04 | Vulnerable | Canonical |
| cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:* | 18.04 | Vulnerable | Canonical |
- cpe:2.3:a:squid-cache:squid:*:*:*:*:*:*:*:* Versions 3.3.9 – 3.5.28; 4.0 – 4.7 Vulnerable ·squid-cache
- cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* Versions 8.0 Vulnerable ·Debian
- cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* Versions 9.0 Vulnerable ·Debian
- cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* Versions 10.0 Vulnerable ·Debian
- cpe:2.3:o:opensuse:leap:15.0:*:*:*:*:*:*:* Versions 15.0 Vulnerable ·openSUSE
- cpe:2.3:o:opensuse:leap:15.1:*:*:*:*:*:*:* Versions 15.1 Vulnerable ·openSUSE
- cpe:2.3:o:fedoraproject:fedora:29:*:*:*:*:*:*:* Versions 29 Vulnerable ·Fedoraproject
- cpe:2.3:o:canonical:ubuntu_linux:12.04:*:*:*:-:*:*:* Versions 12.04 Vulnerable ·Canonical
- cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:esm:*:*:* Versions 16.04 Vulnerable ·Canonical
- cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:* Versions 18.04 Vulnerable ·Canonical
Remediation
Red Hat 2 advisories
- RHSA-2020:2040 Released 2020-05-06 · Red Hat rating Importantsquid security update
- Red Hat Enterprise Linux Server (v. 7) squid-7:3.5.20-15.el7_8.1, squid-migration-script-7:3.5.20-15.el7_8.1
- Red Hat Enterprise Linux Server Optional (v. 7) squid-sysvinit-7:3.5.20-15.el7_8.1
- Red Hat Enterprise Linux Workstation (v. 7) squid-7:3.5.20-15.el7_8.1, squid-migration-script-7:3.5.20-15.el7_8.1
- Red Hat Enterprise Linux Workstation Optional (v. 7) squid-sysvinit-7:3.5.20-15.el7_8.1
- RHSA-2020:2041 Released 2020-05-06 · Red Hat rating Importantsquid:4 security update
- Red Hat Enterprise Linux AppStream (v. 8) libecap-1.0.1-2.module+el8.1.0+4044+36416a77.aarch64::squid:4, libecap-1.0.1-2.module+el8.1.0+4044+36416a77.ppc64le::squid:4, libecap-1.0.1-2.module+el8.1.0+4044+36416a77.s390x::squid:4 +11
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 6 | Affected | No fix planned: Out of support scope |
| Red Hat Enterprise Linux AppStream (v. 8) | Fixed | RHSA-2020:2041 |
| Red Hat Enterprise Linux Server (v. 7) | Fixed | RHSA-2020:2040 |
| Red Hat Enterprise Linux Server Optional (v. 7) | Fixed | RHSA-2020:2040 |
| Red Hat Enterprise Linux Workstation (v. 7) | Fixed | RHSA-2020:2040 |
| Red Hat Enterprise Linux Workstation Optional (v. 7) | Fixed | RHSA-2020:2040 |
Not affected: 2 products
- Red Hat Enterprise Linux 5
- Red Hat Enterprise Linux 6
Timeline
- 2026-10-02 Threatist record created from CVE-2019-12525
- 2026-10-03 Alias added: GHSA-wxh3-97xf-wv5x
References
Patch 2
Advisory 10
- http://www.squid-cache.org/Versions/v4/changesets/
- USN-4065-1
- [debian-lts-announce] 20190720 [SECURITY] [DLA 1858-1] squid3 security update
- USN-4065-2
- FEDORA-2019-cb50bcc189
- DSA-4507
- 20190825 [SECURITY] [DSA 4507-1] squid security update
- openSUSE-SU-2019:2540
- openSUSE-SU-2019:2541
- [debian-lts-announce] 20200710 [SECURITY] [DLA 2278-1] squid3 security update
Sources
- CVE-2019-12525 · CVE Program
- CVE-2019-12525 · NVD
- FIRST EPSS
- GHSA-wxh3-97xf-wv5x · GitHub Advisory Database · CC BY 4.0
- CVE-2019-12525 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences