# CVE-2023-38546: cookie injection with none file

- Severity: Low 3.7 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 5.96%, higher than 93% of CVEs (2026-12-01)
- Published: 2023-10-11T08:00:00.000Z
- Modified: 2026-10-25T01:16:45.262Z
- Also known as: CURL-CVE-2023-38546
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- curl curl: from 8.4.0 before 8.4.0 (not affected: from 7.9.1 before 7.9.1)
- https://github.com/curl/curl.git: from 7.9.1 before 8.4.0; from 74d5a6fb3b9a96d9fa51ba90996e94c878ebd151 before 61275672b46d9abb3285740467b882e22ed75da8
- haxx libcurl: from 7.9.1 before 8.4.0

## Every score

- curl: rating Low
- NVD: CVSS:3.1 3.7 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N`

## References

- <https://curl.se/docs/CVE-2023-38546.html> (patch, third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/OGMXNRNSJ4ETDK6FRNU3J7SABXPWCHSQ/>
- <https://support.apple.com/kb/HT214036>
- <https://support.apple.com/kb/HT214063>
- <https://support.apple.com/kb/HT214057>
- <https://support.apple.com/kb/HT214058>
- <http://seclists.org/fulldisclosure/2024/Jan/34>
- <http://seclists.org/fulldisclosure/2024/Jan/37>
- <http://seclists.org/fulldisclosure/2024/Jan/38>
- <https://forum.vmssoftware.com/viewtopic.php?f=8&t=8868>
- <https://lists.debian.org/debian-lts-announce/2023/10/msg00016.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-943925.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-832273.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-093430.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-082556.html>

## Sources

- CVE List: [CVE-2023-38546](https://www.cve.org/CVERecord?id=CVE-2023-38546), CVE Terms of Use, modified 2026-10-14
- curl: [CURL-CVE-2023-38546](https://osv.dev/vulnerability/CURL-CVE-2023-38546), MIT, modified 2026-10-25
- NVD: [CVE-2023-38546](https://nvd.nist.gov/vuln/detail/CVE-2023-38546), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-38546 · Whole record: https://cve.day/CVE-2023-38546.json · Rebuilt by cve.day 2026-11-25T22:58:28.897Z
