cve.bz

CVE-2026-56123 dest-unreach socat: Heap-based Buffer Overflow

9.2 criticalEPSS 0.3%

Critical (9.2) in dest-unreach socat. EPSS 0.3% estimated probability of exploitation activity in the next 30 days.

On this page
socat versions 1.8.0.0 through 1.8.1.1 contain a heap-based buffer overflow vulnerability that allows a malicious SOCKS5 proxy server to overwrite adjacent heap memory by exploiting a sign-extension flaw in the DOMAINNAME reply parser. During connection setup, the domain name length byte is read through a signed char field causing a negative bytes_to_read value that is implicitly converted to size_t, resulting in an unbounded heap write into the 262-byte reply buffer with attacker-controlled size and content.

Severity

CVSS 4.0

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

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 25th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-06-26. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-122 Heap-based Buffer Overflow
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-56123 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-56123?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-56123?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-56123 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
socatfrom 1.8.0.0 before 1.8.1.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian13socat1.8.0.3-1+deb13u1DEBIAN-CVE-2026-56123
Debian14socat1.8.1.3-1DEBIAN-CVE-2026-56123
Ubuntu24.04:LTSsocat1.8.0.0-4ubuntu0.1UBUNTU-CVE-2026-56123 USN-8511-1
Ubuntu25.10socatno fix listedUBUNTU-CVE-2026-56123
Ubuntu26.04:LTSsocat1.8.1.1-1ubuntu0.1UBUNTU-CVE-2026-56123 USN-8511-1
openSUSETumbleweedsocat1.8.1.3-1.1openSUSE-SU-2026:11151-1
Alpinev3.21, v3.22, v3.23 and 1 moresocat1.8.1.2-r0ALPINE-CVE-2026-56123
Alpaquita25, streamsocat1.8.1.2-r0BELL-CVE-2026-56123

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · openSUSE · Alpine · Alpaquita.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This issue affected socat versions 1.8.0.0 - 1.8.1.1. Red Hat Enterprise Linux 7, 8, 9, and 10 include older socat 1.7.* versions and are therefore not affected by this issue.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10socatNot affected
Red Hat Enterprise Linux 7socatNot affected
Red Hat Enterprise Linux 8socatNot affected
Red Hat Enterprise Linux 9socatNot affected
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-8Not affected
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-9Not affected
Red Hat OpenShift Container Platform 5openshift/ose-rhel-coreos-9Not affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-56123.

Attack patterns (CAPEC)

  • CAPEC-92 Forced Integer Overflow Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON