Don’t let overlooked obligations become incidents. Learn how.
Utility navigation bar redirect icon
Portal LoginSupportContact
Search
Close search
Huntress Logo in Teal
  • Platform Overview
    Managed EDR

    Get full endpoint visibility, detection, and response.

    Managed EDR

    Get full endpoint visibility, detection, and response.

    Managed ITDR

    Protect your Microsoft 365 and Google Workspace identities and email environments.

    Managed ITDR

    Protect your Microsoft 365 and Google Workspace identities and email environments.

    Managed SIEM

    Managed threat response and robust compliance support at a predictable price.

    Managed SIEM

    Managed threat response and robust compliance support at a predictable price.

    Managed Security Awareness Training

    Empower your teams with science-backed security awareness training.

    Managed Security Awareness Training

    Empower your teams with science-backed security awareness training.

    Managed ISPM

    Continuous Microsoft 365 and identity hardening, managed and enforced by Huntress experts.

    Managed ISPM

    Continuous Microsoft 365 and identity hardening, managed and enforced by Huntress experts.

    Managed ESPM

    Proactively secure endpoints against attacks.

    Managed ESPM

    Proactively secure endpoints against attacks.

    Integrations
    Integrations
    Support Documentation
    Support Documentation
    See Huntress in Action

    Quickly deploy and manage real-time protection for endpoints, email, and employees - all from a single dashboard.

    Huntress Cybersecurity
    See Huntress in Action

    Quickly deploy and manage real-time protection for endpoints, email, and employees - all from a single dashboard.

    Huntress Cybersecurity
  • Threats We Stop
    Phishing
    Phishing
    Business Email Compromise
    Business Email Compromise
    Ransomware
    Ransomware
    Infostealers
    Infostealers
    View Allright arrowView Allright arrow
    Industries We Serve
    Education
    Education
    Financial Services
    Financial Services
    State and Local Government
    State and Local Government
    Healthcare
    Healthcare
    Law Firms
    Law Firms
    Manufacturing
    Manufacturing
    Utilities
    Utilities
    View Allright arrowView Allright arrow
    Tailored Solutions
    MSPs
    MSPs
    Resellers
    Resellers
    SMBs
    SMBs
    Compliance
    Compliance
    What Gets Overlooked Gets Exploited

    Most days, nothing happens. But one day, something will.

    Huntress Cybersecurity
    Cybercriminals Have Evolved

    Get the intel on today’s cybercriminal groups and learn how to protect yourself.

    Huntress Cybersecurity
  • Pricing
  • Community Series
    The Product Lab

    Shape the next big thing in cybersecurity together.

    The Product Lab

    Shape the next big thing in cybersecurity together.

    Fireside Chat

    Real people. Real perspectives. Better conversations.

    Fireside Chat

    Real people. Real perspectives. Better conversations.

    Tradecraft Tuesday

    No products, no pitches – just tradecraft.

    Tradecraft Tuesday

    No products, no pitches – just tradecraft.

    _declassified

    Exposing hidden truths in the world of cybersecurity.

    _declassified

    Exposing hidden truths in the world of cybersecurity.

    Resources
    Upcoming Events
    Upcoming Events
    Ebooks
    Ebooks
    On-Demand Webinars
    On-Demand Webinars
    Videos
    Videos
    Whitepapers
    Whitepapers
    Datasheets
    Datasheets
    Cybersecurity Education
    Cybersecurity 101
    Cybersecurity 101
    Cybersecurity Guides
    Cybersecurity Guides
    Threat Library
    Threat Library
    Real Tradecraft, Real Results
    Real Tradecraft, Real Results
    2026 Cyber Threat Report
    2026 Cyber Threat Report
    The Huntress Blog
    Huntress Lands on the Microsoft Marketplace
    Huntress Cybersecurity
    Huntress Lands on the Microsoft Marketplace
    Huntress Cybersecurity
    How Huntress & DEFCERT Are Streamlining CMMC Assessment Prep
    Huntress Cybersecurity
    How Huntress & DEFCERT Are Streamlining CMMC Assessment Prep
    Huntress Cybersecurity
    Live Hacking Into Microsoft 365 with Kyle Hanslovan
    Huntress Cybersecurity
    Live Hacking Into Microsoft 365 with Kyle Hanslovan
    Huntress Cybersecurity
  • Why Huntress

    Go beyond AI in the fight against today’s hackers with Huntress Managed EDR purpose-built for your needs

    Huntress Cybersecurity
    Why Huntress

    Go beyond AI in the fight against today’s hackers with Huntress Managed EDR purpose-built for your needs

    Huntress Cybersecurity
    The Huntress SOC

    24/7 Security Operations Center

    The Huntress SOC

    24/7 Security Operations Center

    Reviews

    Why businesses of all sizes trust Huntress to defend their assets

    Reviews

    Why businesses of all sizes trust Huntress to defend their assets

    Case Studies

    Learn directly from our partners how Huntress has helped them

    Case Studies

    Learn directly from our partners how Huntress has helped them

    Community

    Get in touch with the Huntress Community team

    Community

    Get in touch with the Huntress Community team

    Compare Huntress
    Bitdefender
    Bitdefender
    Blackpoint
    Blackpoint
    Breach Secure Now!
    Breach Secure Now!
    Crowdstrike
    Crowdstrike
    Datto
    Datto
    SentinelOne
    SentinelOne
    Sophos
    Sophos
    Compare Allright arrowCompare Allright arrow
  • HUNTRESS HUB

    Login to access top-notch marketing resources, tools, and training.

    Huntress Cybersecurity
    HUNTRESS HUB

    Login to access top-notch marketing resources, tools, and training.

    Huntress Cybersecurity
    Partners
    MSPs

    Join our partner community to deliver expert-led managed security.

    MSPs

    Join our partner community to deliver expert-led managed security.

    Resellers

    Partner program designed to grow your cybersecurity business.

    Resellers

    Partner program designed to grow your cybersecurity business.

    Tech Alliances

    Driving innovation through global technology Partnerships

    Tech Alliances

    Driving innovation through global technology Partnerships

    Microsoft Partnership

    A Level-Up for Your Business Security

    Microsoft Partnership

    A Level-Up for Your Business Security

  • Press Release
    Huntress Announces Collaboration with Microsoft to Strengthen Cybersecurity for Businesses of All Sizes
    Huntress Cybersecurity
    Press Release
    Huntress Announces Collaboration with Microsoft to Strengthen Cybersecurity for Businesses of All Sizes
    Huntress Cybersecurity
    Our Story

    We're on a mission to shatter the barriers to enterprise-level security.

    Our Story

    We're on a mission to shatter the barriers to enterprise-level security.

    Newsroom

    Explore press releases, news articles, media interviews and more.

    Newsroom

    Explore press releases, news articles, media interviews and more.

    Meet the Team

    Founded by former NSA Cyber Operators. Backed by security researchers.

    Meet the Team

    Founded by former NSA Cyber Operators. Backed by security researchers.

    Careers

    Ready to shake up the cybersecurity world? Join the hunt.

    Careers

    Ready to shake up the cybersecurity world? Join the hunt.

    Awards
    Awards
    Contact Us
    Contact Us
  • Portal Login
  • Support
  • Contact
  • Search
  • Get a Demo
  • Start for Free
