CVE-2026-116273

MIME::Parser versions before 5.521 for Perl set no limit on the number of message parts by default, allowing memory exhaustion

Published Oct 28, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

The vulnerability originates from the MIME::Parser library, which, in versions earlier than 5.521, does not impose a default limit on the number of parts in a message. This unlimited parsing capability allows an attacker to construct a message with an extremely large number of parts, which the parser will recursively load into memory. Successful exploitation can exhaust available memory, potentially causing the application to become unresponsive or terminate, resulting in a denial‑of‑service condition and exposing the application to further attacks. The weakness is a classic resource exhaustion flaw, classified as CWE-1188 and CWE-770.

Affected Systems

Any system that utilizes the MIME::Parser module from the MIME-tools distribution before version 5.521 is affected. This includes Perl applications that parse user‑provided email or MIME content without restricting the number of parts or depth. Because the limitation has been enabled by default starting with 5.521, only deployments still on older releases are vulnerable; applications that upgrade to 5.521 or later inherit the safe defaults automatically.

Risk and Exploitability

The CVSS score is 7.5, indicating a high severity vulnerability. The EPSS score is 0.00177, reflecting a very low but nonzero exploitation probability, and the vulnerability is not listed in the CISA KEV catalog. In practice, an attacker can exploit the flaw by sending a message that exceeds ordinary size limits, which the parser will accept and process, consuming large amounts of memory. The easiest attack path involves supplying a crafted MIME message to any running instance of the parser; no special privileges or remote code execution are required aside from the ability to deliver input to the application. If the application runs with high privileges or on a critical system, repeated exploitation could lead to system instability.

Remediation

Vendor Solution

Upgrade to MIME-tools 5.521 or later.


OpenCVE Recommended Actions

  • Upgrade the MIME-tools package to version 5.521 or newer to enable a safe default limit on the number of parts.
  • If upgrading is not immediately feasible, configure the parser explicitly by setting max_parts to a positive limit such as 1000 and max_depth to 64, ensuring that the values are not set to –1.
  • Implement additional monitoring of memory usage and validate MIME input sizes before parsing to detect anomalous patterns early.

Generated by OpenCVE AI on October 30, 2026 at 14:07 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Important

Type Values Removed Values Added
First Time appeared Perl
Perl mime::parser
Vendors & Products Perl
Perl mime::parser
Type Values Removed Values Added
Description 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.
Title MIME::Parser versions before 5.521 for Perl set no limit on the number of message parts by default, allowing memory exhaustion
Weaknesses CWE-1188
CWE-770
References
Weaknesses
  • CWE-1188

    Initialization of a Resource with an Insecure Default

  • CWE-770

    Allocation of Resources Without Limits or Throttling

Sources

Status
PUBLISHED
Assigner
CPANSec
Published
Updated
Nov 5, 2026, 8:43 PM
Reserved
Oct 25, 2026, 6:05 PM
Status
Awaiting Analysis
Published
Oct 28, 2026, 6:17 PM
Modified
Nov 5, 2026, 9:18 PM
Severity
Important
Public date
Oct 28, 2026, 5:34 PM