{"api_version":"1","generated_at":"2026-11-20T18:13:54+00:00","cve":"CVE-2026-131868","urls":{"html":"https://cve.report/CVE-2026-131868","api":"https://cve.report/api/cve/CVE-2026-131868.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-131868","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-131868"},"summary":{"title":"Convert::ASN1 versions before 0.37 for Perl allow memory exhaustion via a declared element length passed unchecked to sysread in asn_read and asn_get","description":"Convert::ASN1 versions before 0.37 for Perl allow memory exhaustion via a declared element length passed unchecked to sysread in asn_read and asn_get.\n\nThe length an element declares in its BER header is passed to sysread as the read size. Perl grows the target buffer to that size before reading, so memory is allocated from the declared length, not from the data received. A 6-byte header can declare a length of up to 4GB.\n\nA single header makes the reading process allocate the declared size. Where the allocation fails, perl exits with \"Out of memory\", which eval cannot catch.","state":"PUBLISHED","assigner":"CPANSec","published_at":"2026-11-20 01:17:09","updated_at":"2026-11-20 01:17:09"},"problem_types":["CWE-789","CWE-789 CWE-789 Memory Allocation with Excessive Size Value"],"metrics":[],"references":[{"url":"https://github.com/cpan-authors/perl-Convert-ASN1/commit/88bd86b5a3ce3430ebb8b78fe5307f234198bf16.patch","name":"https://github.com/cpan-authors/perl-Convert-ASN1/commit/88bd86b5a3ce3430ebb8b78fe5307f234198bf16.patch","refsource":"9b29abf9-4ab0-4765-b253-1875cd9b441e","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://metacpan.org/release/TIMLEGGE/Convert-ASN1-0.37/changes","name":"https://metacpan.org/release/TIMLEGGE/Convert-ASN1-0.37/changes","refsource":"9b29abf9-4ab0-4765-b253-1875cd9b441e","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-131868","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-131868","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[{"source":"CNA","title":"","value":"Upgrade to Convert-ASN1 0.37 or later.","time":"","lang":"en"}],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"collectionURL":"https://cpan.org/modules","defaultStatus":"unaffected","modules":["Convert::ASN1"],"packageName":"Convert-ASN1","packageURL":"pkg:cpan/Convert-ASN1","programFiles":["lib/Convert/ASN1/IO.pm"],"programRoutines":[{"name":"Convert::ASN1::asn_read"},{"name":"Convert::ASN1::asn_get"}],"repo":"https://github.com/cpan-authors/perl-Convert-ASN1","versions":[{"lessThan":"0.37","status":"affected","version":"0","versionType":"custom"}]}],"descriptions":[{"lang":"en","value":"Convert::ASN1 versions before 0.37 for Perl allow memory exhaustion via a declared element length passed unchecked to sysread in asn_read and asn_get.\n\nThe length an element declares in its BER header is passed to sysread as the read size. Perl grows the target buffer to that size before reading, so memory is allocated from the declared length, not from the data received. A 6-byte header can declare a length of up to 4GB.\n\nA single header makes the reading process allocate the declared size. Where the allocation fails, perl exits with \"Out of memory\", which eval cannot catch."}],"problemTypes":[{"descriptions":[{"cweId":"CWE-789","description":"CWE-789 Memory Allocation with Excessive Size Value","lang":"en","type":"CWE"}]}],"providerMetadata":{"dateUpdated":"2026-11-20T00:32:45.229Z","orgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","shortName":"CPANSec"},"references":[{"tags":["patch"],"url":"https://github.com/cpan-authors/perl-Convert-ASN1/commit/88bd86b5a3ce3430ebb8b78fe5307f234198bf16.patch"},{"tags":["release-notes"],"url":"https://metacpan.org/release/TIMLEGGE/Convert-ASN1-0.37/changes"}],"solutions":[{"lang":"en","value":"Upgrade to Convert-ASN1 0.37 or later."}],"source":{"discovery":"UNKNOWN"},"title":"Convert::ASN1 versions before 0.37 for Perl allow memory exhaustion via a declared element length passed unchecked to sysread in asn_read and asn_get","x_generator":{"engine":"cpansec-cna-tool 0.1"}}},"cveMetadata":{"assignerOrgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","assignerShortName":"CPANSec","cveId":"CVE-2026-131868","datePublished":"2026-11-20T00:32:45.229Z","dateReserved":"2026-11-18T01:44:50.077Z","dateUpdated":"2026-11-20T00:32:45.229Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-20 01:17:09","lastModifiedDate":"2026-11-20 01:17:09","problem_types":["CWE-789","CWE-789 CWE-789 Memory Allocation with Excessive Size Value"],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"131868","Ordinal":"1","Title":"Convert::ASN1 versions before 0.37 for Perl allow memory exhaust","CVE":"CVE-2026-131868","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"131868","Ordinal":"1","NoteData":"Convert::ASN1 versions before 0.37 for Perl allow memory exhaustion via a declared element length passed unchecked to sysread in asn_read and asn_get.\n\nThe length an element declares in its BER header is passed to sysread as the read size. Perl grows the target buffer to that size before reading, so memory is allocated from the declared length, not from the data received. A 6-byte header can declare a length of up to 4GB.\n\nA single header makes the reading process allocate the declared size. Where the allocation fails, perl exits with \"Out of memory\", which eval cannot catch.","Type":"Description","Title":"Convert::ASN1 versions before 0.37 for Perl allow memory exhaust"}]}}}