{"schemaVersion":3,"id":"CVE-2026-12087","aliases":["MGASA-2026-0251","RHSA-2026:11342","UBUNTU-CVE-2026-12087","DEBIAN-CVE-2026-12087"],"status":"published","duplicateOf":null,"title":null,"description":"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.","dates":{"published":"2026-06-15T21:11:09.876Z","modified":"2026-06-16T15:59:27.883Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.1,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":9.1,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Red hat","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","exploitability":10,"impact":2.3,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":9.1,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","exploitability":10,"impact":8.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":9.1,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","exploitability":10,"impact":8.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":9.1,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00374,"percentile":0.30131,"severity":"low","asOf":"2026-10-21T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-21T00:00:00.000Z","baselineScore":0.00374},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00374,"percentile":0.30131}],"last30":[{"date":"2026-09-21T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00374,"percentile":0.30131}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-125","name":"Out-of-bounds Read","description":"The product reads data past the end, or before the beginning, of the intended buffer.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/125.html"},{"id":"CWE-805","name":"Buffer Access with Incorrect Length Value","description":"The product uses a sequential operation to read or write a buffer, but it uses an incorrect length value that causes it to access memory that is outside of the bounds of the buffer.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/805.html"}],"affected":[{"vendor":"debian","product":"libsocket-perl","name":"libsocket-perl","label":"libsocket-perl","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/libsocket-perl","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null},{"text":"< 2.038-1+deb13u1","noFixRecorded":false,"fixedIn":null},{"text":"< 2.041-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"All versions (No fix recorded) | < 2.038-1+deb13u1 | < 2.041-1","eol":null,"hubHref":null},{"vendor":"debian","product":"perl","name":"perl","label":"perl","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/perl","purlType":"deb","versions":[{"text":"< 5.36.0-7+deb12u4","noFixRecorded":false,"fixedIn":null},{"text":"< 5.40.1-6+deb13u1","noFixRecorded":false,"fixedIn":null},{"text":"< 5.42.3-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.36.0-7+deb12u4 | < 5.40.1-6+deb13u1 | < 5.42.3-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"libsocket-perl","name":"libsocket-perl","label":"libsocket-perl","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/libsocket-perl","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"perl","name":"perl","label":"perl","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/perl","purlType":"deb","versions":[{"text":"< 5.18.2-2ubuntu1.7+esm8","noFixRecorded":false,"fixedIn":null},{"text":"< 5.22.1-9ubuntu0.9+esm3","noFixRecorded":false,"fixedIn":null},{"text":"< 5.26.1-6ubuntu0.7+esm3","noFixRecorded":false,"fixedIn":null},{"text":"< 5.30.0-9ubuntu0.5+esm3","noFixRecorded":false,"fixedIn":null},{"text":"< 5.34.0-3ubuntu1.8","noFixRecorded":false,"fixedIn":null},{"text":"< 5.38.2-3.2ubuntu0.4","noFixRecorded":false,"fixedIn":null},{"text":"All versions","noFixRecorded":true,"fixedIn":null},{"text":"< 5.40.1-7ubuntu0.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.18.2-2ubuntu1.7+esm8 | < 5.22.1-9ubuntu0.9+esm3 | < 5.26.1-6ubuntu0.7+esm3 | < 5.30.0-9ubuntu0.5+esm3 | < 5.34.0-3ubuntu1.8 | < 5.38.2-3.2ubuntu0.4 | All versions (No fix recorded) | < 5.40.1-7ubuntu0.3","eol":null,"hubHref":null},{"vendor":"mageia","product":"perl-Socket","name":"perl-Socket","label":"perl-Socket","ecosystem":"Mageia","cpePart":null,"purl":"pkg:rpm/mageia/perl-Socket","purlType":"rpm","versions":[{"text":"< 2.41.0-1.mga10","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.41.0-1.mga10","eol":null,"hubHref":null},{"vendor":"mageia","product":"perl-Socket","name":"perl-Socket","label":"perl-Socket","ecosystem":"Mageia","cpePart":null,"purl":"pkg:rpm/mageia/perl-Socket","purlType":"rpm","versions":[{"text":"< 2.36.0-1.1.mga9","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.36.0-1.1.mga9","eol":null,"hubHref":null},{"vendor":"pevans","product":"socket","name":"Socket","label":"socket","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 2.041","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.041","eol":null,"hubHref":"/vendor/pevans/socket"},{"vendor":"redhat","product":"perl-Socket","name":"perl-Socket","label":"perl-Socket","ecosystem":"Red Hat","cpePart":null,"purl":"pkg:rpm/redhat/perl-Socket","purlType":"rpm","versions":[{"text":"< 0:2.041-1.hum1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0:2.041-1.hum1","eol":null,"hubHref":null},{"vendor":"redhat","product":"perl-Socket-tests","name":"perl-Socket-tests","label":"perl-Socket-tests","ecosystem":"Red Hat","cpePart":null,"purl":"pkg:rpm/redhat/perl-Socket-tests","purlType":"rpm","versions":[{"text":"< 0:2.041-1.hum1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0:2.041-1.hum1","eol":null,"hubHref":null}],"affectedCount":9,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://metacpan.org/release/PEVANS/Socket-2.041/changes","label":"metacpan.org/release/PEVANS/Socket-2.041/changes","hostname":"metacpan.org","tags":["Release Notes","ARTICLE"]},{"url":"https://github.com/Perl/perl5/commit/de19a0b0ad1900fef976c5c1400bd8f11ec6c6cb.patch","label":"github.com/Perl/perl5/commit/de19a0b0ad1900fef976c5c1400bd8f11ec6c6cb.patch","hostname":"github.com","tags":["Patch","ARTICLE"]},{"url":"http://www.openwall.com/lists/oss-security/2026/06/15/10","label":"www.openwall.com/lists/oss-security/2026/06/15/10","hostname":"www.openwall.com","tags":[]},{"url":"https://advisories.mageia.org/MGASA-2026-0251.html","label":"advisories.mageia.org/MGASA-2026-0251.html","hostname":"advisories.mageia.org","tags":["Advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=35708","label":"bugs.mageia.org/show_bug.cgi?id=35708","hostname":"bugs.mageia.org","tags":["REPORT"]},{"url":"https://www.openwall.com/lists/oss-security/2026/06/15/10","label":"www.openwall.com/lists/oss-security/2026/06/15/10","hostname":"www.openwall.com","tags":["WEB"]},{"url":"https://access.redhat.com/errata/RHSA-2026:11342","label":"access.redhat.com/errata/RHSA-2026:11342","hostname":"access.redhat.com","tags":["Advisory"]},{"url":"https://images.redhat.com/","label":"images.redhat.com","hostname":"images.redhat.com","tags":["ARTICLE"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-12087","label":"access.redhat.com/security/cve/CVE-2026-12087","hostname":"access.redhat.com","tags":["REPORT"]},{"url":"https://access.redhat.com/security/updates/classification/","label":"access.redhat.com/security/updates/classification/","hostname":"access.redhat.com","tags":["ARTICLE"]},{"url":"https://security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_11342.json","label":"security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_11342.json","hostname":"security.access.redhat.com","tags":["Advisory"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2489066","label":"bugzilla.redhat.com/show_bug.cgi?id=2489066","hostname":"bugzilla.redhat.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-12087","label":"www.cve.org/CVERecord?id=CVE-2026-12087","hostname":"www.cve.org","tags":["Advisory","REPORT"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-12087","label":"nvd.nist.gov/vuln/detail/CVE-2026-12087","hostname":"nvd.nist.gov","tags":["Advisory","Oval"]},{"url":"https://ubuntu.com/security/CVE-2026-12087","label":"ubuntu.com/security/CVE-2026-12087","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://lists.security.metacpan.org/cve-announce/msg/41020451/","label":"lists.security.metacpan.org/cve-announce/msg/41020451/","hostname":"lists.security.metacpan.org","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-8675-1","label":"ubuntu.com/security/notices/USN-8675-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://ubuntu.com/security/notices/USN-8684-1","label":"ubuntu.com/security/notices/USN-8684-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://ubuntu.com/security/notices/USN-8675-2","label":"ubuntu.com/security/notices/USN-8675-2","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-12087","label":"security-tracker.debian.org/tracker/CVE-2026-12087","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["OPENSUSE-SU-2026:21411-1","SUSE-SU-2026:22847-1","SUSE-SU-2026:22929-1","SUSE-SU-2026:23008-1","SUSE-SU-2026:23075-1","SUSE-SU-2026:3540-1","SUSE-SU-2026:3558-1","USN-8675-1","USN-8675-2","USN-8684-1"],"duplicates":[],"related":["OPENSUSE-SU-2026:21411-1","SUSE-SU-2026:22847-1","SUSE-SU-2026:22929-1","SUSE-SU-2026:23008-1","SUSE-SU-2026:23075-1","SUSE-SU-2026:3540-1","SUSE-SU-2026:3558-1","USN-8675-1","USN-8675-2","USN-8684-1"]},"timeline":[{"kind":"published","date":"2026-06-15T21:11:09.876Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-06-16T15:59:27.883Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-22T05:30:55.232Z","stale":false,"partial":false}}