Convert::ASN1 versions before 0.37 for Perl contain a vulnerability in the asn_recv function that allows memory exhaustion. The function repeatedly peeks at socket data, doubling the buffer size each time without consuming data, due to a logic error in the guard condition and handling of incomplete length decoding. This can cause fatal memory exhaustion when processing a single truncated BER header.