Portal LoginSupportContact
Search
Close search
Get a Demo
Start for Free
HomeThreat LibraryVulnerabilities
CVE-2023-38545

CVE-2023-38545 Vulnerability

Published: 10/07/2025

Written by: Monica Burgess

Glitch effectGlitch effect

CVE-2023-38545, also known as "SOCKS5 heap buffer overflow," is a high-severity vulnerability in the widely used cURL library. This flaw allows a malicious server to trigger a buffer overflow in a connecting client, potentially leading to remote code execution (RCE). It affects applications that use libcurl for SOCKS5 proxy handshakes.

What is CVE-2023-38545 Vulnerability Wil Hayes?

CVE-2023-38545 is a heap-based buffer overflow vulnerability found in libcurl, one of the most common open-source libraries for transferring data with URLs. When an application uses libcurl to connect to a SOCKS5 proxy and the connection is slow, the logic for handling the hostname can get confused. If the hostname is longer than the buffer can handle, it can overflow, creating a perfect opportunity for an attacker to potentially execute arbitrary code on the client machine. This makes it a critical remote code execution (RCE) risk.

When Was it Discovered?

The vulnerability was reported to the cURL project on September 30, 2023, by security researcher Jay Satiro. Following responsible disclosure practices, the details were kept under wraps to allow developers time to create and distribute a fix. The public disclosure of CVE-2023-38545 occurred on October 11, 2023, alongside the release of patched versions of cURL and libcurl.

