CVE-2023-38545: This flaw makes curl overflow a heap based buffer in the SOCKS5 proxy
handshake.
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.
Security readout for executives and security teams
Plain-English summary
CVE-2023-38545 is a high-severity curl/libcurl flaw in SOCKS5 proxy handling. A long hostname and a slow SOCKS5 handshake can trigger a heap buffer overflow. Business urgency is highest where systems use curl through SOCKS5 proxies and process user-influenced URLs.
Executive priority
Treat as high priority, not a confirmed emergency. Patch internet-facing, proxy-enabled, and URL-fetching systems first, then work through embedded products and appliances. Active exploitation is not supported by the provided evidence, but public PoC references increase remediation urgency.
Technical view
The issue is CWE-787: a heap-based buffer overflow during the SOCKS5 proxy handshake. When remote DNS resolution should be disabled for hostnames over 255 bytes, a state variable can keep the wrong value during slow negotiation, causing the oversized hostname to be copied into a heap buffer.
Likely exposure
Exposure depends on curl/libcurl use with SOCKS5 proxying where hostnames are passed to the proxy. Systems that fetch arbitrary URLs, use proxy egress, or embed libcurl in products need inventory review. The bundle lists curl as affected and shows downstream advisories from NetApp, Fedora, Apple, Siemens, and VMS Software.
Exploitation context
The CVSS score is 8.8 with network attack vector and user interaction required. The bundle does not show CISA KEV listing or active exploitation evidence. It does list public exploit or proof-of-concept GitHub references, so defenders should assume researchers and attackers can study the bug.
Researcher notes
Focus triage on libcurl consumers using SOCKS5 with proxy-side hostname resolution and slow handshakes. The source bundle is incomplete on exact fixed versions and product-specific impact, so rely on curl and vendor advisories for authoritative version mapping.
Mitigation direction
Identify curl and libcurl versions across hosts, containers, appliances, and embedded products.
Prioritize systems using SOCKS5 proxies or processing untrusted URLs.
Apply curl and downstream vendor security updates per official advisories.
Where patching is delayed, review vendor guidance for supported mitigations.
Track appliance advisories from NetApp, Apple, Siemens, Fedora, and VMS Software.
Validation and detection
Check SBOMs and package inventories for curl or libcurl presence.
Confirm whether SOCKS5 proxy mode is used in applications or egress paths.
Verify updated packages match vendor advisory guidance.
Review URL-fetching features for untrusted hostname input paths.
Document unresolved embedded or appliance dependencies for vendor follow-up.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · low confidence lookup
CWE-787: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
1CVSS vectors
3Timeline events
3ADP providers
19Source links
SSVC decision data
CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: pocAutomatable: noTechnical Impact: total
CVSS vector scores
1 official score
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-787 · source CWE mapping
Out-of-bounds Write
Out-of-bounds Write represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.