Vulnerability · Published Oct 18, 2023 · Assigned by hackerone
CVE-2023-38546
Low 3.7
In plain English
A low-severity security flaw in curl from curl. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 6.0% (higher than 93% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | curl | 7.61.1-33.el8_9.5 | ALSA-2024:1601 |
| AlmaLinux:9 | curl | 7.76.1-23.el9_2.4 | ALSA-2023:5763 |
| AlmaLinux:9 | curl | 7.76.1-26.el9_3.2 | ALSA-2023:6745 |
| AlmaLinux:9 | curl-minimal | 7.76.1-26.el9_3.2 | ALSA-2023:6745 |
| AlmaLinux:9 | curl-minimal | 7.76.1-23.el9_2.4 | ALSA-2023:5763 |
| AlmaLinux:8 | libcurl | 7.61.1-33.el8_9.5 | ALSA-2024:1601 |
| AlmaLinux:9 | libcurl | 7.76.1-26.el9_3.2 | ALSA-2023:6745 |
| AlmaLinux:9 | libcurl | 7.76.1-23.el9_2.4 | ALSA-2023:5763 |
| AlmaLinux:8 | libcurl-devel | 7.61.1-33.el8_9.5 | ALSA-2024:1601 |
| AlmaLinux:9 | libcurl-devel | 7.76.1-26.el9_3.2 | ALSA-2023:6745 |
| AlmaLinux:9 | libcurl-devel | 7.76.1-23.el9_2.4 | ALSA-2023:5763 |
| AlmaLinux:8 | libcurl-minimal | 7.61.1-33.el8_9.5 | ALSA-2024:1601 |
| AlmaLinux:9 | libcurl-minimal | 7.76.1-26.el9_3.2 | ALSA-2023:6745 |
| AlmaLinux:9 | libcurl-minimal | 7.76.1-23.el9_2.4 | ALSA-2023:5763 |
| Alpine:v3.20 | curl | 8.4.0-r0 | ALPINE-CVE-2023-38546 |
| Alpine:v3.21 | curl | 8.4.0-r0 | ALPINE-CVE-2023-38546 |
| Alpine:v3.22 | curl | 8.4.0-r0 | ALPINE-CVE-2023-38546 |
| Alpine:v3.23 | curl | 8.4.0-r0 | ALPINE-CVE-2023-38546 |
| Alpine:v3.24 | curl | 8.4.0-r0 | ALPINE-CVE-2023-38546 |
| Debian:12 | curl | 7.88.1-10+deb12u4 | DSA-5523-1 |
| Debian:12 | curl | 7.88.1-10+deb12u4 | DEBIAN-CVE-2023-38546 |
| Debian:13 | curl | 8.3.0-3 | DEBIAN-CVE-2023-38546 |
| Debian:14 | curl | 8.3.0-3 | DEBIAN-CVE-2023-38546 |
| Rocky Linux:8 | curl | 0:7.61.1-33.el8_9.5 | RLSA-2024:1601 |
| Rocky Linux:9 | curl | 0:7.76.1-23.el9_2.4 | RLSA-2023:5763 |
| Ubuntu:22.04:LTS | curl | 7.81.0-1ubuntu1.14 | USN-6429-1 |
| Ubuntu:22.04:LTS | curl | 7.81.0-1ubuntu1.14 | UBUNTU-CVE-2023-38546 |
| Ubuntu:24.04:LTS | curl | 8.2.1-1ubuntu3.1 | UBUNTU-CVE-2023-38546 |
Affected products (as reported)
References
- https://curl.se/docs/CVE-2023-38546.html
- 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