{"document":{"category":"csaf_vex","csaf_version":"2.0","title":"CVE-2026-12087: Socket versions before 2.041 for Perl have an out-of-bounds heap read","publisher":{"category":"vendor","name":"HarborGuard Database","namespace":"https://database.harborguard.co"},"tracking":{"id":"CVE-2026-12087","status":"final","version":"1","initial_release_date":"2026-06-15T21:11:09.876Z","current_release_date":"2026-06-16T15:59:27.883Z","revision_history":[{"date":"2026-06-15T21:11:09.876Z","number":"1","summary":"Initial machine-readable export from HarborGuard."}]},"distribution":{"tlp":{"label":"WHITE"},"text":"Public CVE data; freely redistributable."},"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":"CVE description"}],"references":[{"category":"self","summary":"CVE-2026-12087 on HarborGuard Database","url":"https://database.harborguard.co/cve/CVE-2026-12087"},{"category":"external","summary":"CVE Record","url":"https://www.cve.org/CVERecord?id=CVE-2026-12087"},{"category":"external","summary":"metacpan.org","url":"https://metacpan.org/release/PEVANS/Socket-2.041/changes"},{"category":"external","summary":"github.com","url":"https://github.com/Perl/perl5/commit/de19a0b0ad1900fef976c5c1400bd8f11ec6c6cb.patch"}]},"product_tree":{"branches":[{"category":"vendor","name":"PEVANS","branches":[{"category":"product_name","name":"Socket","branches":[{"category":"product_version_range","name":"<2.041","product":{"name":"PEVANS Socket <2.041","product_id":"CSAFPID-1","product_identification_helper":{"cpe":"cpe:2.3:a:pevans:socket:*:*:*:*:*:*:*:*"}}}]}]}]},"vulnerabilities":[{"cve":"CVE-2026-12087","title":"Socket versions before 2.041 for Perl have an out-of-bounds heap 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":"CVE description"}],"product_status":{"known_affected":["CSAFPID-1"]},"scores":[{"cvss_v3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","baseScore":9.1,"baseSeverity":"CRITICAL"},"products":["CSAFPID-1"]}],"remediations":[{"category":"vendor_fix","details":"Update to a fixed version: 2.041.","product_ids":["CSAFPID-1"],"url":"https://github.com/Perl/perl5/commit/de19a0b0ad1900fef976c5c1400bd8f11ec6c6cb.patch"}]}]}