CVE-2026-126568
published high CVSS 3.1 · 7.5Convert::ASN1 versions before 0.37 for Perl allow memory exhaustion via unbounded MSG_PEEK buffer doubling in asn_recv
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Not stated | — | Convert-ASN10 to < 0.37 · Other versions: unaffected | Affected | Not stated | CPANSec |
| Amazon Linux | AL2 | Release evaluation | Not Affected; Pending Fix | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected; Pending Fix | Not stated | Amazon Linux assessment |
| Alpine Linux | edge | perl-convert-asn1 | Fixed | 0.37-r0 | Package fix record |
| Alpine Linux | v3.21 | perl-convert-asn1 | Fixed | 0.37-r0 | Package fix record |
| Alpine Linux | v3.22 | perl-convert-asn1 | Fixed | 0.37-r0 | Package fix record |
| Alpine Linux | v3.23 | perl-convert-asn1 | Fixed | 0.37-r0 | Package fix record |
| Alpine Linux | v3.24 | perl-convert-asn1 | Fixed | 0.37-r0 | Package fix record |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.5 / 10
- Severity
- high
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Convert-ASN1 | 0 to < 0.37 (affected · custom)Default: unaffected | CPANSec · cna |
Weaknesses
1- CWE-835 CWE-835 Loop with Unreachable Exit Condition
References
3Provider assertions
2CPANSec · cna
Convert::ASN1 versions before 0.37 for Perl allow memory exhaustion via unbounded MSG_PEEK buffer doubling in asn_recv
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- c430fb0d1eeb60371b3f2232c038ee011a1ca6d9506738e5898ec23d53273d71
- Ingested
- 20 Nov 2026, 18:58:50 UTC
- Source record
- Official CVE record