Affected Products & Versions

The vulnerability impacts a specific range of cURL and libcurl versions. If you're running any of the versions listed below, you need to patch immediately.

Product

Versions Affected

Fixed Versions

libcurl

7.69.0 to 8.3.0

8.4.0 and later

cURL

7.69.0 to 8.3.0

8.4.0 and later

CVE-2023-38545 Technical Description

So, how does this all go down? The CVE-2023-38545 exploitability hinges on a specific set of circumstances during a SOCKS5 proxy handshake. The vulnerability lives in the function that resolves hostnames. When libcurl is set to let the proxy handle hostname resolution (CURLOPT_PROXYTYPE set to CURLPROXY_SOCKS5_HOSTNAME), it first copies the hostname into a temporary buffer.

The problem starts when the connection handshake is slow. Libcurl switches from a blocking function to a non-blocking one. In this non-blocking mode, if the hostname is longer than the local buffer (typically 256 bytes), the data overflows. A malicious actor can control the hostname and exploit this overflow. By crafting a very long hostname and setting up a malicious SOCKS5 server, an attacker can overwrite memory on the heap, which could lead to a crash or, worse, remote code execution.

Tactics, Techniques & Procedures (TTPs)

An attacker looking to exploit CVE-2023-38545 would likely use social engineering or other means to trick a user into connecting to a malicious URL with a vulnerable application. The attacker would control the SOCKS5 proxy server. When the victim's application attempts to connect, the server intentionally slows down the handshake process. This triggers the vulnerable state in libcurl, and the server sends back an overly long hostname, causing the buffer overflow and allowing the attacker's code to run on the victim's system.

Indicators of Compromise (IOCs)

Given that this is a client-side vulnerability triggered by connecting to a malicious server, the primary CVE-2023-38545 vulnerability indicators of compromise involve network traffic. Monitor for unusual or suspicious outbound connections to SOCKS5 proxies. Look for DNS requests for exceptionally long hostnames, especially those that appear malicious or nonsensical. Any crashes in applications that heavily rely on cURL for network requests should also be investigated as a potential symptom of an attempted exploit.

Known Proof-of-Concepts & Exploits

Soon after the vulnerability was disclosed, security researchers began publishing CVE-2023-38545 proof of concept (PoC) code. These PoCs demonstrated how to trigger the crash and, in some cases, achieve arbitrary code execution under controlled conditions. While widespread, active exploitation campaigns haven't been as rampant as initially feared, the availability of these PoCs means that any unpatched system is a sitting duck. The potential for a CVE-2023-38545 exploit is very real.

How to Detect CVE-2023-38545 Vulnerability

Detecting this vulnerability requires a multi-layered approach. First and foremost, a robust asset inventory and vulnerability scanning process is key. You need to know which systems and applications on your network are using the affected versions of libcurl.

