Skip to main content

mail-mime-parser EUVDEUVD-2026-86336

| CVE-2026-61816 HIGH
Uncontrolled Resource Consumption (CWE-400)
2026-09-24 GitHub_M GHSA-f6v3-2qmr-vfjx
7.5
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Send crafted <2MB email to parser
  2. Delivery
    Application calls getAllParts()/reads content
  3. Exploit
    Super-linear parsing paths trigger
  4. Execution
    CPU/memory exhaustion, OOM kill
  5. Impact
    Denial of service

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource consumption limits
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

No special product configuration is required - the flaw affects any application using zbateson/mail-mime-parser versions 2.0.0 through 3.0.5 or 4.0.0/4.0.1 to parse attacker-supplied email. The single prerequisite is that the application actually parses the untrusted message (the cost is paid lazily on the first getAllParts() call or content read, not merely on receipt). Because the parsing paths are super-linear, an input byte-size cap does NOT limit exploitation. Mitigating/limiting factors: impact is availability-only; running parsing under a constrained PHP memory_limit and execution-time limit confines damage to the individual request rather than the whole host; and installations on non-affected lines (pre-2.0, or patched 3.0.6/4.0.2+) are unaffected.

Impact

This is a genuine but moderate-priority denial-of-service issue. The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H, base 7.5) is well-supported by the description: any application that parses untrusted email with this library is exposed remotely, without authentication or user interaction, and the impact is purely availability (no confidentiality/integrity). The key technical signal is that three independent parsing paths are super-linear, so the common defensive control - a caller-side byte-size cap - does NOT bound the work; a message under 2 MB can burn seconds of CPU or exhaust hundreds of MB to multiple GB of memory, triggering an OOM kill. That said, exploitation impact is bounded to service disruption, and in a properly hardened PHP deployment (constrained memory_limit and max_execution_time) a malicious message tends to fail its own request rather than take down the host. No EPSS score, no CISA KEV listing, and no public exploit code are present in the provided data, so there is no evidence of active exploitation or automated weaponization - this reads as a real-but-not-urgent DoS to patch on a normal cadence, prioritized higher for internet-facing mail-processing services. No conflicting signals were found: the network vector matches the email-parsing use case.

Exploit ScenarioDerived

An attacker sends a crafted email (under 2 MB) - with deeply nested multipart structure, an excessive header count/size, or many siblings - to any service that ingests and parses untrusted mail with this library. When the application first calls getAllParts() or reads content, the super-linear parsing paths consume seconds of CPU and gigabytes of memory, causing an out-of-memory kill and denial of service. No public exploit code is identified at time of analysis; exploitation requires no authentication or user interaction.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
1 PoC candidate (unverified) Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 24, 2026

Denial of service in zbateson/mail-mime-parser 2.0.0 through 3.0.5 and 4.0.0/4.0.1 allows unauthenticated remote attackers to exhaust CPU and memory by supplying a crafted email to any application that parses untrusted messages with this PHP library, since the single prerequisite is that the message is actually parsed (the cost is paid lazily on the first getAllParts() call or content read). Three independent parsing paths are super-linear in cost, so a crafted message under 2 MB can consume seconds of CPU or hundreds of megabytes to multiple gigabytes of memory, potentially triggering an out-of-memory kill; because the parsing cost grows super-linearly, a caller-side input byte-size cap does not bound the work performed. No public exploit code has been identified at time of analysis and the issue is not confirmed actively exploited (CISA KEV), but the availability-only impact, low attack complexity and unauthenticated remote vector make it a genuine though moderate-priority denial-of-service risk; fixes that add configurable limits are available in 3.0.6 and 4.0.2, while the end-of-life 2.x line will not receive patches.

RemediationAI

Vendor-released patch: 3.0.6 and 4.0.2 (or later). Upgrading to either fixed release adds configurable limits on multipart nesting depth and on header count/total header size, and replaces the super-linear sibling append with an O(n) operation, so the upgrade is the primary and only complete remediation. Because CVSS vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H confirms this is a remote, unauthenticated, availability-only issue, users on the affected 3.0.x and 4.0.x lines should upgrade immediately; users still on the end-of-life 2.x line must migrate to a fixed 3.x or 4.x release since no patch will be issued for 2.x. If an immediate upgrade is not possible, restrict exposure of the parser to untrusted input so only trusted or pre-screened messages reach getAllParts() or content reads, and run all parsing under a constrained PHP memory_limit and execution time limit so a malicious message fails its own request rather than exhausting the host - this confines the impact but does not eliminate it and may cause otherwise valid large messages to be truncated or rejected. Note that caller-side input byte-size caps are not an effective compensating control here, because the parsing cost is super-linear and is paid lazily on first content access. See the vendor advisory at https://github.com/zbateson/mail-mime-parser/security/advisories/GHSA-f6v3-2qmr-vfjx for the full fix details and threshold configuration guidance.

