CVE-2023-46218 Security feature bypass in curl
A malicious server can bypass cookie domain restrictions in curl, allowing cookies to be sent to unrelated domains and potentially exposing sensitive data.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-46218?
CVE-2023-46218 is a medium-severity vulnerability in Fedoraproject Fedora, published on 7 Dec 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
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.
Weakness: CWE-178
Which versions are affected by CVE-2023-46218?
It affects 2 products.
Linux distribution packages (40)
curl AlmaLinux:9 | All versions | 7.76.1-26.el9_3.3 |
curl-minimal AlmaLinux:9 | All versions | 7.76.1-26.el9_3.3 |
libcurl AlmaLinux:9 | All versions | 7.76.1-26.el9_3.3 |
libcurl-devel AlmaLinux:9 | All versions | 7.76.1-26.el9_3.3 |
libcurl-minimal AlmaLinux:9 | All versions | 7.76.1-26.el9_3.3 |
curl-debuginfo Red Hat:enterprise_linux:9::appstream | All versions | 0:7.76.1-26.el9_3.3 |
curl-debugsource Red Hat:enterprise_linux:9::appstream | All versions | 0:7.76.1-26.el9_3.3 |
curl-minimal-debuginfo Red Hat:enterprise_linux:9::appstream | All versions | 0:7.76.1-26.el9_3.3 |
libcurl-debuginfo Red Hat:enterprise_linux:9::appstream | All versions | 0:7.76.1-26.el9_3.3 |
libcurl-devel Red Hat:enterprise_linux:9::appstream | All versions | 0:7.76.1-26.el9_3.3 |
libcurl-minimal-debuginfo Red Hat:enterprise_linux:9::appstream | All versions | 0:7.76.1-26.el9_3.3 |
curl Red Hat:enterprise_linux:9::baseos | All versions | 0:7.76.1-26.el9_3.3 |
curl-debuginfo Red Hat:enterprise_linux:9::baseos | All versions | 0:7.76.1-26.el9_3.3 |
curl-debugsource Red Hat:enterprise_linux:9::baseos | All versions | 0:7.76.1-26.el9_3.3 |
curl-minimal Red Hat:enterprise_linux:9::baseos | All versions | 0:7.76.1-26.el9_3.3 |
curl-minimal-debuginfo Red Hat:enterprise_linux:9::baseos | All versions | 0:7.76.1-26.el9_3.3 |
libcurl Red Hat:enterprise_linux:9::baseos | All versions | 0:7.76.1-26.el9_3.3 |
libcurl-debuginfo Red Hat:enterprise_linux:9::baseos | All versions | 0:7.76.1-26.el9_3.3 |
libcurl-minimal Red Hat:enterprise_linux:9::baseos | All versions | 0:7.76.1-26.el9_3.3 |
libcurl-minimal-debuginfo Red Hat:enterprise_linux:9::baseos | All versions | 0:7.76.1-26.el9_3.3 |
curl-debuginfo Red Hat:rhel_eus:9.0::appstream | All versions | 0:7.76.1-14.el9_0.11 |
curl-debugsource Red Hat:rhel_eus:9.0::appstream | All versions | 0:7.76.1-14.el9_0.11 |
curl-minimal-debuginfo Red Hat:rhel_eus:9.0::appstream | All versions | 0:7.76.1-14.el9_0.11 |
libcurl-debuginfo Red Hat:rhel_eus:9.0::appstream | All versions | 0:7.76.1-14.el9_0.11 |
libcurl-devel Red Hat:rhel_eus:9.0::appstream | All versions | 0:7.76.1-14.el9_0.11 |
libcurl-minimal-debuginfo Red Hat:rhel_eus:9.0::appstream | All versions | 0:7.76.1-14.el9_0.11 |
curl Red Hat:rhel_eus:9.0::baseos | All versions | 0:7.76.1-14.el9_0.11 |
curl-debuginfo Red Hat:rhel_eus:9.0::baseos | All versions | 0:7.76.1-14.el9_0.11 |
curl-debugsource Red Hat:rhel_eus:9.0::baseos | All versions | 0:7.76.1-14.el9_0.11 |
curl-minimal Red Hat:rhel_eus:9.0::baseos | All versions | 0:7.76.1-14.el9_0.11 |
curl-minimal-debuginfo Red Hat:rhel_eus:9.0::baseos | All versions | 0:7.76.1-14.el9_0.11 |
libcurl Red Hat:rhel_eus:9.0::baseos | All versions | 0:7.76.1-14.el9_0.11 |
libcurl-debuginfo Red Hat:rhel_eus:9.0::baseos | All versions | 0:7.76.1-14.el9_0.11 |
libcurl-minimal Red Hat:rhel_eus:9.0::baseos | All versions | 0:7.76.1-14.el9_0.11 |
libcurl-minimal-debuginfo Red Hat:rhel_eus:9.0::baseos | All versions | 0:7.76.1-14.el9_0.11 |
curl-debuginfo Red Hat:rhel_eus:9.2::appstream | All versions | 0:7.76.1-23.el9_2.6 |
curl-debugsource Red Hat:rhel_eus:9.2::appstream | All versions | 0:7.76.1-23.el9_2.6 |
curl-minimal-debuginfo Red Hat:rhel_eus:9.2::appstream | All versions | 0:7.76.1-23.el9_2.6 |
libcurl-debuginfo Red Hat:rhel_eus:9.2::appstream | All versions | 0:7.76.1-23.el9_2.6 |
libcurl-devel Red Hat:rhel_eus:9.2::appstream | All versions | 0:7.76.1-23.el9_2.6 |
Products include Fedoraproject Fedora, Haxx Curl.
How do I fix CVE-2023-46218?
Upgrade to a fixed version.
Is CVE-2023-46218 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-46218 exists.
Other vulnerabilities in Fedoraproject Fedora
Sources
Also known as ALPINE-CVE-2023-46218, ALSA-2024:1129, AZL-32099, AZL-32119, AZL-32126, AZL-34618 and 20 more.