Heap disclosure via reused source-length variable
Published Jun 15, 2026 · Updated Jun 15, 2026
Out-of-bounds heap read in Paul Evans Socket before 2.041 allows attackers to disclose adjacent heap data via a short source value. Socket.xs checks the source length before SvPVbyte reads that argument, leaving len equal to the preceding four-byte multiaddr length before a fixed-size copy into imr_sourceaddr. Exploitation requires consuming Perl code to pass an attacker-controlled source shorter than four bytes to pack_ip_mreq_source; the returned structure exposes at most three adjacent heap bytes.
Summary
What happened
Out-of-bounds heap read in Paul Evans Socket before 2.041 allows attackers to disclose adjacent heap data via a short source value. Socket.xs checks the source length before SvPVbyte reads that argument, leaving len equal to the preceding four-byte multiaddr length before a fixed-size copy into imr_sourceaddr. Exploitation requires consuming Perl code to pass an attacker-controlled source shorter than four bytes to pack_ip_mreq_source; the returned structure exposes at most three adjacent heap bytes.
The record
- CVE
- CVE-2026-12087
- Published
- Jun 15, 2026
- Updated
- Jun 15, 2026
- Vendor
- Paul Evans
- Product
- Socket
- Classifications
- CWE-125, CWE-805
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Jun 15, 2026CVE publishedPublication date reported by the CVE source.
- Jun 15, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=0 <2.041
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo