CVE-2023-46218
This flaw allows a malicious HTTP server to set "super cookies" in curl that are then passed back to more origins than what is otherwise allowed or possible. This allows a site to set cookies that then would get sent to different and unrelated sites and domains. It could do this by exploiting a mixed case flaw in curl's function that verifies a given cookie domain against the Public Suffix List (PSL). For example a cookie could be set with `domain=co.UK` when the URL used a lower case hostname `curl.co.uk`, even though `co.uk` is listed as a PSL domain.
What to do
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 22.04 | curl | Fixed | 7.81.0-1ubuntu1.15 | UBUNTU-CVE-2023-46218 |
| Ubuntu 20.04 | curl | Fixed | 7.68.0-1ubuntu2.21 | UBUNTU-CVE-2023-46218 |
| Ubuntu 18.04 | curl | Fix pending | 7.58.0-2ubuntu3.24+esm3 (Ubuntu Pro) | UBUNTU-CVE-2023-46218 |
| Ubuntu 16.04 | curl | Fix pending | 7.47.0-1ubuntu2.19+esm11 (Ubuntu Pro) | UBUNTU-CVE-2023-46218 |
| Debian 14 | curl | Fixed | 8.5.0-1 | DEBIAN-CVE-2023-46218 |
| Debian 13 | curl | Fixed | 8.5.0-1 | DEBIAN-CVE-2023-46218 |
| Debian 12 | curl | Fixed | 7.88.1-10+deb12u5 | DEBIAN-CVE-2023-46218 |
| Red Hat Enterprise Linux 9 | curl | Fixed | 0:7.76.1-26.el9_3.3 | RHSA-2024:1129 |
| Red Hat Enterprise Linux 9 | curl-minimal | Fixed | 0:7.76.1-26.el9_3.3 | RHSA-2024:1129 |
| Red Hat Enterprise Linux 9 | libcurl | Fixed | 0:7.76.1-26.el9_3.3 | RHSA-2024:1129 |
| Red Hat Enterprise Linux 9 | libcurl-devel | Fixed | 0:7.76.1-26.el9_3.3 | RHSA-2024:1129 |
| Red Hat Enterprise Linux 9 | libcurl-minimal | Fixed | 0:7.76.1-26.el9_3.3 | RHSA-2024:1129 |
| Red Hat Enterprise Linux 8 | curl | Fixed | 0:7.61.1-33.el8_9.5 | RHSA-2024:1601 |
| Red Hat Enterprise Linux 8 | libcurl | Fixed | 0:7.61.1-33.el8_9.5 | RHSA-2024:1601 |
| Red Hat Enterprise Linux 8 | libcurl-devel | Fixed | 0:7.61.1-33.el8_9.5 | RHSA-2024:1601 |
| Red Hat Enterprise Linux 8 | libcurl-minimal | Fixed | 0:7.61.1-33.el8_9.5 | RHSA-2024:1601 |
| Red Hat Enterprise Linux 7 | curl | Not affected | ||
| Red Hat Enterprise Linux 7 | libcurl | Not affected | ||
| Red Hat Enterprise Linux 7 | libcurl-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | curl | Not affected | ||
| Red Hat Enterprise Linux 6 | libcurl | Not affected | ||
| Red Hat Enterprise Linux 6 | libcurl-devel | Not affected | ||
| AlmaLinux 9 | curl | Fixed | 7.76.1-26.el9_3.3 | ALSA-2024:1129 |
| AlmaLinux 9 | curl-minimal | Fixed | 7.76.1-26.el9_3.3 | ALSA-2024:1129 |
| AlmaLinux 9 | libcurl | Fixed | 7.76.1-26.el9_3.3 | ALSA-2024:1129 |
| AlmaLinux 9 | libcurl-devel | Fixed | 7.76.1-26.el9_3.3 | ALSA-2024:1129 |
| AlmaLinux 9 | libcurl-minimal | Fixed | 7.76.1-26.el9_3.3 | ALSA-2024:1129 |
| AlmaLinux 8 | curl | Fixed | 7.61.1-33.el8_9.5 | ALSA-2024:1601 |
| AlmaLinux 8 | libcurl | Fixed | 7.61.1-33.el8_9.5 | ALSA-2024:1601 |
| AlmaLinux 8 | libcurl-devel | Fixed | 7.61.1-33.el8_9.5 | ALSA-2024:1601 |
| AlmaLinux 8 | libcurl-minimal | Fixed | 7.61.1-33.el8_9.5 | ALSA-2024:1601 |
| Rocky Linux 8 | curl | Fixed | 0:7.61.1-33.el8_9.5 | RLSA-2024:1601 |
| Alpine Linux 3.24 | curl | Fixed | 8.5.0-r0 | ALPINE-CVE-2023-46218 |
| Alpine Linux 3.23 | curl | Fixed | 8.5.0-r0 | ALPINE-CVE-2023-46218 |
| Alpine Linux 3.22 | curl | Fixed | 8.5.0-r0 | ALPINE-CVE-2023-46218 |
| Alpine Linux 3.21 | curl | Fixed | 8.5.0-r0 | ALPINE-CVE-2023-46218 |
| Alpine Linux 3.20 | curl | Fixed | 8.5.0-r0 | ALPINE-CVE-2023-46218 |
| Alpine Linux 3.19 | curl | Fixed | 8.5.0-r0 | ALPINE-CVE-2023-46218 |
| Alpine Linux 3.18 | curl | Fixed | 8.5.0-r0 | ALPINE-CVE-2023-46218 |
| Alpine Linux 3.17 | curl | Fixed | 8.5.0-r0 | ALPINE-CVE-2023-46218 |
| Alpine Linux 3.16 | curl | Fixed | 8.5.0-r0 | ALPINE-CVE-2023-46218 |
| Alpine Linux 3.15 | curl | Fixed | 8.5.0-r0 | ALPINE-CVE-2023-46218 |
What the vendor says
As published in the CVE record by hackerone, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- curl: affected: 8.4.0 to 8.4.0
References
- https://hackerone.com/reports/2212193
- https://curl.se/docs/CVE-2023-46218.html
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/3ZX3VW67N4ACRAPMV2QS2LVYGD7H2MVE/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UOGXU25FMMT2X6UUITQ7EZZYMJ42YWWD/
- https://lists.debian.org/debian-lts-announce/2023/12/msg00015.html
- https://www.debian.org/security/2023/dsa-5587
- https://security.netapp.com/advisory/ntap-20240125-0007/
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.