Skip to main content
Mallory
CriticalPublic exploitVulnerability

CVE-2023-38545: Heap Buffer Overflow in curl SOCKS5 Proxy Handshake

Published Oct 18, 2023 · Updated 9 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days1 mention · peak 1 in a dayToday
CVSS9.8Critical · v3.1
EPSS18.0%98th percentile
CISA KEVNoNot listed
In the wildNonePublic exploit, no exploitation reported
Vendors
NetAppFedora ProjectHaxxMicrosoft Corporation
IdentifiersCVE-2023-38545CWE-122

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.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

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.

Public exploits

Exploits

6 exploits validated by Mallory's analysis.

View more in app →
CVE-2023-38545This repository contains a Python exploit script (CVE-2023-38545.py) and a README file. The exploit targets a vulnerability in SOCKS proxy servers (CVE-2023-38545). The script connects to a specified SOCKS server and port, then repeatedly sends a malicious HTTP response. The response includes a shell payload in the Location header, which, if executed by the vulnerable server, will open a reverse shell to the attacker's machine using netcat. The payload is a typical bash reverse shell that uses a FIFO file at /tmp/f. The script requires the attacker to specify the target SOCKS server's IP and port, as well as their own IP and port for the reverse shell connection. The README provides a brief description of the exploit's purpose. No detection or fake code is present; this is a functional exploit with a real payload.d0rb · Disclosed Oct 17, 2023 · python · networkOperationalCVE-2023-38545This repository is a proof-of-concept exploit designed to test HTTP clients for vulnerabilities related to handling large or malformed HTTP redirect responses. The structure consists of a C-based client ('client.c') that connects to a local HTTP server via a SOCKS5 proxy, and a Python script ('server/cat.py') that serves a large, crafted HTTP 301 response from 'payload.txt' over a netcat listener on port 8000. The README files provide build and usage instructions. The main exploit capability is to deliver an overlong Location header in an HTTP response, potentially triggering buffer overflows or improper handling in the client. No specific CVE or product is targeted, but the setup is generic for testing HTTP client robustness. The endpoints involved are local (127.1:8000 for the server, 127.0.0.1:10801 for the proxy), and the payload is a text-based HTTP response. The repository contains 5 files, with code in C and Python, and is structured for easy setup and testing of the exploit scenario.UTsweetyfish · Disclosed Oct 11, 2023 · c · python · networkPoCCVE-2023-38545This repository provides a proof-of-concept (PoC) exploit for CVE-2023-38545, a vulnerability in curl 7.74.0. The structure includes the full curl 7.74.0 source code, build scripts, and documentation. The main exploit steps are documented in the README.md, which instructs the user to build curl with OpenSSL, run a local SOCKS5 proxy (such as Tor on 127.0.0.1:9050), set the ALL_PROXY environment variable, and execute the curl binary with a very long argument (10,000 'A's). This triggers the vulnerability, demonstrating a crash or abnormal behavior as a PoC. The repository does not contain weaponized or automated exploitation code, but provides a clear demonstration of the issue. No hardcoded remote endpoints are present; the only fingerprintable endpoints are the local curl binary and the local SOCKS5 proxy. The exploit is network-based, as it requires network proxying to trigger the vulnerable code path.imfht · Disclosed Oct 12, 2023 · bash · python · networkPoCCVE-2023-38545-libcurl-SOCKS5-heap-buffer-overflowThis repository provides a proof-of-concept (POC) exploit for CVE-2023-38545, a heap buffer overflow vulnerability in libcurl when using a SOCKS5 proxy and following HTTP redirects to long hostnames. The repository contains three files: 'poc.c' (a C program using libcurl to make an HTTP request via a SOCKS5 proxy), 'server.py' (a Python HTTP server that issues a 301 redirect to a URL with an excessively long hostname), and 'readme.md' (detailed instructions and background). The exploit works by running a local SOCKS5 proxy (e.g., via SSH), starting the malicious HTTP server, and executing the C POC, which triggers the vulnerable code path in libcurl. The main attack vector is network-based, requiring the victim to connect to a malicious server through a SOCKS5 proxy. The endpoints involved are local addresses for the proxy and HTTP server. The exploit demonstrates the vulnerability but does not include weaponized payloads or post-exploitation code.fatmo666 · Disclosed Oct 12, 2023 · c · python · networkPoCCVE-2023-38545-sampleThis repository is a proof-of-concept exploit for CVE-2023-38545, a vulnerability in cURL. The repository contains a Dockerfile to set up a controlled environment with a specific vulnerable version of cURL (7.81.0), a Bash script (malicious_redirect_server.sh) that runs a malicious HTTP server on 127.0.0.1:8000, and a Python script (tgsocksproxy.py) that implements a SOCKS5 proxy on 127.0.0.1:1080. The exploit works by having cURL make a request through the local SOCKS5 proxy to the malicious HTTP server, which responds with an oversized Location header, triggering a segmentation fault in cURL. The README provides detailed setup and usage instructions. The exploit demonstrates denial of service and potential memory corruption, but does not provide a weaponized or post-exploitation payload. The main attack vector is local network communication within the Docker container, and the endpoints involved are 127.0.0.1:8000 (malicious HTTP server) and 127.0.0.1:1080 (SOCKS5 proxy).vanigori · Disclosed Oct 12, 2023 · bash · python · networkPoCCVE-2023-38545This repository is a Proof of Concept (PoC) exploit for CVE-2023-38545, a heap buffer overflow vulnerability in curl (versions 7.69.0 to 8.3.1) when handling HTTP redirects via a SOCKS5 proxy. The repository contains: - `cve202338545.sh`: The main exploit script, written in bash, which checks the installed curl version and orchestrates the test by connecting to a SOCKS5 proxy and an HTTP server. It parses command-line arguments for proxy and server IPs, runs a crafted curl command, and analyzes the output to determine vulnerability status. - `server.py`: A Python script that implements a simple HTTP server on port 8080. It responds to requests with a 301 redirect, where the Location header contains a very large string, designed to trigger the vulnerability in curl. - `setup_socks5.sh`: Bash script to install and configure the Dante SOCKS5 proxy server on port 1080 without authentication, and set up logging. - `cleanup.sh`: Bash script to remove the Dante SOCKS5 proxy and restore the original configuration. - `README.md`: Detailed instructions for setting up the environment, running the exploit, and interpreting results. The exploit is network-based, requiring the target to connect through a SOCKS5 proxy to an HTTP server that serves the malicious redirect. The scripts are modular, allowing for easy setup and cleanup of the test environment. The endpoints involved are the SOCKS5 proxy on port 1080 and the HTTP server on port 8080. The exploit does not provide a weaponized payload but is a reliable PoC for detection and research purposes.bcdannyboy · Disclosed Oct 16, 2023 · bash · python · networkPoC
Exposure surface

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.

