cve.bz

CVE-2026-12087 pevans socket: Out-of-bounds Read

9.1 criticalEPSS 0.6%

Critical (9.1) in pevans socket. EPSS 0.6% estimated probability of exploitation activity in the next 30 days.

On this page
Socket versions before 2.041 for Perl have an out-of-bounds heap read. In Socket.xs, pack_ip_mreq_source() checks the length of its source argument before the argument is read, so the check tests the byte length carried over from the preceding multiaddr argument instead. Both addresses occupy a 4-byte field, so a valid multiaddr lets a source of any length pass the check, and the source is then copied into the 4-byte imr_sourceaddr field with a fixed-size copy. A source shorter than 4 bytes is not rejected, and the copy reads up to 3 bytes past the end of its buffer. Calling pack_ip_mreq_source() with a source value shorter than 4 bytes copies adjacent heap memory into the returned packed structure.

Severity

CVSS 3.1

9.1 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
EPSS
0.6% (unchanged from 0.6% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 49th 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: yes · Technical impact: partial, assessed 2026-06-16. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-125 Out-of-bounds Read
CWE-805 Buffer Access with Incorrect Length Value
Published
Modified
Assigned by
CPANSec (CNA)
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-12087 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-12087?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-12087?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-12087 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
PEVANS Socketbefore 2.041

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12libsocket-perlno fix listedDEBIAN-CVE-2026-12087
Debian12perl5.36.0-7+deb12u4DEBIAN-CVE-2026-12087 DLA-4821-1
Debian13libsocket-perl2.038-1+deb13u1DEBIAN-CVE-2026-12087
Debian13perl5.40.1-6+deb13u1DEBIAN-CVE-2026-12087
Debian14libsocket-perl2.041-1DEBIAN-CVE-2026-12087
Debian14perl5.42.3-1DEBIAN-CVE-2026-12087
Ubuntu16.04:LTS, 18.04:LTS, 20.04:LTS and 4 morelibsocket-perlno fix listedUBUNTU-CVE-2026-12087
Ubuntu22.04:LTSperl5.34.0-3ubuntu1.8UBUNTU-CVE-2026-12087 USN-8675-1
Ubuntu24.04:LTSperl5.38.2-3.2ubuntu0.4UBUNTU-CVE-2026-12087 USN-8684-1
Ubuntu25.10perl, libsocket-perlno fix listedUBUNTU-CVE-2026-12087
Ubuntu26.04:LTSperl5.40.1-7ubuntu0.3UBUNTU-CVE-2026-12087 USN-8675-2
UbuntuPro:14.04:LTSperl5.18.2-2ubuntu1.7+esm8UBUNTU-CVE-2026-12087 USN-8675-1
UbuntuPro:16.04:LTSperl5.22.1-9ubuntu0.9+esm3UBUNTU-CVE-2026-12087 USN-8675-1
UbuntuPro:18.04:LTSperl5.26.1-6ubuntu0.7+esm3UBUNTU-CVE-2026-12087 USN-8675-1
UbuntuPro:20.04:LTSperl5.30.0-9ubuntu0.5+esm3UBUNTU-CVE-2026-12087 USN-8675-1
Red Hathummingbird:1perl-Socket, perl-Socket-tests0:2.041-1.hum1RHSA-2026:11342
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 13 moreperl5.26.1-150300.17.23.1SUSE-SU-2026:3558-1
SUSELinux Enterprise Server 12 SP5-LTSS, Linux Enterprise Server LTSS Extended Security 12 SP5perl5.18.2-12.35.1SUSE-SU-2026:3540-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0perl5.42.0-160000.3.1SUSE-SU-2026:22847-1
SUSELinux Micro 6.0perl5.38.2-5.1SUSE-SU-2026:23008-1
SUSELinux Micro 6.1perl5.38.2-slfo.1.1_3.1SUSE-SU-2026:23075-1
SUSELinux Micro 6.2perl5.42.0-160000.3.1SUSE-SU-2026:22929-1
openSUSELeap 16.0perl5.42.0-160000.3.1openSUSE-SU-2026:21411-1
Alpinev3.24perl5.42.3-r0ALPINE-CVE-2026-12087
Azure Linux3perl5.38.2-512AZL-90156

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

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

A flaw was found in the Perl Socket module's pack_ip_mreq_source() function. An incorrect length validation may allow an out-of-bounds heap read, potentially exposing up to a few bytes of adjacent memory. Successful exploitation requires an application to call the affected function with attacker-controlled input, which limits the practical impact to information disclosure.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

ProductPackageStateAdvisory
Red Hat Hardened Imagesperl-socket-main-2.041-1.hum1Fixed 2026-04-28RHSA-2026:11342
Red Hat Enterprise Linux 10perl-SocketFix deferred
Red Hat Enterprise Linux 10perl-Socket6Fix deferred
Red Hat Enterprise Linux 6perl-Socket6Out of support scope
Red Hat Enterprise Linux 7perl-SocketOut of support scope
Red Hat Enterprise Linux 7perl-Socket6Out of support scope
Red Hat Enterprise Linux 8perl-SocketFix deferred
Red Hat Enterprise Linux 8perl-Socket6Fix deferred
Red Hat Enterprise Linux 9perl-SocketFix deferred
Red Hat Enterprise Linux 9perl-Socket6Fix deferred

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-12087.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-26-295-11Siemens SIMATIC S7-1500 CPU 1518(F)-4 PN/DP MFP2026-10-13Critical Manufacturing, Transportation Systems, Energy, Healthcare and Public Health, Financial Services, Government Services and FacilitiesSIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) >= V3.1.7, SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) >= V3.1.7, SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) >= V3.1.7 and 2 morenone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

GitHub PoC (unverified)

Repositories on GitHub named after this CVE. Nobody has checked them and they are not scanned: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it.

Attack patterns (CAPEC)

  • CAPEC-540 Overread Buffers Likelihood: Low · Severity: High
  • CAPEC-100 Overflow Buffers Likelihood: High · Severity: Very High
  • CAPEC-256 SOAP Array Overflow Severity: High

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

References

Check your stackJSON