Skip to content

CVE-2026-126576 Convert::ASN1 versions before 0.37 for Perl allow CPU exhaustion via unchecked exponent length in binary REAL decoding

HighCVSS 7.5 EPSS 0.53%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: partial
Technology
Debian

Description

Convert::ASN1 versions before 0.37 for Perl allow CPU exhaustion via unchecked exponent length in binary REAL decoding.

Binary REAL decoding never bounds-checks the exponent length against the available content. For a minimal one-byte binary REAL, the exponent byte is read from outside the element, making the mantissa length -1. Perl reads a negative length as an offset from the end of the string, so the mantissa is nearly all of the input that follows the element. The long-form exponent path also omits the extra length octet when sizing the mantissa.

An attacker who controls the decoded data can exhaust CPU with a list of such values, as each mantissa loop iterates over the remaining input. The decoded values are also computed from bytes outside each element.

Upgrade path

8 packages: 6 fixed, 2 with no fix yet.

PackageAffectedFixed inStatus
debian/libconvert-asn1-perl(Debian 12) = 0.33-1; = 0.34-1; = 0.37-1; All versions No fix listed No fix yet
debian/libconvert-asn1-perl(Debian 13) = 0.34-1; = 0.37-1; All versions No fix listed No fix yet
alpine/perl-convert-asn1(Alpine v3.21) < 0.37-r0 0.37-r0 Fixed
alpine/perl-convert-asn1(Alpine v3.22) < 0.37-r0 0.37-r0 Fixed
alpine/perl-convert-asn1(Alpine v3.23) < 0.37-r0 0.37-r0 Fixed
alpine/perl-convert-asn1(Alpine v3.24) < 0.37-r0 0.37-r0 Fixed
cpan Convert-ASN1 < 0.37 0.37 Fixed
debian/libconvert-asn1-perl(Debian 14) < 0.37-1; = 0.34-1 0.37-1 Fixed

Affected products

ProductAffected versionsFixed in
cpan Convert-ASN1 < 0.37 0.37
alpine/perl-convert-asn1(Alpine:v3.21) < 0.37-r0 0.37-r0
alpine/perl-convert-asn1(Alpine:v3.22) < 0.37-r0 0.37-r0
alpine/perl-convert-asn1(Alpine:v3.23) < 0.37-r0 0.37-r0
alpine/perl-convert-asn1(Alpine:v3.24) < 0.37-r0 0.37-r0
debian/libconvert-asn1-perl(Debian:12) All versions No fix listed
debian/libconvert-asn1-perl(Debian:12) = 0.33-1 No fix listed
debian/libconvert-asn1-perl(Debian:12) = 0.34-1 No fix listed
debian/libconvert-asn1-perl(Debian:12) = 0.37-1 No fix listed
debian/libconvert-asn1-perl(Debian:13) All versions No fix listed
debian/libconvert-asn1-perl(Debian:13) = 0.34-1 No fix listed
debian/libconvert-asn1-perl(Debian:13) = 0.37-1 No fix listed
debian/libconvert-asn1-perl(Debian:14) < 0.37-1 0.37-1
debian/libconvert-asn1-perl(Debian:14) = 0.34-1 No fix listed

References