---
title: "CVE-2026-126540"
canonical_url: "https://pkgseek.com/security/CVE-2026-126540"
locale: "en"
source: "pkgseek"
entity_type: "cve"
severity: "high"
---

# CVE-2026-126540

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.

CVE-2026-126540 is rated HIGH (7.5), with 4 indexed affected package builds across 2 distributions.

- **Severity / Score**: HIGH (7.5)
- **Affected builds**: 4
- **Affected distros**: 2
- **Distros with fixed_in**: None recorded in sample

## Affected Packages

| Distribution | Release | Package | Version | Fixed In |
| --- | --- | --- | --- | --- |
| Debian | trixie | libconvert-asn1-perl | 0.34-1 | — |
| Ubuntu | focal | libconvert-asn1-perl | 0.27-2 | — |
| Ubuntu | jammy | libconvert-asn1-perl | 0.33-1 | — |
| Ubuntu | noble | libconvert-asn1-perl | 0.34-1 | — |
