ALPINE-CVE-2026-126540: High severity alpine/perl-convert-asn1 vulnerability
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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
alpine/perl-convert-asn1to a version that resolves this vulnerability.Fixed in 0.37-r0 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 0.37
Event History
Frequently Asked Questions
Who is exposed to this issue?
Applications using Convert::ASN1 before 0.37 are exposed if they decode ASN.1 data that an attacker can control. A single oversized INTEGER or ENUMERATED value is sufficient to consume CPU.
Does exploitation require authentication, user interaction, or a special configuration?
No. The supplied severity vector indicates network-reachable exploitation with low complexity, no privileges, and no user interaction. The issue occurs because content length is not limited before integer conversion.
What input triggers the excessive CPU use?
An INTEGER or ENUMERATED ASN.1 value with more than four content octets reaches the vulnerable os2ip conversion loop. Very large values make the bigint arithmetic grow quadratically with input length.
How can I mitigate the issue if an update is not immediately available?
Reject or strictly limit the content length of ASN.1 INTEGER and ENUMERATED values before they are decoded by Convert::ASN1. Avoid processing untrusted ASN.1 input where such limits cannot be enforced.
How can I determine whether an application is affected?
Check whether it uses alpine/perl-convert-asn1 with a Convert::ASN1 version earlier than 0.37, and whether it decodes attacker-controlled ASN.1 data. Review inputs for INTEGER or ENUMERATED fields that may be supplied without size limits.