Skip to content
OpenAdvisories
Unscored CVE-2023-38546 EUVD-2023-42345GHSA-x3qx-m3c2-qfhx

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

Published Oct 18, 2023 · Updated Oct 14, 2026 · Assigned by hackerone

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](https://curl.se/libcurl/c/curl_easy_duphandle.html).

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

VendorProductAffectedFixed
curl curl 8.4.0 – < 8.4.0 8.4.0

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 curl 8.3.0-3 —
Debian 13 curl 8.3.0-3 —
Debian 12 curl 7.88.1-10+deb12u4 DSA-5523-1
Debian 11 curl 7.74.0-1.3+deb11u10 DSA-5523-1
Debian 10 curl 7.64.0-4+deb10u7 DLA-3613-1
ReleasePackageFixed inAdvisory
Ubuntu 24.04 LTS curl 8.2.1-1ubuntu3.1 —
Ubuntu 22.04 LTS curl 7.81.0-1ubuntu1.14 USN-6429-1
Ubuntu 20.04 LTS curl 7.68.0-1ubuntu2.20 USN-6429-1
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS curl 7.58.0-2ubuntu3.24+esm2 USN-6429-2
Ubuntu Pro 16.04 LTS curl 7.47.0-1ubuntu2.19+esm10 USN-6429-2
Ubuntu Pro 14.04 LTS curl 7.35.0-1ubuntu2.20+esm17 USN-6429-2
ReleasePackageFixed inAdvisory
RHEL 9 curl +4 7.76.1-23.el9_2.4 RHSA-2023:6745, RHSA-2023:5763
RHEL 8 curl +3 7.61.1-33.el8_9.5 RHSA-2024:1601
Show 5 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat Rhel Satellite Client 6 puppet-agent 7.28.0-1.el6sat RHSA-2024:2101
RHEL 9.0 EUS curl +4 7.76.1-14.el9_0.9 RHSA-2023:5700
RHEL 8.8 EUS curl +3 7.61.1-30.el8_8.6 RHSA-2023:7540
RHEL 8.6 EUS curl +3 7.61.1-22.el8_6.9 RHSA-2023:6292
Red Hat JBoss Core Services 1 jbcs-httpd24-curl +2 8.4.0-2.el7jbcs RHSA-2023:7625
Red Hat JBoss Core Services 1 jbcs-httpd24-mod_http2 1.15.19-32.el7jbcs RHSA-2023:7625
Red Hat JBoss Core Services 1 jbcs-httpd24-mod_jk +1 1.2.49-1.redhat_1.el7jbcs RHSA-2023:7625
Red Hat JBoss Core Services 1 jbcs-httpd24-openssl +4 1:1.1.1k-16.el7jbcs RHSA-2023:7625

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 9 curl +4 7.76.1-23.el9_2.4 ALSA-2023:6745, ALSA-2023:5763
AlmaLinux 8 curl +3 7.61.1-33.el8_9.5 ALSA-2024:1601

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 9 curl 7.76.1-23.el9_2.4 RLSA-2023:5763
Rocky Linux 8 curl 7.61.1-33.el8_9.5 RLSA-2024:1601
ReleasePackageFixed inAdvisory
SLES 15 SP5 curl 8.0.1-150400.5.32.1 SUSE-SU-2023:4044-1
SLES 15 SP4 curl 8.0.1-150400.5.32.1 SUSE-SU-2023:4044-1
SLES 15 SP1 curl 7.60.0-150000.56.1 SUSE-SU-2023:4650-1
SLES 12 SP5 curl 8.0.1-11.74.1 SUSE-SU-2023:4043-1
Show 10 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 15 SP1 curl 7.60.0-150000.56.1 SUSE-SU-2023:4650-1
SLES for SAP 12 SP5 curl 8.0.1-11.74.1 SUSE-SU-2023:4043-1
SLE Micro 5.5 curl 8.0.1-150400.5.32.1 SUSE-SU-2023:4044-1
SLE Micro 5.4 curl 8.0.1-150400.5.32.1 SUSE-SU-2023:4044-1
SLE Micro 5.3 curl 8.0.1-150400.5.32.1 SUSE-SU-2023:4044-1
SLE Micro 5.2 curl 7.66.0-150200.4.60.1 SUSE-SU-2023:4045-1
SLE Micro 5.1 curl 7.66.0-150200.4.60.1 SUSE-SU-2023:4045-1
SLE HPC 15 SP1 curl 7.60.0-150000.56.1 SUSE-SU-2023:4650-1
SUSE Manager Server 4.2 curl 7.66.0-150200.4.60.1 SUSE-SU-2023:4045-1
SUSE Manager Proxy 4.2 curl 7.66.0-150200.4.60.1 SUSE-SU-2023:4045-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed curl 8.4.0-1.1 openSUSE-SU-2024:13325-1
openSUSE Leap 15.5 curl 8.0.1-150400.5.32.1 SUSE-SU-2023:4044-1
openSUSE Leap 15.4 curl 8.0.1-150400.5.32.1 SUSE-SU-2023:4044-1
ReleasePackageFixed inAdvisory
Alpine v3.24 curl 8.4.0-r0 —
Alpine v3.23 curl 8.4.0-r0 —
Alpine v3.22 curl 8.4.0-r0 —
Alpine v3.21 curl 8.4.0-r0 —
Alpine v3.20 curl 8.4.0-r0 —
Show 5 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 curl 8.4.0-r0 —
Alpine v3.18 curl 8.4.0-r0 —
Alpine v3.17 curl 8.4.0-r0 —
Alpine v3.16 curl 8.4.0-r0 —
Alpine v3.15 curl 8.4.0-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 curl +4 8.3.0-1.amzn2023.0.2 ALAS2023-2023-377
Amazon Linux 2023 ecs-service-connect-agent v1.27.2.0-1.amzn2023 ALAS2023-2023-420
Amazon Linux 2 curl +2 8.3.0-1.amzn2.0.4 ALAS2-2023-2287

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 cmake 3.21.4-10 —
Azure Linux 3 tensorflow 2.16.1-1 —
Azure Linux 2 (CBL-Mariner) cmake 3.21.4-10 —
Azure Linux 2 (CBL-Mariner) curl 8.3.0-2 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 9 curl +4 7.76.1-23.el9_2.4 ELSA-2023-6745, ELSA-2023-5763
Oracle Linux 8 curl +3 7.61.1-33.el8_9.5 ELSA-2024-1601

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling curl +1 8.4.0-r0 —

Advisories 46

References