CPANSA-Convert-ASN1-2026-126540: Convert-ASN1 vulnerability
| Publisher | giterlizzi | Document category | csaf_security_advisory |
|---|---|---|---|
| Initial release date | 2026-11-20T00:00:00 | Engine | CSAF Perl Toolkit 0.26 |
| Current release date | 2026-11-20T00:00:00 | Build Date | |
| Current version | 1 | Status | final |
| CVSS v3.1 Base Score | 7.5 | Severity | High |
| Original language | Language | en | |
| Also referred to | |||
Vulnerability 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.
Vulnerabilities
CVE-2026-126540
Vulnerability DescriptionConvert::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.
| Weakness | CWE-407 : Inefficient Algorithmic Complexity |
|---|
Product status
Known affected
| Product | Score | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Convert-ASN1 less than 0.37 |
|
Fixed
- Convert-ASN1 greater than or equal 0.37
giterlizzi
Namespace: https://github.com/giterlizzi/
gdt@cpan.org
References
- CPANSA-Convert-ASN1-2026-126540 JSON self
https://raw.githubusercontent.com/giterlizzi/perl-CPANSA-CSAF/develop/csaf/white/2026/cpansa-convert-asn1-2026-126540.json - https://github.com/cpan-authors/perl-Convert-ASN1/commit/49b362c527e0af05fca9be1e97e4a340d95afa75.patch external
https://github.com/cpan-authors/perl-Convert-ASN1/commit/49b362c527e0af05fca9be1e97e4a340d95afa75.patch - https://github.com/cpan-authors/perl-Convert-ASN1/issues external
https://github.com/cpan-authors/perl-Convert-ASN1/issues - https://metacpan.org/release/TIMLEGGE/Convert-ASN1-0.37/changes external
https://metacpan.org/release/TIMLEGGE/Convert-ASN1-0.37/changes - CVE-2026-126540 (NVD) external
https://nvd.nist.gov/vuln/detail/CVE-2026-126540
Revision history
| Version | Date of the revision | Summary of the revision |
|---|---|---|
| 1 | Fri Nov 20 00:00:00 2026 | First release |
Sharing rules
TLP:WHITE
For the TLP version see: https://www.first.org/tlp/