Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAttacker controls or compromises a SOCKS5 proxy
-
DeliveryVictim socat connects out via SOCKS5
-
ExploitProxy returns crafted SOCKS5 reply
-
ExecutionOverflow heap buffer in reply parser
-
ImpactCorrupt heap memory / execute code in socat
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Heap buffer bounds checking
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that the target run socat as a SOCKS5 client - i.e. socat must be configured to connect through a SOCKS5 proxy (a socks5 address) - and that the attacker control the SOCKS5 proxy server's responses, either by operating a malicious proxy, compromising a legitimate one, or intercepting/modifying proxy replies in transit. The malformed data is delivered in the SOCKS5 server reply parsed by socat. No authentication on the victim is needed (PR:N) and no user interaction is required (UI:N), but exploitation is limited by the non-default usage path: socat must specifically be invoked with SOCKS5 proxying against an untrusted proxy, and the High attack complexity (AC:H) indicates additional conditions must align for reliable triggering. Deployments that never use socat's SOCKS5 client functionality are not exposed. |
| Impact | Signals are mixed and warrant careful prioritization. The CVSS 4.0 vector (AV:N, PR:N, UI:N, VC/VI/VA:H) yields a Critical 9.2, indicating high impact and no authentication, but the AC:H metric is the key qualifier: exploitation is not trivial and requires the victim's socat to specifically use SOCKS5 and connect to an attacker-controlled or compromised proxy. There is no CISA KEV listing (not actively exploited per available data) and no public exploit identified at time of analysis, so this is not a confirmed mass-exploitation event. EPSS was not provided and cannot be cited. The realistic risk is materially lower than the 9.2 headline for most deployments because socat is rarely run as a SOCKS5 client against untrusted proxies; however, environments that pivot through SOCKS5 proxies (including via untrusted networks where a proxy reply could be tampered with) should treat this as high priority. Note: the absence of EPSS and POC data means likelihood signals are incomplete - verify exploit maturity with the vendor/VulnCheck before downgrading. |
| Exploit ScenarioDerived | An attacker who controls or has compromised a SOCKS5 proxy (or can tamper with proxy replies on the network path) waits for a victim's socat process to connect outbound through that proxy. The proxy returns a crafted SOCKS5 reply with malformed length/address fields, overflowing a heap buffer in socat's parser to corrupt memory and potentially achieve code execution in the socat process. No public exploit is identified at this time, and the High attack complexity reflects the need for this specific SOCKS5 proxy-client interaction. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv3 – Jun 25, 2026
Heap-based buffer overflow in socat's SOCKS5 reply parser allows a malicious or compromised SOCKS5 proxy server to corrupt heap memory in clients that route connections through it, with potential for code execution. The flaw affects socat versions prior to 1.8.1.2 (packaged on Alpine Linux as 1.8.1.2-r0) and is triggered when socat acts as a SOCKS5 client and processes an attacker-crafted server reply. No public exploit identified at time of analysis; the CVSS 4.0 base score is 9.2, but the High attack complexity (AC:H) reflects that exploitation depends on a specific SOCKS5 usage path.
Earlier versions of this analysis (2)
Heap buffer overflow in socat's SOCKS5 reply parser allows a malicious or man-in-the-middle SOCKS5 proxy server to corrupt heap memory in clients that relay connections through it, with potential for remote code execution (VC:H/VI:H/VA:H). Affected builds are fixed in Alpine package 1.8.1.2-r0 and the corresponding upstream socat release. No public exploit identified at time of analysis, and high attack complexity (AC:H) plus the requirement of an attacker-controlled SOCKS5 endpoint constrain practical exploitation.
socat on Alpine Linux was patched in package version 1.8.1.2-r0, addressing an unspecified vulnerability. The nature of the flaw, its impact, and affected versions prior to the fix are not disclosed in available intelligence. No CVSS score, CWE classification, or vulnerability description has been published, making independent risk assessment impossible at this time.
RemediationAI
Upgrade socat to version 1.8.1.2 or later; on Alpine Linux install socat 1.8.1.2-r0 or newer (Vendor-released patch: 1.8.1.2 / Alpine 1.8.1.2-r0). Consult the upstream changelog (http://www.dest-unreach.org/socat/CHANGES) and the VulnCheck advisory (https://www.vulncheck.com/advisories/socat-heap-buffer-overflow-via-socks5-reply-parser) for details, and apply your distribution's corresponding backported package update. If immediate patching is not possible, the targeted compensating control is to avoid using socat's SOCKS5 client address types (do not route socat connections through SOCKS5 proxies) until updated, since the flaw is in the SOCKS5 reply parser; alternatively, restrict socat to only connect through trusted, controlled SOCKS5 proxies on protected network segments - the trade-off is loss of SOCKS5 proxying functionality or reduced flexibility in connection routing for affected automation.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
socat (SOcket CAT) is a widely-used command-line relay utility that establishes bidirectional byte streams between two endpoints (files, pipes, sockets, SSL, SOCKS proxies, etc.). This vulnerability is classified as CWE-122 (Heap-based Buffer Overflow) and resides specifically in the code that parses replies from a SOCKS5 proxy server, per the VulnCheck advisory ('socat heap-buffer-overflow via socks5 reply parser'). When socat is configured to reach a target through a SOCKS5 proxy (e.g. a SOCKS5 address type), it must parse the proxy's handshake/reply messages; insufficient bounds validation of attacker-controlled length or address fields in that reply lets data be written past an allocated heap buffer, corrupting adjacent heap structures.
Know when Socat gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Attacker-controlled SOCKS5 proxy reply reaches socat over the network without victim auth (AV:N/PR:N/UI:N), but the specific proxy-client path and heap-grooming make it AC:H; memory corruption yields full C/I/A impact.
Primary rating from Vendor (vendor:alpine).
CVSS VectorVendor: vendor:alpine
Lifecycle Timeline
4DescriptionCVE.org
Alpine Linux: socat fixed in 1.8.1.2-r0
Executive ViewAI
A critical heap-based buffer overflow in socat's SOCKS5 client implementation enables remote code execution on systems that route traffic through proxy servers. No public exploit identified at time of analysis, but the vulnerability poses severe risk to infrastructure that depends on socat for proxy-based network operations. The absence of a vendor patch requires immediate manual remediation.
No vendor-released patch identified at time of analysis. Interim mitigations: restrict socat SOCKS5 access to whitelisted trusted proxies via firewall policy; implement network segmentation to isolate socat-dependent infrastructure; disable SOCKS5 support where not operationally required; monitor socat process execution for anomalous behavior or unexpected proxy connections.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
A heap overflow occurs when a program writes data beyond the bounds of a buffer allocated in the heap memory region.
The signal handler implementations in socat before 1.7.3.0 and 2.0.0-b8 allow remote attackers to cause a denial of serv
Heap-based buffer overflow in the xioscan_readline function in xio-readline.c in socat 1.4.0.0 through 1.7.2.0 and 2.0.0
The OpenSSL address implementation in Socat 1.7.3.0 and 2.0.0-b8 does not use a prime number for the DH, which makes it
socat 1.2.0.0 before 1.7.2.2 and 2.0.0-b1 before 2.0.0-b6, when used for a listen type address and the fork option is en
Stack-based buffer overflow in socat 1.3.0.0 through 1.7.2.2 and 2.0.0-b1 through 2.0.0-b6 allows local users to cause a
EUVD-2026-39455
GHSA-6r8c-w5mj-43hv
NVD
CVE.org
EPSS
VulDB
Exploit-DB