Out-of-Bounds Heap Read in Socket for Perl by Perl
CVE-2026-12087

9.1CRITICAL

Key Information:

Vendor

Pevans

Status
Vendor
CVE Published:
15 June 2026

What is CVE-2026-12087?

The Socket module in Perl has a vulnerability where the function pack_ip_mreq_source() performs inadequate validation on its source argument. Specifically, it checks the byte length based on a prior multiaddr argument instead of validating the source argument directly. This oversight allows a source of an arbitrary length to pass through, potentially leading to an out-of-bounds read. As a result, copying a source value shorter than 4 bytes can expose sensitive adjacent heap memory, creating potential security risks.

Affected Version(s)

Socket 0 < 2.041

References

CVSS V3.1

Score:
9.1
Severity:
CRITICAL
Confidentiality:
High
Integrity:
None
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
None
Scope:
Unchanged

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.