{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-126540","id":"CVE-2026-126540","title":"Convert::ASN1 CPU exhaustion in INTEGER and ENUMERATED decoding","description":"Convert::ASN1 versions before 0.37 for Perl allow CPU exhaustion via quadratic bigint loop in os2ip.\n\nEvery 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 limit","descriptionLong":"Convert::ASN1 versions before 0.37 for Perl allow CPU exhaustion via quadratic bigint loop in os2ip.\n\nEvery 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.\n\nAn attacker who controls the decoded data can exhaust CPU with a single oversized INTEGER or ENUMERATED value.","published":"2026-11-20T00:22:00.317Z","updated":"2026-11-20T02:00:09.662357297Z","reserved":"2026-11-11T00:31:38.204Z","status":"Received","rejected":false,"assigner":"CPANSec","metric":null,"metrics":[],"rating":"unrated","products":["Convert-ASN1"],"affectedProducts":[{"vendor":"","product":"Convert-ASN1","defaultStatus":"unaffected","versions":[{"lessThan":"0.37","status":"affected","version":"0","versionType":"custom"}],"platforms":[]}],"packages":[],"cwes":["CWE-407"],"aliases":[],"references":[{"url":"https://github.com/cpan-authors/perl-Convert-ASN1/commit/49b362c527e0af05fca9be1e97e4a340d95afa75.patch","tags":["patch","fix"]},{"url":"https://metacpan.org/release/TIMLEGGE/Convert-ASN1-0.37/changes","tags":["release-notes","advisory"]},{"url":"https://github.com/cpan-authors/perl-Convert-ASN1/issues","tags":["issue-tracking","report"]},{"url":"https://cpan.org/modules","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/126xxx/CVE-2026-126540.json","tags":["advisory"]},{"url":"https://github.com/cpan-authors/perl-Convert-ASN1","tags":["package"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-126540","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":null,"epssPercentile":null,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-126540","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-126540","ok":true,"note":"Received"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-126540","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-126540","ok":false,"note":"no score yet"}],"aiTitle":true,"tech":[],"critical":[],"attention":null}