CVE-2023-5824Squid: dos against http and https
A flaw was found in Squid. The limits applied for validation of HTTP response headers are applied before caching. However, Squid may grow a cached HTTP response header beyond the configured maximum size, causing a stall or crash of the worker process when a large header is retrieved from the disk cache, resulting in a denial of service.
What to do
Likely to be exploited: EPSS gives a 22% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.
Fixed builds are available from AlmaLinux, 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 24.04 | squid | Fixed | 6.5-1ubuntu1 | UBUNTU-CVE-2023-5824 |
| Ubuntu 22.04 | squid | Fixed | 5.7-0ubuntu0.22.04.4 | UBUNTU-CVE-2023-5824 |
| Ubuntu 20.04 | squid | Fixed | 4.10-1ubuntu1.12 | UBUNTU-CVE-2023-5824 |
| Ubuntu 18.04 | squid3 | Fix pending | UBUNTU-CVE-2023-5824 | |
| Ubuntu 16.04 | squid3 | Fix pending | UBUNTU-CVE-2023-5824 | |
| Ubuntu 14.04 | squid3 | Fix pending | ||
| Debian 14 | squid | Fixed | 6.5-1 | DEBIAN-CVE-2023-5824 |
| Debian 13 | squid | Fixed | 6.5-1 | DEBIAN-CVE-2023-5824 |
| Debian 12 | squid | Fixed | 5.7-2+deb12u3 | DEBIAN-CVE-2023-5824 |
| Red Hat Enterprise Linux 9 | squid | Fixed | 7:5.5-6.el9_3.2 | RHSA-2023:7465 |
| Red Hat Enterprise Linux 8 | libecap | Fixed | 0:1.0.1-2.module+el8.9.0+19703+a1da7223 | RHSA-2023:7668 |
| Red Hat Enterprise Linux 8 | libecap-devel | Fixed | 0:1.0.1-2.module+el8.9.0+19703+a1da7223 | RHSA-2023:7668 |
| Red Hat Enterprise Linux 8 | squid | Fixed | 7:4.15-7.module+el8.9.0+20806+014d88aa.3 | RHSA-2023:7668 |
| Red Hat Enterprise Linux 7 | squid | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | squid-migration-script | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | squid-sysvinit | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | squid | Will not fix Will not fix | ||
| AlmaLinux 9 | squid | Fixed | 7:5.5-6.el9_3.2 | ALSA-2023:7465 |
| AlmaLinux 8 | libecap | Fixed | 1.0.1-2.module_el8.6.0+3048+383bc947 | ALSA-2023:7668 |
| AlmaLinux 8 | libecap-devel | Fixed | 1.0.1-2.module_el8.6.0+3048+383bc947 | ALSA-2023:7668 |
| AlmaLinux 8 | squid | Fixed | 7:4.15-7.module_el8.9.0+3696+b881db49.3 | ALSA-2023:7668 |
| Rocky Linux 8 | libecap | Fixed | 0:1.0.1-2.module+el8.9.0+1437+df5ea8f0 | RLSA-2023:7668 |
| Rocky Linux 8 | squid | Fixed | 7:4.15-7.module+el8.9.0+1568+6d4fd5d4.1 | RLSA-2023:7668 |
What the vendor says
As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 8.2 Advanced Update Support
- Red Hat Enterprise Linux 8.2 Telecommunications Update Service
- Red Hat Enterprise Linux 8.2 Update Services for SAP Solutions
- Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support
- Red Hat Enterprise Linux 8.4 Telecommunications Update Service
- Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions
- Red Hat Enterprise Linux 8.6 Extended Update Support
- Red Hat Enterprise Linux 8.8 Extended Update Support
- Red Hat Enterprise Linux 9
- Red Hat Enterprise Linux 9.0 Extended Update Support
- Red Hat Enterprise Linux 9.2 Extended Update Support
Workaround: Disabling the disk caching mechanism will mitigate this vulnerability. To achieve this, remove all the 'cache_dir' directives from the Squid configuration, typically in the /etc/squid/squid.conf file.
Vendor advisories:
- https://access.redhat.com/errata/RHSA-2023:7465 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2023:7668 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2024:0072 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2024:0397 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2024:0771 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2024:0772 (vendor-advisory)
References
- https://access.redhat.com/errata/RHSA-2023:7465
- https://access.redhat.com/errata/RHSA-2023:7668
- https://access.redhat.com/errata/RHSA-2024:0072
- https://access.redhat.com/errata/RHSA-2024:0397
- https://access.redhat.com/errata/RHSA-2024:0771
- https://access.redhat.com/errata/RHSA-2024:0772
- https://access.redhat.com/errata/RHSA-2024:0773
- https://access.redhat.com/errata/RHSA-2024:1153
- https://access.redhat.com/security/cve/CVE-2023-5824
- https://bugzilla.redhat.com/show_bug.cgi?id=2245914
- https://github.com/squid-cache/squid/security/advisories/GHSA-543m-w2m2-g255
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.