CVE-2023-38546

Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
18/10/2023
Last modified:
12/05/2026

Description

This flaw allows an attacker to insert cookies at will into a running program<br /> using libcurl, if the specific series of conditions are met.<br /> <br /> libcurl performs transfers. In its API, an application creates "easy handles"<br /> that are the individual handles for single transfers.<br /> <br /> libcurl provides a function call that duplicates en easy handle called<br /> [curl_easy_duphandle](https://curl.se/libcurl/c/curl_easy_duphandle.html).<br /> <br /> If a transfer has cookies enabled when the handle is duplicated, the<br /> cookie-enable state is also cloned - but without cloning the actual<br /> cookies. If the source handle did not read any cookies from a specific file on<br /> disk, the cloned version of the handle would instead store the file name as<br /> `none` (using the four ASCII letters, no quotes).<br /> <br /> Subsequent use of the cloned handle that does not explicitly set a source to<br /> load cookies from would then inadvertently load cookies from a file named<br /> `none` - if such a file exists and is readable in the current directory of the<br /> program using libcurl. And if using the correct file format of course.

Vulnerable products and versions

CPE From Up to
cpe:2.3:a:haxx:libcurl:*:*:*:*:*:*:*:* 7.9.1 (including) 8.4.0 (excluding)