CVE-2023-38545

Summary

CVECVE-2023-38545
StatePUBLISHED
Assignerhackerone
Source PriorityCVE Program / NVD first with legacy fallback
Published2023-10-18 04:15:11 UTC
Updated2026-05-12 11:16:12 UTC
DescriptionThis 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.

Risk And Classification

Primary CVSS: v3.1 9.8 CRITICAL from [email protected]

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Problem Types: CWE-787 | CWE-787 CWE-787 Out-of-bounds Write


VersionSourceTypeScoreSeverityVector
3.1[email protected]Primary9.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
3.1ADPDECLARED8.8HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
3.1134c704f-9b21-4f2e-91b3-4a467353bcc0Secondary8.8HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

CVSS v3.1 Breakdown

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Fedoraproject Fedora 37 All All All
Application Haxx Libcurl All All All All
Operating System Microsoft Windows 10 1809 All All All All
Operating System Microsoft Windows 10 21h2 All All All All
Operating System Microsoft Windows 10 22h2 All All All All
Operating System Microsoft Windows 11 21h2 All All All All
Operating System Microsoft Windows 11 22h2 All All All All
Operating System Microsoft Windows 11 23h2 All All All All
Operating System Microsoft Windows Server 2019 All All All All
Operating System Microsoft Windows Server 2022 All All All All
Application Netapp Active Iq Unified Manager - All All All
Application Netapp Active Iq Unified Manager - All All All
Application Netapp Oncommand Insight - All All All
Application Netapp Oncommand Workflow Automation - All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Curl Curl affected 8.4.0 8.4.0 semver Not specified
CNA Curl Curl unaffected 7.69.0 7.69.0 semver Not specified
ADP Siemens RUGGEDCOM APE1808 affected * custom Not specified
ADP Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP affected V3.1.5 * custom Not specified
ADP Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP affected V3.1.5 * custom Not specified
ADP Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP affected V3.1.5 * custom Not specified
ADP Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP affected V3.1.5 * custom Not specified
ADP Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP affected V3.1.5 * custom Not specified

References

ReferenceSourceLinkTags
About the security content of macOS Sonoma 14.2 - Apple Support af854a3a-2127-422b-91ae-364da2661108 support.apple.com Third Party Advisory
seclists.org/fulldisclosure/2024/Jan/34 af854a3a-2127-422b-91ae-364da2661108 seclists.org Mailing List, Third Party Advisory
github.com/dbrugman/CVE-2023-38545-POC 134c704f-9b21-4f2e-91b3-4a467353bcc0 github.com
cert-portal.siemens.com/productcert/html/ssa-082556.html 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e cert-portal.siemens.com
October 2023 MySQL Server Vulnerabilities in NetApp Products | NetApp Product Security af854a3a-2127-422b-91ae-364da2661108 security.netapp.com Third Party Advisory
github.com/bcdannyboy/CVE-2023-38545 134c704f-9b21-4f2e-91b3-4a467353bcc0 github.com
github.com/UTsweetyfish/CVE-2023-38545 134c704f-9b21-4f2e-91b3-4a467353bcc0 github.com
www.secpod.com/blog/high-severity-heap-buffer-overflow-vulnerability af854a3a-2127-422b-91ae-364da2661108 www.secpod.com Patch, Third Party Advisory
About the security content of macOS Monterey 12.7.3 - Apple Support af854a3a-2127-422b-91ae-364da2661108 support.apple.com Third Party Advisory
seclists.org/fulldisclosure/2024/Jan/38 af854a3a-2127-422b-91ae-364da2661108 seclists.org Mailing List, Third Party Advisory
[SECURITY] Fedora 37 Update: curl-7.85.0-12.fc37 - package-announce - Fedora Mailing-Lists af854a3a-2127-422b-91ae-364da2661108 lists.fedoraproject.org Mailing List, Third Party Advisory
About the security content of macOS Ventura 13.6.4 - Apple Support af854a3a-2127-422b-91ae-364da2661108 support.apple.com Third Party Advisory
cert-portal.siemens.com/productcert/html/ssa-832273.html 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e cert-portal.siemens.com
cert-portal.siemens.com/productcert/html/ssa-507364.html 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e cert-portal.siemens.com
January 2024 MySQL Cluster Vulnerabilities in NetApp Products | NetApp Product Security af854a3a-2127-422b-91ae-364da2661108 security.netapp.com Third Party Advisory
seclists.org/fulldisclosure/2024/Jan/37 af854a3a-2127-422b-91ae-364da2661108 seclists.org Mailing List, Third Party Advisory
cert-portal.siemens.com/productcert/html/ssa-093430.html 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e cert-portal.siemens.com
curl - SOCKS5 heap buffer overflow - CVE-2023-38545 af854a3a-2127-422b-91ae-364da2661108 curl.se Patch, Third Party Advisory
forum.vmssoftware.com/viewtopic.php af854a3a-2127-422b-91ae-364da2661108 forum.vmssoftware.com
About the security content of iOS 16.7.5 and iPadOS 16.7.5 - Apple Support af854a3a-2127-422b-91ae-364da2661108 support.apple.com Third Party Advisory
cert-portal.siemens.com/productcert/html/ssa-943925.html 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e cert-portal.siemens.com
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

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)
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report