Security Advisory

CVE-2023-38546: curl Cookie Injection via none File

Last updated:
  • CVE-2023-38546

CVE-2023-38546 is a Low-rated libcurl flaw: when a program duplicates a transfer handle with cookies enabled, the copy can load cookies from a file named "none" in its current directory, letting an attacker who can place that file inject cookies. It affects libcurl 7.9.1 to 8.3.0, not the curl tool, and curl 8.4.0 fixed it.

Vulnerability summary

CVSS base score

3.7

Low severity

EPSS score (FIRST)

6.0%

Probability of exploitation in the wild in the next 30 days

CISA KEV catalog

No

Not listed

Published

Vulnerability ID: CVE-2023-38546 · Source: NVD

Affected components

ComponentCPEVersion range
curl / libcurl (cookie handling, curl_easy_duphandle)cpe:2.3:a:haxx:libcurl:*:*:*:*:*:*:*:*7.9.1 up to and including 8.3.0 (fixed in 8.4.0, 11 October 2023); the curl command line tool is not affected
Siemens SIMATIC S7-1500 CPU 1518(F)-4 PN/DP MFP, additional GNU/Linux subsystem (incl. SIPLUS variant)—firmware V3.1.5 (no fix for V3.1.5 per SSA-082556; V3.1.5 is no longer maintained, update to the latest version)
Siemens RUGGEDCOM APE1808 with Fortinet NGFW—Fortinet NGFW before V7.4.3 (fixed in V7.4.3, per SSA-832273)

What does this mean for affected devices?

CVE-2023-38546 is a cookie injection flaw in libcurl, rated Low by the curl project and classed as CWE-73 (external control of a filename or path). The curl advisory explains that when an application duplicates an easy handle with curl_easy_duphandle() while cookies are enabled, "the cookie-enable state is also cloned - but without cloning the actual cookies." If the original handle never read cookies from a file, the clone stores the filename as the four letters none. A later transfer on the clone that sets no cookie source of its own then loads cookies from a file named none "if such a file exists and is readable in the current directory of the program using libcurl". NVD's Primary CVSS 3.1 score is 3.7, vector CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N (NVD).

It affects libcurl 7.9.1 up to and including 8.3.0 and was fixed in curl 8.4.0 on 11 October 2023, the same release that fixed the SOCKS5 heap overflow CVE-2023-38545. curl 8.4.0 no longer stores the filename in the cookie struct. The advisory adds that "this flaw does not affect the curl command line tool"; only programs that call the library API with duplicated handles are exposed.

The conditions are narrow, which is why curl rates it Low: an embedded program must duplicate handles with cookies enabled, run with a working directory where an attacker can place a file called none in the Netscape cookie format, and then send the injected cookies somewhere they matter. On a device, that means looking at daemons and update or cloud agents that call curl_easy_duphandle() and checking whether their working directory (often / or a writable data partition) is writable by another process or user.

Siemens ProductCERT names industrial devices. SSA-082556, last updated 2026-10-13, lists CVE-2023-38546 with a Siemens CVSS 3.1 score of 3.7 for the additional GNU/Linux subsystem of the SIMATIC S7-1500 CPU 1518(F)-4 PN/DP MFP firmware V3.1.5, including the SIPLUS S7-1500 CPU 1518-4 PN/DP MFP. For that version Siemens states "Currently no fix is available", recommends limiting access to the subsystem's interactive shell to trusted personnel and only running applications from trusted sources, and notes that V3.1.5 is no longer maintained and users should update to the latest version. The V3.1.6 advisory, SSA-019113, did not list this CVE when checked on 2026-11-17. SSA-832273 lists the CVE, again at 3.7, for the RUGGEDCOM APE1808 running Fortinet NGFW before V7.4.3, with the update to V7.4.3 as the fix.

Version strings overstate exposure on Linux distributions because of backports. The Debian tracker marks the bug fixed in bookworm's 7.88.1-10+deb12u4 and bullseye's 7.74.0-1.3+deb11u10 (DSA-5523-1) and in buster's 7.64.0-4+deb10u7 (DLA-3613-1), and Ubuntu lists 22.04 LTS fixed in 7.81.0-1ubuntu1.14 and 20.04 LTS in 7.68.0-1ubuntu2.20. Device images built from those bases can carry the patch behind an older upstream version.

This CVE is not in the CISA KEV catalog as of 2026-11-17 (catalog version 2026.11.13, CISA KEV). FIRST EPSS gives it 0.0596, the 93.4th percentile, in its 2026-11-16 dataset (FIRST EPSS), high for a Low-rated flaw, so read it together with the reachability conditions above.

