{"id":"CVE-2026-126568","aliases":["CVE-2026-126568"],"related":[],"kind":"vulnerability","state":"published","title":"Convert::ASN1 versions before 0.37 for Perl allow memory exhaustion via unbounded MSG_PEEK buffer doubling in asn_recv","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-11-20T00:23:24.479Z","modified":"2026-11-24T19:10:01.980Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-835"],"affected":[{"ranges":[{"type":"custom","introduced":"0","fixed":"0.37","status":"affected"}],"package":"Convert-ASN1","repo":"https://github.com/cpan-authors/perl-Convert-ASN1","source":"cvelist"}],"references":[{"url":"https://github.com/cpan-authors/perl-Convert-ASN1/commit/a30eae1dc6a977716b76f79f228fa0432e28bc5a.patch","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://metacpan.org/release/TIMLEGGE/Convert-ASN1-0.37/changes","tags":["release-notes"],"sources":["cvelist","nvd"]},{"url":"https://github.com/cpan-authors/perl-Convert-ASN1/issues","tags":["issue-tracking"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"CPANSec","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-11-20T18:52:42.582Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-126568","url":"https://www.cve.org/CVERecord?id=CVE-2026-126568","licence":"CVE Terms of Use","modified":"2026-11-20T18:53:34.839Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-126568","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-126568","licence":"Public domain","modified":"2026-11-24T19:10:01.980Z"}],"updatedAt":"2026-11-25T22:59:52.251Z","epss":{"score":0.00521,"percentile":0.4573,"date":"2026-12-01T12:00:22.000Z"}}