CVE-2026-131877: Convert::ASN1 versions before 0.37 for Perl allow CPU exhaustion via unbounded arc length in OBJECT IDENTIFIER decoding and encoding
Convert::ASN1 versions before 0.37 for Perl allow CPU exhaustion via unbounded arc length in OBJECT IDENTIFIER decoding and encoding.
The content of an OBJECT IDENTIFIER or RELATIVE-OID element is passed to unpack "w" on decode, and the arcs of an OID string to pack "w" on encode. Perl converts each arc to or from its decimal string in time quadratic in the arc's length, and nothing limits that length.
An attacker who controls the decoded data, or an OID string passed to encode, can exhaust CPU with a single oversized arc.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 0.37
Event History
Frequently Asked Questions
Which applications are exposed to this issue?
Applications using Convert::ASN1 before version 0.37 are exposed when they decode attacker-controlled OBJECT IDENTIFIER or RELATIVE-OID data, or when attacker-controlled OID strings can reach the encoding path.
What does an attacker need to trigger the CPU exhaustion?
The attacker needs to supply a value containing a single oversized OID arc. This can be delivered in ASN.1 data being decoded or in an OID string provided for encoding.
Is this limited to decoding untrusted ASN.1 input?
No. Decoding is affected when the encoded ASN.1 content is attacker-controlled, and encoding is also affected if an attacker can control an OID string passed to the library.
How can I determine whether my deployment is affected?
Check whether the application uses Convert::ASN1 and whether its installed version is earlier than 0.37. Then identify code paths that decode untrusted ASN.1 OBJECT IDENTIFIER or RELATIVE-OID elements or encode OID strings influenced by untrusted input.