{"id":"CVE-2026-116270","state":"PUBLISHED","title":"MIME::Words versions before 5.521 for Perl allow memory exhaustion via repeated \"=?\" sequences in decode_mimewords","description":"MIME::Words versions before 5.521 for Perl allow memory exhaustion via repeated \"=?\" sequences in decode_mimewords.\n\nFor each \"=?\" that does not start a complete encoded word, decode_mimewords appends an error message containing the whole input string to $@. A boundary of 8,000 \"=?\" pairs (16,000 bytes) adds 8,000 copies of itself to $@, about 128 MB.\n\nFrom version 5.518, MIME::Parser decodes every multipart boundary this way, so a remote sender can exhaust the memory of the parsing process with one Content-Type header.","publishedAt":"2026-10-28T17:33:48.187Z","updatedAt":"2026-10-28T17:33:48.187Z","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::Words"],"programFiles":["lib/MIME/Words.pm","lib/MIME/Head.pm"],"programRoutines":[{"name":"MIME::Words::decode_mimewords"},{"name":"MIME::Head::multipart_boundary"}],"repo":"https://salsa.debian.org/dskoll/mime-tools"}],"references":["https://metacpan.org/release/DSKOLL/MIME-tools-5.521/changes"],"weaknesses":["CWE-407"],"ingestedAt":"2026-10-29T20:10:43.281Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/116xxx/CVE-2026-116270.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-116270","state":"PUBLISHED","datePublished":"2026-10-28T17:33:48.187Z","dateUpdated":"2026-10-28T17:33:48.187Z","assignerShortName":"CPANSec","assignerOrgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","dateReserved":"2026-10-25T18:05:02.236Z"},"containers":{"cna":{"title":"MIME::Words versions before 5.521 for Perl allow memory exhaustion via repeated \"=?\" sequences in decode_mimewords","descriptions":[{"lang":"en","value":"MIME::Words versions before 5.521 for Perl allow memory exhaustion via repeated \"=?\" sequences in decode_mimewords.\n\nFor each \"=?\" that does not start a complete encoded word, decode_mimewords appends an error message containing the whole input string to $@. A boundary of 8,000 \"=?\" pairs (16,000 bytes) adds 8,000 copies of itself to $@, about 128 MB.\n\nFrom version 5.518, MIME::Parser decodes every multipart boundary this way, so a remote sender can exhaust the memory of the parsing process with one Content-Type header."}],"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::Words"],"programFiles":["lib/MIME/Words.pm","lib/MIME/Head.pm"],"programRoutines":[{"name":"MIME::Words::decode_mimewords"},{"name":"MIME::Head::multipart_boundary"}],"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-407","description":"CWE-407 Inefficient Algorithmic Complexity","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"CPANSec","orgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","dateUpdated":"2026-10-28T17:33:48.187Z"},"solutions":[{"lang":"en","value":"Upgrade to MIME-tools 5.521 or later."}],"source":{"discovery":"UNKNOWN"},"x_generator":{"engine":"cpansec-cna-tool 0.1"}}}}}