MIME::Parser versions before 5.521 for Perl set no limit on the number of message parts by default, allowing memory exhaustion
MIME::Parser versions before 5.521 for Perl set no limit on the number of message parts by default, allowing memory exhaustion. The 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. Version 5.521 sets max_parts to 1000 and max_depth to 64 by default. Setting either to -1 still removes the limit.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-116273
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 20:24 UTC · Revision 1
Source evidence
MIME::Parser versions before 5.521 for Perl set no limit on the number of message parts by default, allowing memory exhaustion
core-cve · Original sourcePublished 28 Oct 2026, 17:34 UTC
MIME::Parser versions before 5.521 for Perl set no limit on the number of message parts by default, allowing memory exhaustion. The 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. Version 5.521 sets max_parts to 1000 and max_depth to 64 by default. Setting either to -1 still removes the limit.
cve:CVE-2026-116273
Complete source record
{
"id": "5cfde897a5bdd507602aa21af76fd9856c6821e0019a04bbbef097e993e4e619",
"url": "https://www.cve.org/CVERecord?id=CVE-2026-116273",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "MIME::Parser versions before 5.521 for Perl set no limit on the number of message parts by default, allowing memory exhaustion",
"summary": "MIME::Parser versions before 5.521 for Perl set no limit on the number of message parts by default, allowing memory exhaustion. The 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. Version 5.521 sets max_parts to 1000 and max_depth to 64 by default. Setting either to -1 still removes the limit.",
"evidence": "cve:CVE-2026-116273",
"products": [],
"severity": "unknown",
"structured": {
"id": "CVE-2026-116273",
"aliases": [
"CVE-2026-116273"
],
"metrics": [],
"affected": [
{
"repo": "https://salsa.debian.org/dskoll/mime-tools",
"modules": [
"MIME::Parser"
],
"versions": [
{
"status": "affected",
"version": "0",
"lessThan": "5.521",
"versionType": "custom"
}
],
"packageURL": "pkg:cpan/MIME-tools",
"packageName": "MIME-tools",
"programFiles": [
"lib/MIME/Parser.pm"
],
"collectionURL": "https://cpan.org/modules",
"defaultStatus": "unaffected",
"programRoutines": [
{
"name": "MIME::Parser::init"
},
{
"name": "MIME::Parser::process_part"
}
]
}
],
"modified": "2026-10-28T17:34:44.660Z",
"provider": "cve",
"references": [
"https://metacpan.org/release/DSKOLL/MIME-tools-5.521/changes"
],
"provider_metadata": {
"cna": {
"orgId": "9b29abf9-4ab0-4765-b253-1875cd9b441e",
"shortName": "CPANSec",
"dateUpdated": "2026-10-28T17:34:44.660Z"
}
}
},
"related_cves": [
{
"value": "CVE-2026-116273",
"evidence": "/cveMetadata/cveId"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-cve",
"document_id": 466449,
"published_at": "2026-10-28T17:34:44.66+00:00"
}