CVE-2023-38545
Summary
| CVE | CVE-2023-38545 |
| State | PUBLIC |
| Assigner | [email protected] |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2023-10-18 04:15:00 UTC |
| Updated | 2024-04-01 15:45:00 UTC |
| Description | This flaw makes curl overflow a heap based buffer in the SOCKS5 proxy
handshake.
When curl is asked to pass along the host name to the SOCKS5 proxy to allow
that to resolve the address instead of it getting done by curl itself, the
maximum length that host name can be is 255 bytes.
If the host name is detected to be longer, curl switches to local name
resolving and instead passes on the resolved address only. Due to this bug,
the local variable that means "let the host resolve the name" could get the
wrong value during a slow SOCKS5 handshake, and contrary to the intention,
copy the too long host name to the target buffer instead of copying just the
resolved address there.
The target buffer being a heap based buffer, and the host name coming from the
URL that curl has been told to operate with. |
NVD Known Affected Configurations (CPE 2.3)
References
| Reference | Source | Link | Tags |
|---|
| January 2024 MySQL Cluster Vulnerabilities in NetApp Products | NetApp Product Security |
|
security.netapp.com |
|
| [SECURITY] Fedora 37 Update: curl-7.85.0-12.fc37 - package-announce - Fedora Mailing-Lists |
MISC |
lists.fedoraproject.org |
|
| curl - SOCKS5 heap buffer overflow - CVE-2023-38545 |
MISC |
curl.se |
|
| About the security content of macOS Ventura 13.6.4 - Apple Support |
|
support.apple.com |
|
| About the security content of macOS Sonoma 14.2 - Apple Support |
|
support.apple.com |
|
| www.secpod.com/blog/high-severity-heap-buffer-overflow-vulnerability |
|
www.secpod.com |
|
| seclists.org/fulldisclosure/2024/Jan/37 |
|
seclists.org |
|
| October 2023 MySQL Server Vulnerabilities in NetApp Products | NetApp Product Security |
MISC |
security.netapp.com |
|
| seclists.org/fulldisclosure/2024/Jan/38 |
|
seclists.org |
|
| seclists.org/fulldisclosure/2024/Jan/34 |
|
seclists.org |
|
| About the security content of macOS Monterey 12.7.3 - Apple Support |
|
support.apple.com |
|
| About the security content of iOS 16.7.5 and iPadOS 16.7.5 - Apple Support |
|
support.apple.com |
|
| CVE Program record |
CVE.ORG |
www.cve.org |
canonical |
| NVD vulnerability detail |
NVD |
nvd.nist.gov |
canonical, analysis |
No vendor comments have been submitted for this CVE.
Legacy QID Mappings
- 160994 Oracle Enterprise Linux Security Update for curl (ELSA-2023-5763)
- 161081 Oracle Enterprise Linux Security Update for curl (ELSA-2023-6745)
- 199825 Ubuntu Security Notification for curl Vulnerabilities (USN-6429-1)
- 199899 Ubuntu Security Notification for curl Vulnerabilities (USN-6429-3)
- 20369 Oracle MySQL OCT 2023 Critical Patch Update (CPUOCT2023)
- 20399 Oracle Database 19c Critical OJVM Patch Update - January 2024
- 20400 Oracle Database 19c Critical Patch Update - January 2024
- 20401 Oracle Database 21c Critical Patch Update - January 2024
- 242165 Red Hat Update for curl (RHSA-2023:5700)
- 242183 Red Hat Update for curl (RHSA-2023:5763)
- 242283 Red Hat Update for curl (RHSA-2023:6745)
- 242553 Red Hat Update for JBoss Core Services (RHSA-2023:7625)
- 242923 Red Hat Update for Satellite 6.14.2 (RHSA-2024:0797)
- 284621 Fedora Security Update for curl (FEDORA-2023-b855de5c0f)
- 284684 Fedora Security Update for curl (FEDORA-2023-fef2b8da32)
- 285202 Fedora Security Update for curl (FEDORA-2023-0f8d1871d8)
- 296105 Oracle Solaris 11.4 Support Repository Update (SRU) 63.157.1 Missing (CPUOCT2023)
- 296106 Oracle Solaris 11.4 Support Repository Update (SRU) 64.157.2 Missing (CPUOCT2023)
- 330154 IBM AIX Multiple Vulnerabilities due to curl (curl_advisory3)
- 356311 Amazon Linux Security Advisory for curl : ALAS2023-2023-377
- 356312 Amazon Linux Security Advisory for curl : ALAS2-2023-2287
- 378936 Microsoft Windows Curl Multiple Security Vulnerabilities
- 378999 Curl Heap Buffer Overflow Vulnerability
- 379000 Curl SOCKS5 Heap Buffer Overflow Vulnerability
- 379002 Libcurl Heap Buffer Overflow Vulnerability
- 379266 Oracle Hypertext Transfer Protocol (HTTP) Server Multiple Vulnerabilities (CPUJAN2024)
- 379298 Apple macOS Ventura 13.6.4 Not Installed (HT214058)
- 379300 Apple macOS Monterey 12.7.3 Not Installed (HT214057)
- 379346 HCL BigFix Multiple Security Vulnerabilities (KB0110209)
- 379590 Gitlab Multiple Vulnerabilities (prior to gitlab- 16.5.1, 16.4.2, 16.3.6)
- 44136 FortiOS Multiple Vulnerabilities (FG-IR-23-385)
- 44183 Juniper Network Operating System (Junos OS) Multiple Security Vulnerabilites (JSA79108)
- 503379 Alpine Linux Security Update for curl
- 505864 Alpine Linux Security Update for curl
- 6000245 Debian Security Update for curl (DSA 5523-1)
- 610539 Apple iOS 16.7.5 and iPadOS 16.7.5 Security Update Missing (HT214063)
- 673709 EulerOS Security Update for curl (EulerOS-SA-2023-3239)
- 673772 EulerOS Security Update for curl (EulerOS-SA-2024-1055)
- 673815 EulerOS Security Update for curl (EulerOS-SA-2023-3294)
- 673909 EulerOS Security Update for curl (EulerOS-SA-2024-1079)
- 673989 EulerOS Security Update for curl (EulerOS-SA-2023-3267)
- 674037 EulerOS Security Update for curl (EulerOS-SA-2023-3326)
- 691322 Free Berkeley Software Distribution (FreeBSD) Security Update for curl (d6c19e8c-6806-11ee-9464-b42e991fc52e)
- 691336 Free Berkeley Software Distribution (FreeBSD) Security Update for mysql (22df5074-71cd-11ee-85eb-84a93843eb75)
- 710772 Gentoo Linux curl Multiple Vulnerabilities (GLSA 202310-12)
- 755070 SUSE Enterprise Linux Security Update for curl (SUSE-SU-2023:4044-1)
- 755071 SUSE Enterprise Linux Security Update for curl (SUSE-SU-2023:4043-1)
- 907390 Common Base Linux Mariner (CBL-Mariner) Security Update for curl (31288-1)
- 907455 Common Base Linux Mariner (CBL-Mariner) Security Update for cmake (31501)
- 907481 Common Base Linux Mariner (CBL-Mariner) Security Update for cmake (31501-1)
- 941303 AlmaLinux Security Update for curl (ALSA-2023:5763)
- 941348 AlmaLinux Security Update for curl (ALSA-2023:6745)
- 961057 Rocky Linux Security Update for curl (RLSA-2023:5763)