CVE Explorer
CVE-2026-12087
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
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
1
Preserved source conflicts
No provider value was silently selected as the winner.
cwe · 2 assertions
{"cweId":"CWE-125","description":"CWE-125 Out-of-bounds Read","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:fc91374fba35845314982be318e2c592a0ac98321e030239df48a18609a6b603 · sha256:3f5916d4cd73fc39… · /containers/cna/problemTypes/0/descriptions/0
{"cweId":"CWE-805","description":"CWE-805 Buffer Access with Incorrect Length Value","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:fc91374fba35845314982be318e2c592a0ac98321e030239df48a18609a6b603 · sha256:3f5916d4cd73fc39… · /containers/cna/problemTypes/1/descriptions/0
Affected products and versions
1 source assertion{"collectionURL":"https://cpan.org/modules","defaultStatus":"unaffected","packageName":"Socket","product":"Socket","programFiles":["Socket.xs"],"programRoutines":[{"name":"pack_ip_mreq_source"}],"vendor":"PEVANS","versions":[{"lessThan":"2.041","status":"affected","version":"0","versionType":"custom"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:fc91374fba35845314982be318e2c592a0ac98321e030239df48a18609a6b603 · sha256:3f5916d4cd73fc39… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":9.1,"baseSeverity":"CRITICAL","confidentialityImpact":"HIGH","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:fc91374fba35845314982be318e2c592a0ac98321e030239df48a18609a6b603 · sha256:3f5916d4cd73fc39… · /containers/adp/1/metrics/0/cvssV3_1
CWE assertions
2 source assertions{"cweId":"CWE-125","description":"CWE-125 Out-of-bounds Read","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:fc91374fba35845314982be318e2c592a0ac98321e030239df48a18609a6b603 · sha256:3f5916d4cd73fc39… · /containers/cna/problemTypes/0/descriptions/0
{"cweId":"CWE-805","description":"CWE-805 Buffer Access with Incorrect Length Value","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:fc91374fba35845314982be318e2c592a0ac98321e030239df48a18609a6b603 · sha256:3f5916d4cd73fc39… · /containers/cna/problemTypes/1/descriptions/0
Source references
3 source assertions{"url":"http://www.openwall.com/lists/oss-security/2026/06/15/10"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:fc91374fba35845314982be318e2c592a0ac98321e030239df48a18609a6b603 · sha256:3f5916d4cd73fc39… · /containers/adp/0/references/0
{"tags":["patch"],"url":"https://github.com/Perl/perl5/commit/de19a0b0ad1900fef976c5c1400bd8f11ec6c6cb.patch"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:fc91374fba35845314982be318e2c592a0ac98321e030239df48a18609a6b603 · sha256:3f5916d4cd73fc39… · /containers/cna/references/1
{"tags":["release-notes"],"url":"https://metacpan.org/release/PEVANS/Socket-2.041/changes"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:fc91374fba35845314982be318e2c592a0ac98321e030239df48a18609a6b603 · sha256:3f5916d4cd73fc39… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.