{"id":"CVE-2026-126568","aliases":[],"title":"Convert::ASN1 versions before 0.37 for Perl allow memory exhaustion via unbounded MSG_PEEK buffer doubling in asn_recv","originalDescription":"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.","severity":{"cvss":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","label":"high"},"exploitation":{"kev":null,"epss":{"score":0.00521,"percentile":0.45793},"exploitDb":null},"affected":[{"ecosystem":"unknown","name":"Convert-ASN1","range":">=0, <0.37","fixed":"0.37"}],"references":[{"url":"https://github.com/cpan-authors/perl-Convert-ASN1/commit/a30eae1dc6a977716b76f79f228fa0432e28bc5a.patch","type":"patch"},{"url":"https://metacpan.org/release/TIMLEGGE/Convert-ASN1-0.37/changes","type":"release-notes"},{"url":"https://github.com/cpan-authors/perl-Convert-ASN1/issues","type":"issue-tracking"},{"url":"https://cpan.org/modules","type":"web"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/126xxx/CVE-2026-126568.json","type":"advisory"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-126568","type":"advisory"},{"url":"https://github.com/cpan-authors/perl-Convert-ASN1","type":"package"}],"sources":[{"name":"nvd","at":"2026-11-24T19:35:15.043Z","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-126568","license":"NVD terms of use","firstSeenAt":"2026-11-20T01:34:25.741Z"},{"name":"osv","at":"2026-12-02T13:29:05.186Z","url":"https://osv.dev/vulnerability/CVE-2026-126568","license":"CC-BY 4.0","firstSeenAt":"2026-12-02T12:56:11.797Z"},{"name":"cvelistV5","at":"2026-11-23T21:31:24.364Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-126568","license":"CVE Terms of Use","firstSeenAt":"2026-11-20T00:59:03.213Z"}],"firstSeenAt":"2026-11-20T00:59:03.213Z","publishedAt":"2026-11-20T00:23:24.479Z","modifiedAt":"2026-12-02T12:27:25.308Z"}