Skip to content

CVE-2023-38546 This flaw allows an attacker to insert cookies at will into a running program using libcurl, if the specific series of conditions are met. libcurl performs transfers. In its API, an application create...

LowCVSS 3.7 EPSS 6.0%
Published
Updated
Exploit status
No public exploit known

Description

This flaw allows an attacker to insert cookies at will into a running program
using libcurl, if the specific series of conditions are met.

libcurl performs transfers. In its API, an application creates "easy handles"
that are the individual handles for single transfers.

libcurl provides a function call that duplicates en 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 (using the four ASCII letters, no quotes).

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. And if using the correct file format of course.

Affected products

ProductAffected versionsFixed in
debian/curl(Debian:12) < 7.88.1-10+deb12u4 7.88.1-10+deb12u4
debian/curl(Debian:12) = 7.88.1-10 No fix listed
debian/curl(Debian:12) = 7.88.1-10+deb12u1 No fix listed
debian/curl(Debian:12) = 7.88.1-10+deb12u1~bpo11+1 No fix listed
debian/curl(Debian:12) = 7.88.1-10+deb12u2 No fix listed
debian/curl(Debian:12) = 7.88.1-10+deb12u3 No fix listed
debian/curl(Debian:12) = 7.88.1-10+deb12u3~bpo11+1 No fix listed
debian/curl(Debian:13) < 8.3.0-3 8.3.0-3
debian/curl(Debian:14) < 8.3.0-3 8.3.0-3
curl >= 8.4.0, < 8.4.0 8.4.0
Siemens RUGGEDCOM APE1808 All versions No fix listed
Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP >= V3.1.5 No fix listed
Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP >= V3.1.5 No fix listed
Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP >= V3.1.5 No fix listed
ubuntu/curl(Ubuntu:22.04) < 7.81.0-1ubuntu1.14 7.81.0-1ubuntu1.14
alpine/curl(Alpine:v3.15) < 8.4.0-r0 8.4.0-r0
alpine/curl(Alpine:v3.16) < 8.4.0-r0 8.4.0-r0
alpine/curl(Alpine:v3.17) < 8.4.0-r0 8.4.0-r0
alpine/curl(Alpine:v3.18) < 8.4.0-r0 8.4.0-r0
alpine/curl(Alpine:v3.19) < 8.4.0-r0 8.4.0-r0
alpine/curl(Alpine:v3.20) < 8.4.0-r0 8.4.0-r0
alpine/curl(Alpine:v3.21) < 8.4.0-r0 8.4.0-r0
alpine/curl(Alpine:v3.22) < 8.4.0-r0 8.4.0-r0
alpine/curl(Alpine:v3.23) < 8.4.0-r0 8.4.0-r0
alpine/curl(Alpine:v3.24) < 8.4.0-r0 8.4.0-r0
Show 2 more
ProductAffected versionsFixed in
ubuntu/curl(Ubuntu:24.04) < 8.2.1-1ubuntu3.1 8.2.1-1ubuntu3.1
haxx libcurl >= 7.9.1, < 8.4.0 8.4.0

References