Affected VersionsENISA

mail-mime-parser 2.0.0, < 3.0.6
mail-mime-parser 4.0.0, < 4.0.2

Affected Packages

composer zbateson/mail-mime-parser fix: 3.0.6, 4.0.2
euvd mail_mime_parser_2_0_0 fix: 3.0.6
euvd mail_mime_parser_4_0_0 fix: 4.0.2

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 3 packages in composer, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

zbateson/mail-mime-parser is a pure-PHP library for reading messages in Internet Message Format (RFC 822), positioned as an alternative to PHP's imap* functions and Pear libraries. The root cause is CWE-400 uncontrolled resource consumption, specifically algorithmic complexity: three independent parsing paths - multipart nesting depth, header count/total header size, and sibling append - are super-linear rather than linear in the size or structure of the input. The parser is also lazy, so the attacker-controlled cost is not incurred at receipt but is deferred until the application first calls getAllParts() or otherwise reads message content, which complicates naive request-size gating. The upstream fix adds configurable limits on multipart nesting depth and on header count/total header size, recording a parse error once a threshold is exceeded instead of throwing, and changes the sibling append operation to O(n), thereby bounding the work a single malicious message can induce. Because the affected element is the parsing algorithm itself, input byte-size caps on the caller side do not mitigate exploitation, as the description notes. Exact affected products are captured by the CPE cpe:2.3:a:zbateson:mail-mime-parser, which is published with wildcard version matching and should be interpreted alongside the version ranges from the advisory.

Know when Mail Mime Parser gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 7.5 HIGH

Remote unauthenticated attacker delivers a small crafted email that any parsing app processes with no interaction; impact is availability-only resource exhaustion, hence A:H and C:N/I:N.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

2
Patch available
Sep 24, 2026 - 19:04 EUVD
CVE Published
Sep 24, 2026 - 17:55 cve.org
HIGH 7.5

DescriptionCVE.org

zbateson/mail-mime-parser is a mail mime parser alternative to PHP's imap* functions and Pear libraries for reading messages in Internet Message Format RFC 822. Starting in version 2.0.0 and prior to version 3.0.6 and 4.0.2, an uncontrolled resource consumption / algorithmic complexity vulnerability (CWE-400) affects any application that parses untrusted email with this library. Three independent parsing paths are super-linear in cost, so a byte-size cap on the caller side does not bound the work done. A crafted message under 2 MB can consume seconds of CPU or hundreds of megabytes to multiple gigabytes of memory (leading to an out-of-memory kill), enabling denial of service. The parse is lazy, but the cost is paid on the first getAllParts() or content read. This is fxed in 4.0.2 and 3.0.6. The fixes add configurable limits on multipart nesting depth and on header count / total header size (recording a parse error past the threshold rather than throwing), and change sibling append to O(n). Users should upgrade to one of these (or later) versions. Versions 2.x are also affected but are end-of-life and will not receive patches; users on those lines should upgrade to a fixed release. (Versions prior to 2.0 used a different parser and are not affected by all three paths.) These costs are super-linear, so an input byte-size cap alone does not bound them. Until upgrading, restrict exposure of the parser to untrusted input, and run parsing under a constrained memory_limit and execution time limit so a malicious message fails its own request rather than exhausting the host.

Technical POC Analysis

CWE-400 (Uncontrolled Resource Consumption), specifically algorithmic complexity.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Latest POC

1 PoC candidate from github (unverified)

Sign in to open the public PoC links collected for this CVE.

Executive ViewAI

Why It Matters

A denial-of-service flaw in the widely used PHP library zbateson/mail-mime-parser (versions 2.0.0 through 3.0.5 and 4.0.0/4.0.1) allows a crafted email to drive severe CPU and memory consumption in any application that parses untrusted messages. Because the library underpins email ingestion in ticketing, helpdesk, mail-gateway, and notification pipelines, a single 2 MB malicious message can exhaust worker memory or trigger out-of-memory termination, degrading or halting mail processing for all users of the affected service. With no vendor patch available, leadership should treat this as an availability risk requiring dependency inventory and containment rather than a routine update.

Business Impact: Medium
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: run parsing in isolated, resource-capped worker processes with strict memory and wall-clock timeouts; enforce bounded queues and concurrency limits with automatic restart; apply per-sender/per-IP rate limiting and reject deeply nested or anomalous MIME messages at the mail-gateway edge (input byte-size caps alone do not bound parsing cost); add monitoring and alerting for OOM kills and parse latency spikes; and evaluate migrating high-exposure parsing paths to a maintained alternative library until a fixed version is released.

Threat Intelligence Overview

EPSS Score
0.4%
Top 69% exploitable
Prevalence
Medium
widely-used PHP MIME parsing library for reading untrusted email
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
Medium
Technical Impact
Partial

Priority Score

58
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy