{"id":"CVE-2026-116273","state":"PUBLISHED","title":"MIME::Parser versions before 5.521 for Perl set no limit on the number of message parts by default, allowing memory exhaustion","description":"MIME::Parser versions before 5.521 for Perl set no limit on the number of message parts by default, allowing memory exhaustion.\n\nThe max_parts option defaulted to -1, which disables the limit, so a parser created with default settings builds an entity for every part however many a message has.\n\nVersion 5.521 sets max_parts to 1000 and max_depth to 64 by default. Setting either to -1 still removes the limit.","publishedAt":"2026-10-28T17:34:44.660Z","updatedAt":"2026-10-28T17:34:44.660Z","severity":null,"assigner":"CPANSec","products":["MIME-tools"],"affected":[{"packageName":"MIME-tools","packageURL":"pkg:cpan/MIME-tools","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"5.521","versionType":"custom"}],"collectionURL":"https://cpan.org/modules","modules":["MIME::Parser"],"programFiles":["lib/MIME/Parser.pm"],"programRoutines":[{"name":"MIME::Parser::init"},{"name":"MIME::Parser::process_part"}],"repo":"https://salsa.debian.org/dskoll/mime-tools"}],"references":["https://metacpan.org/release/DSKOLL/MIME-tools-5.521/changes"],"weaknesses":["CWE-1188","CWE-770"],"ingestedAt":"2026-10-29T20:10:43.281Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/116xxx/CVE-2026-116273.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-116273","state":"PUBLISHED","datePublished":"2026-10-28T17:34:44.660Z","dateUpdated":"2026-10-28T17:34:44.660Z","assignerShortName":"CPANSec","assignerOrgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","dateReserved":"2026-10-25T18:05:02.236Z"},"containers":{"cna":{"title":"MIME::Parser versions before 5.521 for Perl set no limit on the number of message parts by default, allowing memory exhaustion","descriptions":[{"lang":"en","value":"MIME::Parser versions before 5.521 for Perl set no limit on the number of message parts by default, allowing memory exhaustion.\n\nThe max_parts option defaulted to -1, which disables the limit, so a parser created with default settings builds an entity for every part however many a message has.\n\nVersion 5.521 sets max_parts to 1000 and max_depth to 64 by default. Setting either to -1 still removes the limit."}],"affected":[{"packageName":"MIME-tools","packageURL":"pkg:cpan/MIME-tools","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"5.521","versionType":"custom"}],"collectionURL":"https://cpan.org/modules","modules":["MIME::Parser"],"programFiles":["lib/MIME/Parser.pm"],"programRoutines":[{"name":"MIME::Parser::init"},{"name":"MIME::Parser::process_part"}],"repo":"https://salsa.debian.org/dskoll/mime-tools"}],"references":[{"url":"https://metacpan.org/release/DSKOLL/MIME-tools-5.521/changes","tags":["release-notes"]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-1188","description":"CWE-1188 Initialization of a Resource with an Insecure Default","lang":"en","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-770","description":"CWE-770 Allocation of Resources Without Limits or Throttling","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"CPANSec","orgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","dateUpdated":"2026-10-28T17:34:44.660Z"},"solutions":[{"lang":"en","value":"Upgrade to MIME-tools 5.521 or later."}],"source":{"discovery":"UNKNOWN"},"x_generator":{"engine":"cpansec-cna-tool 0.1"}}}}}