On the host level, Endpoint Detection and Response (EDR) solutions can help. Monitor processes that use libcurl for anomalous behavior, such as unexpected crashes or the spawning of suspicious child processes (like cmd.exe or powershell.exe). Network monitoring is also critical. SIEM rules can be configured to flag outbound connections to unknown SOCKS5 proxies or DNS queries for unusually long domain names.

Impact & Risk of CVE-2023-38545 Vulnerability

The impact of a successful CVE-2023-38545 exploit is severe. Because cURL is baked into countless applications, operating systems (including Windows, macOS, and Linux), and even IoT devices, the attack surface is enormous. A successful RCE gives an attacker a foothold inside your network. From there, they can move laterally, exfiltrate sensitive data, deploy ransomware, or use your system as a pivot point to attack others. The risk to data confidentiality, integrity, and availability is incredibly high.

Mitigation & Remediation Strategies

The best defense is a good offense. In this case, that means patching.

The primary CVE-2023-38545 vulnerability mitigation is to update cURL and libcurl to version 8.4.0 or newer. This version contains the official CVE-2023-38545 patch that fixes the heap buffer overflow.

If you can't patch immediately, there are a few workarounds:

  • Avoid using SOCKS5 proxies with hostname resolution in your applications.

  • If you must use a SOCKS5 proxy, do not set CURLPROXY_SOCKS5_HOSTNAME in your application's cURL options.

  • Block outbound SOCKS5 traffic at your firewall for all but explicitly trusted destinations.

Ultimately, patching is the only surefire way to remediate the risk. Don't wait for threat actors to find your vulnerable systems for you. A proactive approach to patch management, combined with effective threat detection tools like ITDR, is your best bet for staying secure.

CVE-2023-38545 Vulnerability FAQs

CVE-2023-38545 is a high-severity heap buffer overflow vulnerability in the cURL library. It occurs when a vulnerable application connects to a malicious SOCKS5 proxy. The proxy can send back an overly long hostname, which overflows a buffer in the client's memory, potentially allowing an attacker to execute arbitrary code.

This vulnerability doesn't "infect" systems like a virus. Instead, it's exploited when a user runs an application that uses a vulnerable version of libcurl to connect to an attacker-controlled server. The attacker tricks the application into a state where it accepts more data than it can handle, leading to the exploit.

Yes, absolutely. While patches have been available for some time, many systems and applications remain unpatched. Given cURL's widespread use in everything from cars to web servers, countless devices are likely still vulnerable, making it a persistent threat for attackers to target.

The most effective protection is to apply the CVE-2023-38545 patch by updating all instances of cURL and libcurl to version 8.4.0 or newer. Organizations should also use vulnerability scanners to identify affected assets and implement network monitoring to detect suspicious outbound SOCKS5 connections.

Glitch effectBlurry glitch effect

Protect What Matters

Secure endpoints, email, and employees with the power of our 24/7 SOC. Try Huntress for free and deploy in minutes to start fighting threats.
Try Huntress for Free
Huntress Managed Security PlatformManaged EDRManaged EDR for macOSManaged EDR for LinuxManaged ITDRManaged SIEMManaged Security Awareness TrainingManaged ISPMManaged ESPMBook a Demo
PhishingComplianceBusiness Email CompromiseEducationFinanceHealthcareManufacturingState & Local Government
Managed Service ProvidersResellersIT & Security Teams24/7 SOCCase Studies
BlogResource CenterCybersecurity 101Upcoming EventsSupport Documentation
Our CompanyLeadershipNews & PressCareersContact Us
Huntress white logo

Protecting 215k+ customers like you with enterprise-grade protection.

Privacy PolicyCookie PolicyTerms of UseCookie Consent
Linkedin iconTwitter X iconYouTube iconInstagram icon
© 2025 Huntress All Rights Reserved.

Join the Hunt

Get insider access to Huntress tradecraft, killer events, and the freshest blog updates.

By submitting this form, you accept our Terms of Service & Privacy Policy