Read the docs

Memory exhaustion in Convert::ASN1 for Perl via zero-length BIT STRING

Priority LOW 39CWE-1284Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
—
Confidentiality · integrity · availability
None · None · High
Fix status
Fixed

Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA.

Summary

Convert::ASN1 for Perl before 0.37 exhausts memory when decoding a BIT STRING with zero content octets. Perl treats the -1 length passed to substr as an offset from the end of the string, so the decoded value holds nearly all input that follows the element. In the constructed form each zero-length segment copies the rest of the input again, so memory use grows with the square of the input size. An attacker who controls the decoded data can exhaust memory with a short constructed BIT STRING, and the resulting value also contains bytes from adjacent input.

Written with Claude Haiku 5.5 from the sources below · 2026-11-20

Description from the CNA

Convert::ASN1 versions before 0.37 for Perl allow memory exhaustion via zero-length BIT STRING content. A BIT STRING with zero content octets passes -1 to substr as the length. Perl reads a negative length as an offset from the end of the string, so the decoded value is nearly all of the input that follows the element. In the constructed form each zero-length segment copies the rest of the input again, so memory grows with the square of the input size. An attacker who controls the decoded data can exhaust memory with a short constructed BIT STRING. The resulting value also contains bytes from adjacent input.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00483 34th percentileScored 2026-11-30
Fix Fixed Convert-ASN1: 0.37

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
Yes
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
—Convert-ASN1before 0.370.37Patch availableCNA
  • Convert-ASN1 Vendor— Affected before 0.37 Fixed in 0.37 Patch available CNA

Remediation

Upgrade Convert::ASN1 for Perl to version 0.37 or later, which fixes the issue.

Written with Claude Haiku 5.5 from the sources below · 2026-11-20

  • Fix · CNA Convert-ASN1 Fixed in 0.37

Timeline

  1. 2026-11-20 Threatist record created from CVE-2026-126819
  2. 2026-11-20 Alias added: GHSA-2gpm-x9q7-6prr
  3. 2026-11-20 CVSS score added · CISA ADP
  4. 2026-11-20 CISA SSVC decision points changed

References

Sources