VendorProductType
Fedora ProjectFedoraoperating_system
HaxxLibcurlapplication
Microsoft CorporationWindows 10 1809operating_system
Microsoft CorporationWindows 10 21h2operating_system
Microsoft CorporationWindows 10 22h2operating_system
Microsoft CorporationWindows 11 21h2operating_system
Microsoft CorporationWindows 11 22h2operating_system
Microsoft CorporationWindows 11 23h2operating_system
Microsoft CorporationWindows Server 2019operating_system
Microsoft CorporationWindows Server 2022operating_system
NetAppActiveiq Unified Managerapplication
NetAppOncommand Insightapplication
NetAppOncommand Workflow Automationapplication
FAQ

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.
Activity feed

Recent activity

50 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
tenable cloud security pluginsNews · Oct 20, 2026Echo: curl-7.69.1: security update to 7.69.1+e1curl-8.1.1: sec... | Tenable®A heap-based buffer overflow in curl's SOCKS5 proxy handshake. During a slow handshake, incorrect hostname-resolution state can cause a hostname longer than 255 bytes to be copied into a heap buffer instead of the resolved address. The advisory rates the vulnerability critical, with a CVSS v3 base score of 9.8, and states that exploits are available. It recommends updating curl-7.69.1 and related packages to version 7.69.1+e1 or later; the title also identifies an update for curl-8.1.1 to 8.1.1+e1.Read more ↗arxivNews · Oct 14, 2026[2606.00669] NeuroLog: Reasoning You Can Audit -- Neuro-Symbolic Vulnerability Discovery via LLM Facts, Datalog, and SMTA SOCKS5 heap overflow affecting curl 8.3.0, rated CVSS 9.8. The paper uses it as an evaluation case for NeuroLog, reporting successful rediscovery and AddressSanitizer-confirmed crash validation.Read more ↗daniel haxx seNews · Oct 7, 2026Twenty-two pending curl vulnerabilities | daniel.haxx.seA previously disclosed HIGH-severity curl vulnerability that could cause a heap buffer overflow. It is mentioned as historical context for the severity of the forthcoming vulnerability.Read more ↗support hpNews · Mar 9, 2026HP Device Manager Vulnerability Update (5.0.16) | HP® SupportCritical vulnerability listed under Curl, affecting HP Device Manager versions before 5.0.16. The bulletin assigns a CVSS score of 9.8 and states that version 5.0.16 fixes it.Read more ↗
+27 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity5Community discussion across Reddit, Mastodon, and other social sources.