CVEfocus › CVE database › CVE-2026-56123

CVE-2026-56123socat 1.8.0.0 - 1.8.1.1 Heap Buffer Overflow via SOCKS5 Reply Parser

CVSS 8.1 HighEPSS 0.5% (higher than 39% of CVEs)Published 2026-06-25Updated 2026-07-14Assigner: VulnCheck

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.

CWE-122

What to do

Fixed builds are available from Alpine, Debian, Ubuntu: see the table below for the fixed version per release.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

8Fixed
1Will not fix
5Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04socatFixed1.8.1.1-1ubuntu0.1UBUNTU-CVE-2026-56123
Ubuntu 25.10socatWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-56123
Ubuntu 24.04socatFixed1.8.0.0-4ubuntu0.1UBUNTU-CVE-2026-56123
Ubuntu 22.04socatNot affected
vulnerable_code_not_present
Debian 14socatFixed1.8.1.3-1DEBIAN-CVE-2026-56123
Debian 13socatFixed1.8.0.3-1+deb13u1DEBIAN-CVE-2026-56123
Red Hat Enterprise Linux 10socatNot affected
Red Hat Enterprise Linux 9socatNot affected
Red Hat Enterprise Linux 8socatNot affected
Red Hat Enterprise Linux 7socatNot affected
Alpine Linux 3.24socatFixed1.8.1.2-r0ALPINE-CVE-2026-56123
Alpine Linux 3.23socatFixed1.8.1.2-r0ALPINE-CVE-2026-56123
Alpine Linux 3.22socatFixed1.8.1.2-r0ALPINE-CVE-2026-56123
Alpine Linux 3.21socatFixed1.8.1.2-r0ALPINE-CVE-2026-56123

What the vendor says

As published in the CVE record by VulnCheck, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.