Skip to main content

socat CVE-2026-56123

| EUVDEUVD-2026-39455 CRITICAL
Heap-based Buffer Overflow (CWE-122)
N/A vendor:alpine GHSA-6r8c-w5mj-43hv
9.2
CVSS 4.0 · Vendor: vendor:alpine
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Attacker controls or compromises a SOCKS5 proxy
  2. Delivery
    Victim socat connects out via SOCKS5
  3. Exploit
    Proxy returns crafted SOCKS5 reply
  4. Execution
    Overflow heap buffer in reply parser
  5. Impact
    Corrupt 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv3 – 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)
v2 Jun 25, 2026 - 17:28 cvss changed CVSS 9.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.

v1 Jun 25, 2026 - 17:00

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

socat 1.8.0.0 <1.8.1.2

Affected Packages

euvd socat fix: 1.8.1.2

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

Vendor (vendor:alpine) PRIMARY 9.2 CRITICAL
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
vuln.today AI 8.1 HIGH

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.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (vendor:alpine).

CVSS VectorVendor: vendor:alpine

Attack Vector
Network
Attack Complexity
High
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

4
Patch available
Jun 25, 2026 - 18:03 EUVD
Analysis Updated
Jun 25, 2026 - 17:28 vuln.today
v3 - CVSS changed
Analysis Updated
Jun 25, 2026 - 17:28 vuln.today
v2 - CVSS changed
CVSS changed
Jun 25, 2026 - 17:22 NVD
9.2 (CRITICAL)

DescriptionCVE.org

Alpine Linux: socat fixed in 1.8.1.2-r0

Executive ViewAI

Why It Matters

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.

Business Impact: Severe
Compensating Controls

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

EPSS Score
0.3%
Top 79% exploitable
Prevalence
Medium
common Linux/container networking utility, but not installed by default everywhere
Data Quality
4 sources
Confidence: Medium

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
Very High

Priority Score

46
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +46
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy