CVE-2023-38545: Heap Buffer Overflow in curl SOCKS5 Proxy Handshake
- Vendors
- NetAppFedora ProjectHaxxMicrosoft Corporation
CVE-2023-38545 is a heap-based buffer overflow affecting curl and libcurl versions 7.69.0 through 8.3.0 inclusive. When SOCKS5 proxy-side hostname resolution is enabled, curl should resolve hostnames exceeding the protocol's 255-byte limit locally and send only the resolved address. During a slow SOCKS5 handshake, the local variable controlling this fallback can acquire an incorrect value, causing an oversized hostname from the requested URL to be copied into a heap buffer instead. If the hostname exceeds the available buffer capacity, the copy corrupts heap memory, potentially causing an application crash or arbitrary code execution.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Exploitation can corrupt heap memory and crash the application using curl or libcurl, causing denial of service. Depending on memory layout and attacker control, the corruption may enable arbitrary code execution in the current process's security context, potentially compromising its accessible data and operations. Code execution is a potential consequence rather than a guaranteed outcome.
Mitigation
If you can’t patch tonight, do this now.
Until patched, disable SOCKS5 proxy-side hostname resolution: avoid CURLPROXY_SOCKS5_HOSTNAME and proxy settings using the socks5h scheme, including environment-variable configurations. If a SOCKS5 proxy is required, use local hostname resolution instead. For libcurl applications, explicitly configuring CURLOPT_BUFFERSIZE to at least 65,541 bytes prevents the described overflow, but does not replace patching. Restrict untrusted URL input and run affected applications with minimal privileges as supplementary controls.
Remediation
Patch, then assume compromise.
Upgrade curl and libcurl to version 8.4.0 or later, or install the applicable vendor-supported package containing a backported fix. Update applications, appliances, and container images that bundle affected libcurl versions; updating the operating system's standalone curl package does not necessarily replace embedded copies. For vendor-managed components, apply the product-specific security update rather than manually replacing bundled libraries.
Exploits
6 exploits validated by Mallory's analysis.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2023-38545 exploited in the wild?
- As of Nov 19, 2026, Mallory has no reports of CVE-2023-38545 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2023-38545?
- Yes. Mallory tracks 6 public exploits or proofs of concept for CVE-2023-38545, the earliest disclosed Oct 11, 2023.
- Is there a patch for CVE-2023-38545?
- Upgrade curl and libcurl to version 8.4.0 or later, or install the applicable vendor-supported package containing a backported fix. Update applications, appliances, and container images that bundle affected libcurl versions; updating the operating system's standalone curl package does not necessarily replace embedded copies.
- What products are affected by CVE-2023-38545?
- Haxx Libcurl, NetApp Activeiq Unified Manager, Fedora Project Fedora, NetApp Oncommand Insight, NetApp Oncommand Workflow Automation, and 8 more.
- How severe is CVE-2023-38545?
- CVE-2023-38545 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 18.0% (98th percentile) as of Nov 19, 2026.
Recent activity
50 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.