CVE-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 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.
What to do
Likely to be exploited: EPSS gives a 24% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.
Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 18.04 | squid3 | Fixed | 3.5.27-1ubuntu1.3 | UBUNTU-CVE-2019-12525 |
| Ubuntu 16.04 | squid3 | Fixed | 3.5.12-1ubuntu7.8 | UBUNTU-CVE-2019-12525 |
| Ubuntu 14.04 | squid3 | Fix pending | ||
| Debian 14 | squid | Fixed | 4.8-1 | DEBIAN-CVE-2019-12525 |
| Debian 13 | squid | Fixed | 4.8-1 | DEBIAN-CVE-2019-12525 |
| Debian 12 | squid | Fixed | 4.8-1 | DEBIAN-CVE-2019-12525 |
| Red Hat Enterprise Linux 8 | libecap | Fixed | 0:1.0.1-2.module+el8.1.0+4044+36416a77 | RHSA-2020:2041 |
| Red Hat Enterprise Linux 8 | libecap-devel | Fixed | 0:1.0.1-2.module+el8.1.0+4044+36416a77 | RHSA-2020:2041 |
| Red Hat Enterprise Linux 8 | squid | Fixed | 7:4.4-8.module+el8.2.0+6449+6ba3df3e.1 | RHSA-2020:2041 |
| Red Hat Enterprise Linux 7 | squid | Fixed | 7:3.5.20-15.el7_8.1 | RHSA-2020:2040 |
| Red Hat Enterprise Linux 7 | squid-migration-script | Fixed | 7:3.5.20-15.el7_8.1 | RHSA-2020:2040 |
| Red Hat Enterprise Linux 7 | squid-sysvinit | Fixed | 7:3.5.20-15.el7_8.1 | RHSA-2020:2040 |
| Red Hat Enterprise Linux 6 | squid | Not affected | ||
| Red Hat Enterprise Linux 6 | squid34 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 5 | squid | Not affected | ||
| AlmaLinux 8 | libecap | Fixed | 1.0.1-2.module_el8.6.0+2741+01592ae8 | ALSA-2020:2041 |
| AlmaLinux 8 | libecap-devel | Fixed | 1.0.1-2.module_el8.6.0+2741+01592ae8 | ALSA-2020:2041 |
| Rocky Linux 8 | libecap | Fixed | 0:1.0.1-2.module+el8.4.0+404+316a0dc5 | RLSA-2020:2041 |
| Alpine Linux 3.10 | squid | Fixed | 4.8-r0 | ALPINE-CVE-2019-12525 |
| Alpine Linux 3.9 | squid | Fixed | 4.8-r0 | ALPINE-CVE-2019-12525 |
What the vendor says
As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
Vendor advisories:
- https://usn.ubuntu.com/4065-1/ (vendor-advisory)
- https://usn.ubuntu.com/4065-2/ (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://www.debian.org/security/2019/dsa-4507 (vendor-advisory)
- http://lists.opensuse.org/opensuse-security-announce/2019-11/msg00053.html (vendor-advisory)
- http://lists.opensuse.org/opensuse-security-announce/2019-11/msg00056.html (vendor-advisory)
References
- http://www.squid-cache.org/Versions/v4/changesets/
- https://github.com/squid-cache/squid/commits/v4
- http://www.squid-cache.org/Versions/v4/changesets/squid-4-7f73e9c5d17664b882ed32590e6af310c247f320.patch
- https://usn.ubuntu.com/4065-1/
- https://lists.debian.org/debian-lts-announce/2019/07/msg00018.html
- https://usn.ubuntu.com/4065-2/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SPXN2CLAGN5QSQBTOV5IGVLDOQSRFNTZ/
- https://www.debian.org/security/2019/dsa-4507
- https://seclists.org/bugtraq/2019/Aug/42
- http://lists.opensuse.org/opensuse-security-announce/2019-11/msg00053.html
- http://lists.opensuse.org/opensuse-security-announce/2019-11/msg00056.html
- https://lists.debian.org/debian-lts-announce/2020/07/msg00009.html
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.