# CVE-2023-38546: This flaw allows an attacker to insert cookies at will into a running program using libcurl, if the specific series of…

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** LOW 3.7
- **CVSS:** 3.7 (v3.1, NVD) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: Low; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 1.91% (percentile 80, 2026-11-26)
- **Published:** 2023-10-18T03:51:31.276Z
- **Modified:** 2026-10-14T23:35:03.905Z

## Who should check

- Anyone running curl \>= 8.4.0, \< 8.4.0

## 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 and fixed versions

- curl: \>= 8.4.0, \< 8.4.0 (cvelist)

## Mitigation

- Upgrade curl to 8.4.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-38546. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-38546.md
Affected: curl >= 8.4.0, < 8.4.0
Fixed in: curl 8.4.0

Steps:
1. Search this machine and project for curl: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-38546 being exploited?

There is no confirmed exploitation: CVE-2023-38546 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.91% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-38546?

Low: CVSS 3.7 (v3.1, scored by NVD). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2023-38546?

curl \>= 8.4.0, \< 8.4.0.

### Is there a fix for CVE-2023-38546?

Yes. Fixed in curl 8.4.0. Upgrade curl to 8.4.0 or later.

### How do I check if I'm affected by CVE-2023-38546?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

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

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-38546>

HTML: <https://flawdb.com/CVE-2023-38546> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-38546>
