Convert::ASN1 versions before 0.37 for Perl allow CPU exhaustion via quadratic bigint loop in os2ip. Every INTEGER or ENUMERATED longer than four cont...
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Ubuntu:16.04:LTSlibconvert-asn1-perl |
All versions→ Not listed |
Not listed |
| Ubuntu:18.04:LTSlibconvert-asn1-perl |
All versions→ Not listed |
Not listed |
| Ubuntu:20.04:LTSlibconvert-asn1-perl |
All versions→ Not listed |
Not listed |
| Ubuntu:22.04:LTSlibconvert-asn1-perl |
All versions→ Not listed |
Not listed |
| Ubuntu:24.04:LTSlibconvert-asn1-perl |
All versions→ Not listed |
Not listed |
| Ubuntu:26.10libconvert-asn1-perl |
All versions→ Not listed |
Not listed |
| Ubuntu:26.04:LTSlibconvert-asn1-perl |
All versions→ Not listed |
Not listed |
This record does not list fixed versions. Check the article or the vendor advisory in the references for whether and where it is fixed.
Original description The description as published by the source.
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.
Source: OSV.dev (Open Source Vulnerabilities) OSV
References
- report ubuntu.com
- report cve.org
- report lists.security.metacpan.org
- report github.com
- report github.com
- report metacpan.org