PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-12087 PEVANS CVE debrief

CVE-2026-12087 details an out-of-bounds heap read issue in Socket versions before 2.041 for Perl. The vulnerability arises from incorrect length checks in the `pack_ip_mreq_source()` function, which can lead to reading up to 3 bytes past the end of a buffer. This issue is caused by the function checking the length of its source argument after it has been read, effectively bypassing the check for sources shorter than 4 bytes.

Vendor
PEVANS
Product
Socket
CVSS
CRITICAL 9.1
CISA KEV
Not listed in stored evidence
Original CVE published
2026-06-15
Original CVE updated
2026-06-16
Advisory published
2026-06-15
Advisory updated
2026-06-16

Who should care

Developers and administrators using Perl's Socket module versions before 2.041 should be aware of this vulnerability. Successful exploitation could lead to information disclosure or potentially other impacts depending on the specific application and context.

Technical summary

The `pack_ip_mreq_source()` function in Socket.xs incorrectly checks the length of its source argument. It verifies the length after reading the argument, which allows sources of any length to pass the check if preceded by a valid multiaddr. This leads to a fixed-size copy into a 4-byte field, causing an out-of-bounds read for sources shorter than 4 bytes.

Defensive priority

High

Recommended defensive actions

  • Update to Socket version 2.041 or later.
  • Review and patch vulnerable applications using the provided patches [ref-4].
  • Check for updates and advisories from the Perl project and relevant distributions [ref-5].

Evidence notes

Evidence from the NVD and CVE records indicate a high severity issue with significant potential impact. The vulnerability has been publicly disclosed and discussed on security mailing lists [ref-6].

Sources and references

Verified primary and authoritative sources

  • CVE-2026-12087 CVE Program record

    Publisher, destination, and source semantics verified

    URL: https://www.cve.org/CVERecord?id=CVE-2026-12087

    CVE Program - Official CVE Program record with source-provided CVE metadata.

  • CVE-2026-12087 NVD vulnerability detail

    Publisher, destination, and source semantics verified

    URL: https://nvd.nist.gov/vuln/detail/CVE-2026-12087

    NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.

Supplemental references

  • Source reference

    Unverified legacy reference

    URL: https://github.com/Perl/perl5/commit/de19a0b0ad1900fef976c5c1400bd8f11ec6c6cb.patch

    9b29abf9-4ab0-4765-b253-1875cd9b441e

  • Source reference

    Unverified legacy reference

    URL: https://metacpan.org/release/PEVANS/Socket-2.041/changes

    9b29abf9-4ab0-4765-b253-1875cd9b441e

Methodology and review provenance

AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.