6.5medium
cookie mixed case PSL bypass
- Severity
- 6.5medium CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 1.69% (higher than 77% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- hackerone
- Also known as
- CURL-CVE-2023-46218
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
| Product or package | Versions | Reported by |
|---|---|---|
| curl curl | from 8.4.0 up to 8.4.0 Not affected: from 7.46.0 before 7.46.0 | CVE List |
| https://github.com/curl/curl.git | from 7.46.0 before 8.5.0, from e77b5b7453c1e8ccd7ec0816890d98e2f392e465 before 2b0994c29a721c91c572cff7808c572a24d251eb | curl |
| haxx curl | from 7.46.0 up to 8.4.0 | NVD |
| fedoraproject fedora | 39 | NVD |
All scores
| CISA-ADP | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N |
| curl | medium rating | |
| NVD | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N |
Classification
SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.
What each source says
CVE List
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.
curl
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
lowercase hostname curl.co.uk, even though co.uk is listed as a PSL
domain.
NVD (es)
Esta falla permite que un servidor HTTP malicioso establezca "supercookies" en curl que luego se devuelven a más orígenes de los que están permitidos o son posibles. Esto permite que un sitio establezca cookies que luego se enviarán a sitios y dominios diferentes y no relacionados. Podría hacer esto explotando una falla de mayúsculas y minúsculas en la función de curl que verifica un dominio de cookie determinado con Public Suffix List (PSL). Por ejemplo, una cookie podría configurarse con `domain=co.UK` cuando la URL utilizaba un nombre de host en minúscula `curl.co.uk`, aunque `co.uk` aparezca como un dominio PSL.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-46218 changed 2026-10-15 | CVE Terms of Use |
| curl | CURL-CVE-2023-46218 changed 2026-10-25 | MIT |
| NVD | CVE-2023-46218 changed 2026-06-17 | Public domain |