{ "document": { "category": "csaf_security_advisory", "csaf_version": "2.0", "distribution": { "tlp": { "label": "WHITE", "url": "https://www.first.org/tlp/" } }, "lang": "en", "notes": [ { "category": "description", "text": "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.", "title": "Vulnerability Description" } ], "publisher": { "category": "other", "contact_details": "gdt@cpan.org", "name": "giterlizzi", "namespace": "https://github.com/giterlizzi/" }, "references": [ { "category": "self", "summary": "CPANSA-Socket-2026-12087 JSON", "url": "https://raw.githubusercontent.com/giterlizzi/perl-CPANSA-CSAF/develop/csaf/white/2026/cpansa-socket-2026-12087.json" }, { "category": "external", "summary": "https://github.com/Perl/perl5/commit/de19a0b0ad1900fef976c5c1400bd8f11ec6c6cb.patch", "url": "https://github.com/Perl/perl5/commit/de19a0b0ad1900fef976c5c1400bd8f11ec6c6cb.patch" }, { "category": "external", "summary": "https://metacpan.org/release/PEVANS/Socket-2.041/changes", "url": "https://metacpan.org/release/PEVANS/Socket-2.041/changes" }, { "category": "external", "summary": "http://www.openwall.com/lists/oss-security/2026/06/15/10", "url": "http://www.openwall.com/lists/oss-security/2026/06/15/10" }, { "category": "external", "summary": "CVE-2026-12087 (NVD)", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-12087" } ], "title": "Socket vulnerability", "tracking": { "current_release_date": "2026-06-15T00:00:00", "generator": { "engine": { "name": "CSAF Perl Toolkit", "version": "0.26" } }, "id": "CPANSA-Socket-2026-12087", "initial_release_date": "2026-06-15T00:00:00", "revision_history": [ { "date": "2026-06-15T00:00:00", "number": "1", "summary": "First release" } ], "status": "final", "version": "1" } }, "product_tree": { "branches": [ { "branches": [ { "category": "product_version_range", "name": "vers:cpan/<2.041", "product": { "name": "Socket less than 2.041", "product_id": "CSAFPID-0001", "product_identification_helper": { "purl": "pkg:cpan/Socket" } } }, { "category": "product_version_range", "name": "vers:cpan/>=2.041", "product": { "name": "Socket greater than or equal 2.041", "product_id": "CSAFPID-0002", "product_identification_helper": { "purl": "pkg:cpan/Socket" } } } ], "category": "product_name", "name": "Socket" } ] }, "vulnerabilities": [ { "cve": "CVE-2026-12087", "cwe": { "id": "CWE-125", "name": "Out-of-bounds Read" }, "notes": [ { "category": "description", "text": "Socket versions before 2.041 for Perl have an out-of-bounds heap read.\n\nIn 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.\n\nCalling pack_ip_mreq_source() with a source value shorter than 4 bytes copies adjacent heap memory into the returned packed structure.", "title": "Vulnerability Description" } ], "product_status": { "fixed": [ "CSAFPID-0002" ], "known_affected": [ "CSAFPID-0001" ] }, "scores": [ { "cvss_v3": { "baseScore": 9.1, "baseSeverity": "CRITICAL", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H", "version": "3.1" }, "products": [ "CSAFPID-0001" ] } ] } ] }