CVE-2026-126540 Convert::ASN1 versions before 0.37 for Perl allow CPU exhaustion via quadratic bigint loop in os2ip
- 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 quadratic bigint loop in os2ip.
Every INTEGER or ENUMERATED longer than four content octets reaches os2ip, which iterates over each content octet with $result = ($result * 256) + $octet. Each multiplication operates on a bigint that grows by one octet per step, so decoding an n-octet value takes O(n^2) bigint work. Nothing limits content length before this loop runs.
An attacker who controls the decoded data can exhaust CPU with a single oversized INTEGER or ENUMERATED value.
Upgrade path
8 packages: 5 fixed, 1 partially fixed, 2 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/libconvert-asn1-perl(Debian 12) | = 0.33-1; = 0.34-1; All versions | No fix listed | No fix yet |
| debian/libconvert-asn1-perl(Debian 13) | = 0.34-1; All versions | No fix listed | No fix yet |
| debian/libconvert-asn1-perl(Debian 14) | < 0.37-1; = 0.34-1; All versions | 0.37-1 | Partially fixed |
| 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 |
Affected products
| Product | Affected versions | Fixed 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:13) | All versions | No fix listed |
| debian/libconvert-asn1-perl(Debian:13) | = 0.34-1 | No fix listed |
| debian/libconvert-asn1-perl(Debian:14) | All versions | No fix listed |
| debian/libconvert-asn1-perl(Debian:14) | = 0.34-1 | No fix listed |
| debian/libconvert-asn1-perl(Debian:14) | < 0.37-1 | 0.37-1 |
References
- github.com patch
- metacpan.org release-notes
- github.com issue-tracking
- ENISA EUVD EUVD-2026-130799 third-party-advisory
- nvd.nist.gov
- Debian Security Tracker CVE-2026-126540 vendor-advisory
- bugs.debian.org issue-tracking
- security.alpinelinux.org vendor-advisory