{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-126568","id":"CVE-2026-126568","title":"Convert::ASN1 memory exhaustion in asn_recv socket peeking","description":"Convert::ASN1 versions before 0.37 for Perl allow memory exhaustion via unbounded MSG_PEEK buffer doubling in asn_recv.\n\nasn_recv peeks the socket in a loop, doubling the buffer size on each pass until a tag and length can be decoded. An inverted boolean guard ($tb || rather than $tb &&) prevents the need-more-data exit from firing once a tag byte has been decoded. When asn_decode_length returns n","descriptionLong":"Convert::ASN1 versions before 0.37 for Perl allow memory exhaustion via unbounded MSG_PEEK buffer doubling in asn_recv.\n\nasn_recv peeks the socket in a loop, doubling the buffer size on each pass until a tag and length can be decoded. An inverted boolean guard ($tb || rather than $tb &&) prevents the need-more-data exit from firing once a tag byte has been decoded. When asn_decode_length returns no value because the length is absent or incomplete, no exit fires for that case either. MSG_PEEK leaves socket data unconsumed, so each re-peek returns at once while the buffer size doubles.\n\nA single truncated BER header sent to a process calling asn_recv doubles the peek buffer until memory is exhausted. Perl's realloc failure is fatal and not catchable with eval.","published":"2026-11-20T00:23:24.479Z","updated":"2026-11-20T02:00:09.196384981Z","reserved":"2026-11-11T01:55:10.549Z","status":"PUBLISHED","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-835"],"aliases":[],"references":[{"url":"https://github.com/cpan-authors/perl-Convert-ASN1/commit/a30eae1dc6a977716b76f79f228fa0432e28bc5a.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-126568.json","tags":["advisory"]},{"url":"https://github.com/cpan-authors/perl-Convert-ASN1","tags":["package"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-126568","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.00208,"epssPercentile":0.11076,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-126568","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-126568","ok":false,"note":"unavailable (rate limited?)"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-126568","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-126568","ok":true,"note":"scored 2026-11-20"}],"aiTitle":true,"tech":[],"critical":[],"attention":null}