Vulnerabilities

Vulnerability · CVE-2026-12087

Socket versions before 2.041 for Perl have an out-of-bounds heap read.

Published Jun 15, 2026 · catalog updated Nov 3, 2026 · Socket versions before 2.041

Last checked Nov 3, 2026. A connected source was read within the last 7 days.

Check if you run it

No confirmed exploitation is on record for CVE-2026-12087. EPSS is 0.57%. Act only if a listed version of Socket versions before 2.041 is installed.

Gaps on this record

  • The stored product name is a package slug. The name on this page is taken from the title (Socket versions before 2.041).
  • No vendor fix or required action is stored. Compare the linked advisory before you change production.
Severity
Critical9.1
Known exploitation
Not in CISA/VulnCheck KEV
EPSS
0.57%
Remediation
Advisory link
Affected products
Alpine:v3.24 perl

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.

Are you affected?

Enter the version you run. The result uses only the ranges stored on this record.

The check returns affected, not affected, or incomplete. It does not guess a version that is missing from the record.

  • Alpine:v3.24 perl0 → 5.42.3-r0

How to fix CVE-2026-12087

  • Upgrade

    CVE-2026-12087 lists a fix boundary at 5.42.3-r0. Compare the installed build with that boundary before you change production.

  • Version check

    Fixed in 5.42.3-r0

  • Official advisories

What to do

Three questions, each answered from this record only. Confirm the vendor advisory before you patch.

Should you patch?

No confirmed exploitation is on record for CVE-2026-12087. EPSS is 0.57%. Act only if a listed version of Socket versions before 2.041 is installed.

Which versions are affected?

Compare what you have installed with 0 → 5.42.3-r0. Compare the installed version with the linked vendor advisory before you change production.

What should an analyst verify?

No weakness class is stored. EPSS 0.57%. There is no CISA KEV listing. No Exploit-DB or Metasploit reference is linked. Use the source links for the original advisory.

Code

The project this record applies to. Exploit listings stay in References.

No public source repository is identified for this product.

Timeline

Detection, updates, and resolution for this record.

  1. Jun 15, 2026 · Trivy Vulnerability DB

    Detected

    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 co

  2. Nov 3, 2026 · Trivy Vulnerability DB

    Fix available

    perl fixed in 5.42.3-r0

  3. Nov 3, 2026 · Trivy Vulnerability DB

    Fix available

    perl fixed in 5.42.3-r0

  4. Nov 3, 2026 · Trivy Vulnerability DB

    Updated

    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 co

Sources

  • Trivy Vulnerability DBPackage advisoryALPINE-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 add

    osv.dev

References

Freshness

Last verified in this catalog Nov 3, 2026. Significant claims (KEV, EPSS, CVSS, affected ranges) come from the source rows above — open the original publisher for the authoritative advisory.

  • Trivy Vulnerability DBNov 3, 2026