CVE-2026-12087: Socket versions before 2.041 for Perl have an out-of-bounds heap read
Affects perlSource GCVE Database
Not known to be exploited · CVSS 9.1 Critical · fixed in 5.18.2-2ubuntu1.7+esm8 : patch perl as a priority.
Data as of 24 Nov 2026, 21:15 UTC
Thin evidence
One scorer or none| CISA-ADP | CVSS 3.1 | 9.1 |
|---|
- EPSS
- 0.5% chance of exploitation in 30 days – higher than 49% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 5.18.2-2ubuntu1.7+esm8, 5.22.1-9ubuntu0.9+esm3, 5.26.1-6ubuntu0.7+esm3 +4
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 15 Jun 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.
What to do
Upgrade to a fixed release listed under Affected software.
Patches and advisories
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10libsocket-perlpkg:deb/ubuntu/libsocket-perl?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.04 LTSlibsocket-perlpkg:deb/ubuntu/libsocket-perl?arch=source&distro=resoluteOther threats | Affected
| Fixed in– |
Ubuntu 26.04 LTSperlpkg:deb/ubuntu/perl?arch=source&distro=resoluteOther threats | Affected
| Fixed in
|
Ubuntu 25.10libsocket-perlpkg:deb/ubuntu/libsocket-perl?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Ubuntu 25.10perlpkg:deb/ubuntu/perl?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSlibsocket-perlpkg:deb/ubuntu/libsocket-perl?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
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.
References
- ubuntu.com/security/CVE-2026-12087 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-12087 (opens in a new tab)
- lists.security.metacpan.org/cve-announce/msg/41020451/ (opens in a new tab)
- ubuntu.com/security/notices/USN-8675-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-8684-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-8675-2 (opens in a new tab)