CVE-2026-116267

MIME::Parser versions before 5.521 for Perl allow memory exhaustion via indented error messages from a truncated, deeply nested message

Published Oct 28, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
Description
MIME::Parser versions before 5.521 for Perl allow memory exhaustion via indented error messages from a truncated, deeply nested message.

Each stored parser diagnostic is indented by three spaces per nesting level. When a message nested N levels deep ends without its closing boundaries, every level logs an error at its own depth, so the stored diagnostics grow with the square of N. The defaults place no limit on nesting depth.

Analysis

AI-generated

Technical impact

The vulnerability lies in the MIME::Parser module of MIME-tools for Perl versions earlier than 5.521. When parsing a MIME message that is deeply nested, each level of nesting adds a diagnostic entry. A truncated message without a closing boundary triggers an error at each level, causing the number of diagnostics to grow quadratically with nesting depth. Because the default configuration has no depth limit, a crafted input can force the module to allocate an unbounded amount of memory, potentially leading to a crash or severe slowdown of the process that performs the parsing.

Affected Systems

All installations of MIME::Parser bundled with MIME-tools for Perl at a version earlier than 5.521 are impacted. Any system that processes MIME‑encoded content with this unpatched module—such as email servers, web services, or other applications that invoke MIME::Parser—could be vulnerable.

Risk and Exploitability

The CVSS score of 7.5 classifies this memory exhaustion as a high‑severity vulnerability. The EPSS score of < 1% suggests a very low but nonzero likelihood of exploitation in the wild, and the vulnerability is not listed in the CISA KEV catalog. The attack vector is inferred: an adversary who can deliver a deeply nested, truncated MIME message to an affected parser—via an email, web upload, or any interface that uses MIME::Parser—could trigger the denial of service. Successful exploitation would likely cause the application to crash or become unresponsive.

Remediation

Vendor Solution

Upgrade to MIME-tools 5.521 or later.


OpenCVE Recommended Actions

  • Upgrade MIME-tools to version 5.521 or later.
  • Configure MIME::Parser to enforce a maximum nesting depth limit, if the configuration option is available, to prevent unbounded recursion.
  • Apply system-level memory limits (ulimit settings) or run MIME::Parser within a confined environment (e.g., a Docker container) to contain potential memory exhaustion and protect the broader system.

Generated by OpenCVE AI on October 30, 2026 at 14:46 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
Weaknesses CWE-770
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 allow memory exhaustion via indented error messages from a truncated, deeply nested message. Each stored parser diagnostic is indented by three spaces per nesting level. When a message nested N levels deep ends without its closing boundaries, every level logs an error at its own depth, so the stored diagnostics grow with the square of N. The defaults place no limit on nesting depth.
Title MIME::Parser versions before 5.521 for Perl allow memory exhaustion via indented error messages from a truncated, deeply nested message
Weaknesses CWE-407
References
Weaknesses
  • CWE-407

    Inefficient Algorithmic Complexity

  • CWE-770

    Allocation of Resources Without Limits or Throttling

Sources

Status
PUBLISHED
Assigner
CPANSec
Published
Updated
Nov 5, 2026, 8:25 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:32 PM