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.

Severity (CVSS 3.1)6.5Medium
Exploit odds (30 days)1.7%top 22.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
AlmaLinux:8curl7.61.1-33.el8_9.5ALSA-2024:1601
AlmaLinux:9curl7.76.1-26.el9_3.3ALSA-2024:1129
AlmaLinux:9curl-minimal7.76.1-26.el9_3.3ALSA-2024:1129
AlmaLinux:8libcurl7.61.1-33.el8_9.5ALSA-2024:1601
AlmaLinux:9libcurl7.76.1-26.el9_3.3ALSA-2024:1129
AlmaLinux:8libcurl-devel7.61.1-33.el8_9.5ALSA-2024:1601
AlmaLinux:9libcurl-devel7.76.1-26.el9_3.3ALSA-2024:1129
AlmaLinux:8libcurl-minimal7.61.1-33.el8_9.5ALSA-2024:1601
AlmaLinux:9libcurl-minimal7.76.1-26.el9_3.3ALSA-2024:1129
Alpine:v3.20curl8.5.0-r0ALPINE-CVE-2023-46218
Alpine:v3.21curl8.5.0-r0ALPINE-CVE-2023-46218
Alpine:v3.22curl8.5.0-r0ALPINE-CVE-2023-46218
Alpine:v3.23curl8.5.0-r0ALPINE-CVE-2023-46218
Alpine:v3.24curl8.5.0-r0ALPINE-CVE-2023-46218
Debian:12curl7.88.1-10+deb12u5DEBIAN-CVE-2023-46218
Debian:12curl7.88.1-10+deb12u5DSA-5587-1
Debian:13curl8.5.0-1DEBIAN-CVE-2023-46218
Debian:14curl8.5.0-1DEBIAN-CVE-2023-46218
Rocky Linux:8curl0:7.61.1-33.el8_9.5RLSA-2024:1601
Ubuntu:22.04:LTScurl7.81.0-1ubuntu1.15UBUNTU-CVE-2023-46218
Ubuntu:22.04:LTScurl7.81.0-1ubuntu1.15USN-6535-1

Affected products (as reported)

VendorProductVersions
curl curl 8.4.0 – through 8.4.0

Weakness: CWE-178 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

References