Read the docs

Memory exhaustion in Convert::ASN1 for Perl via unbounded peek buffer growth

Priority LOW 39CWE-835Published · Updated

Key facts

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

Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA. Impact type from CWE-835.

Summary

Convert::ASN1 versions before 0.37 for Perl allow memory exhaustion in asn_recv. The function peeks the socket in a loop and doubles the buffer on each pass, because an inverted boolean guard and a missing exit for absent or incomplete lengths stop the loop from ending (CWE-835). A single truncated BER header sent to a process calling asn_recv doubles the peek buffer until memory is exhausted, and Perl's realloc failure is fatal and cannot be caught with eval.

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 unbounded MSG_PEEK buffer doubling in asn_recv. asn_recv peeks the socket in a loop, doubling the buffer size on each pass until a tag and length can be decoded. An inverted boolean guard ($tb || rather than $tb &&) prevents the need-more-data exit from firing once a tag byte has been decoded. When asn_decode_length returns no value because the length is absent or incomplete, no exit fires for that case either. MSG_PEEK leaves socket data unconsumed, so each re-peek returns at once while the buffer size doubles. A single truncated BER header sent to a process calling asn_recv doubles the peek buffer until memory is exhausted. Perl's realloc failure is fatal and not catchable with eval.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00521 37th 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 to version 0.37, which fixes the flaw. The sources list no fixed version for other products.

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-126568
  2. 2026-11-20 Alias added: GHSA-vgrj-p28p-6383
  3. 2026-11-20 CVSS score added · CISA ADP
  4. 2026-11-20 CISA SSVC decision points changed

References

Sources