curl's recommendations are to upgrade to 8.4.0, apply the patch to the version in use, or call curl_easy_setopt(cloned_curl, CURLOPT_COOKIELIST, "ALL") right after every curl_easy_duphandle(). A device build that does not need cookies can also drop the code with --disable-cookies. Our libcurl vulnerabilities in embedded firmware guide shows how to find each libcurl copy in an image and decide which CVEs its build can reach, and our KEV and EPSS prioritisation guide explains how to weigh an EPSS score like this one. For a libcurl flaw that depends on the TLS backend, see CVE-2024-6197.

How to fix this class of issueThis advisory's weakness class is Path traversal. Our practical guide covers how to detect, fix, verify and disclose it: How to fix path traversal in embedded firmware.

Evidence

  • Duplicated easy handle clones cookie-enable state without cookies and stores the filename as none; later loads cookies from a readable file named none in the current directory; CWE-73; severity Low; affected 7.9.1 to 8.3.0; fixed 8.4.0 (advisory 11 Oct 2023); curl tool not affected; recommendations upgrade, patch, or CURLOPT_COOKIELIST "ALL" after curl_easy_duphandle(). — curl security advisory
  • NVD Primary CVSS 3.1 3.7 (AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N); CPE libcurl 7.9.1 to before 8.4.0; published 2023-10-18. — NVD
  • SSA-082556 (V8, 2026-10-13) lists CVE-2023-38546, Siemens CVSS 3.7, for SIMATIC S7-1500 CPU 1518(F)-4 PN/DP MFP V3.1.5 incl. SIPLUS; no fix available; mitigations: restrict shell access, run trusted applications; V3.1.5 no longer maintained. — Siemens SSA-082556
  • SSA-019113 (V3.1.6) did not list CVE-2023-38546 as of its 2026-10-13 version, checked 2026-11-17. — Siemens SSA-019113
  • SSA-832273 lists CVE-2023-38546 (CVSS 3.7) for RUGGEDCOM APE1808 with Fortinet NGFW before V7.4.3; fix: update to V7.4.3. — Siemens SSA-832273
  • Debian fixed in buster 7.64.0-4+deb10u7 (DLA-3613-1), bullseye 7.74.0-1.3+deb11u10 and bookworm 7.88.1-10+deb12u4 (DSA-5523-1). — Debian Security Tracker
  • Ubuntu 22.04 LTS fixed in 7.81.0-1ubuntu1.14, 20.04 LTS in 7.68.0-1ubuntu2.20; Ubuntu priority Low. — Ubuntu Security
  • Not in the CISA KEV catalog version 2026.11.13 as of 2026-11-17. — CISA KEV
  • EPSS 0.05956, percentile 0.93402, dataset 2026-11-16. — FIRST EPSS

Related advisories

Sources

  1. NVD
  2. curl: CVE-2023-38546 cookie injection with none file
  3. Siemens SSA-082556 (S7-1500 CPU 1518 MFP V3.1.5 GNU/Linux subsystem)
  4. Siemens SSA-019113 (S7-1500 CPU 1518 MFP V3.1.6 GNU/Linux subsystem)
  5. Siemens SSA-832273 (Fortigate NGFW on RUGGEDCOM APE1808)
  6. Debian Security Tracker
  7. Ubuntu Security: CVE-2023-38546
  8. CISA KEV
  9. CISA KEV data (catalog JSON)
  10. FIRST EPSS

Frequently asked questions

Does CVE-2023-38546 affect the curl command line tool?

No. The curl advisory states the flaw does not affect the curl command line tool; only programs that use libcurl's API and duplicate handles with curl_easy_duphandle() while cookies are enabled are exposed (per the curl advisory).

What does an attacker need to exploit CVE-2023-38546?

The ability to place a readable file named "none", in the Netscape cookie file format, in the current directory of a program that duplicates a cookie-enabled libcurl handle and then sets no cookie source on the copy. curl rates the flaw Low because this series of conditions is unlikely to line up (per the curl advisory).

Which industrial devices are affected by CVE-2023-38546?

Siemens SSA-082556 lists the additional GNU/Linux subsystem of the SIMATIC S7-1500 CPU 1518(F)-4 PN/DP MFP firmware V3.1.5, including the SIPLUS variant, with no fix for that version, and SSA-832273 lists the RUGGEDCOM APE1808 with Fortinet NGFW before V7.4.3 (per Siemens ProductCERT).

How do I fix CVE-2023-38546 in a device build?

Upgrade libcurl to 8.4.0 or later, apply the fix commit to the version in use, or call curl_easy_setopt(cloned_curl, CURLOPT_COOKIELIST, "ALL") right after every curl_easy_duphandle() call (per the curl advisory). Debian and Ubuntu backported the fix without changing the upstream version, for example in Debian bookworm's 7.88.1-10+deb12u4.

Is CVE-2023-38546 in the CISA KEV catalog?

No, it is absent from catalog version 2026.11.13 as of 2026-11-17. FIRST EPSS gives it 0.0596, the 93.4th percentile, in the 2026-11-16 dataset (per CISA KEV and FIRST EPSS).