PT-2023-5886 · Libcurl+13 · Libcurl+13

W0X42

·

Published

2023-09-30

·

Updated

2026-05-18

·

CVE-2023-38546

CVSS v3.1

3.7

Low

VectorAV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
Name of the Vulnerable Software and Affected Versions libcurl versions prior to 8.4.0
Description This issue allows an attacker to insert cookies at will into a running program using libcurl, if specific series of conditions are met. libcurl performs transfers and provides a function call that duplicates an easy handle called curl easy duphandle. If a transfer has cookies enabled when the handle is duplicated, the cookie-enable state is also cloned - but without cloning the actual cookies. If the source handle did not read any cookies from a specific file on disk, the cloned version of the handle would instead store the file name as none. Subsequent use of the cloned handle that does not explicitly set a source to load cookies from would then inadvertently load cookies from a file named none - if such a file exists and is readable in the current directory of the program using libcurl.
Recommendations Update to libcurl version 8.4.0 or later to resolve the issue. As a temporary workaround, consider explicitly setting a source to load cookies from when using the curl easy duphandle function to avoid inadvertently loading cookies from a file named none.

Exploit

Fix

DoS

Buffer Overflow

Heap Based Buffer Overflow

Weakness Enumeration

Related Identifiers

ALSA-2023:5763
ALSA-2023:6745
ALSA-2024:1601
ALT-PU-2023-6259
ALT-PU-2023-6261
ALT-PU-2023-6409
ALT-PU-2023-6453
AZL-31289
AZL-31502
AZL-34610
AZL-38099
BDU:2023-06576
BDU:2023-06579
CESA-2024_1601
CLEANSTART-2026-AY18527
CLEANSTART-2026-BW46578
CLEANSTART-2026-DI23929
CLEANSTART-2026-LQ42192
CLEANSTART-2026-OF85770
CVE-2023-38546
DLA-3613-1
DSA-5523-1
JLSEC-2025-35
MGASA-2023-0288
OESA-2023-1762
OPENSUSE-SU-2023_4044-1
OPENSUSE-SU-2024:13325-1
RHSA-2023:5700
RHSA-2023:5763
RHSA-2023:6292
RHSA-2023:6745
RHSA-2023:7540
RHSA-2023:7625
RHSA-2023_5763
RHSA-2023_6745
RHSA-2024:1601
RHSA-2024:2101
RHSA-2024_1601
RLSA-2023:5763
RLSA-2024:1601
SUSE-SU-2023:4043-1
SUSE-SU-2023:4044-1
SUSE-SU-2023:4045-1
SUSE-SU-2023:4650-1
SUSE-SU-2023_4650-1
USN-6429-1
USN-6429-2
USN-6429-3

Affected Products

Alt Linux
Almalinux
Astra Linux
Centos
Fortios
Ibm Aix
Linuxmint
Apple Macos
Red Hat
Red Os
Rocky Linux
Suse
Ubuntu
Libcurl