Vulnerability · Published Dec 7, 2023 · Assigned by hackerone
CVE-2023-46218
Medium 6.5
In plain English
A medium-severity security flaw in curl from curl. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.7% (higher than 77% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | curl | 7.61.1-33.el8_9.5 | ALSA-2024:1601 |
| AlmaLinux:9 | curl | 7.76.1-26.el9_3.3 | ALSA-2024:1129 |
| AlmaLinux:9 | curl-minimal | 7.76.1-26.el9_3.3 | ALSA-2024:1129 |
| AlmaLinux:8 | libcurl | 7.61.1-33.el8_9.5 | ALSA-2024:1601 |
| AlmaLinux:9 | libcurl | 7.76.1-26.el9_3.3 | ALSA-2024:1129 |
| AlmaLinux:8 | libcurl-devel | 7.61.1-33.el8_9.5 | ALSA-2024:1601 |
| AlmaLinux:9 | libcurl-devel | 7.76.1-26.el9_3.3 | ALSA-2024:1129 |
| AlmaLinux:8 | libcurl-minimal | 7.61.1-33.el8_9.5 | ALSA-2024:1601 |
| AlmaLinux:9 | libcurl-minimal | 7.76.1-26.el9_3.3 | ALSA-2024:1129 |
| Alpine:v3.20 | curl | 8.5.0-r0 | ALPINE-CVE-2023-46218 |
| Alpine:v3.21 | curl | 8.5.0-r0 | ALPINE-CVE-2023-46218 |
| Alpine:v3.22 | curl | 8.5.0-r0 | ALPINE-CVE-2023-46218 |
| Alpine:v3.23 | curl | 8.5.0-r0 | ALPINE-CVE-2023-46218 |
| Alpine:v3.24 | curl | 8.5.0-r0 | ALPINE-CVE-2023-46218 |
| Debian:12 | curl | 7.88.1-10+deb12u5 | DEBIAN-CVE-2023-46218 |
| Debian:12 | curl | 7.88.1-10+deb12u5 | DSA-5587-1 |
| Debian:13 | curl | 8.5.0-1 | DEBIAN-CVE-2023-46218 |
| Debian:14 | curl | 8.5.0-1 | DEBIAN-CVE-2023-46218 |
| Rocky Linux:8 | curl | 0:7.61.1-33.el8_9.5 | RLSA-2024:1601 |
| Ubuntu:22.04:LTS | curl | 7.81.0-1ubuntu1.15 | UBUNTU-CVE-2023-46218 |
| Ubuntu:22.04:LTS | curl | 7.81.0-1ubuntu1.15 | USN-6535-1 |
Affected products (as reported)
Weakness: CWE-178 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
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/
- https://cert-portal.siemens.com/productcert/html/ssa-093430.html
- https://cert-portal.siemens.com/productcert/html/ssa-331112.html
- https://cert-portal.siemens.com/productcert/html/ssa-082556.html
- https://cert-portal.siemens.com/productcert/html/ssa-202008.html