Skip to main content

Mailpit CVE-2026-67446

| EUVDEUVD-2026-63659 MEDIUM
Uncontrolled Resource Consumption (CWE-400)
2026-08-20 security-advisories@github.com GHSA-75mr-qw9x-3r39
5.3
CVSS 3.1 · Vendor: github
View

Attack ChainAIDerived

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

  1. Access
    Deliver crafted decompression-bomb email via unauthenticated SMTP
  2. Delivery
    Email and attachment stored in Mailpit database
  3. Exploit
    Trigger GET /api/v1/message/{id}/part/{partID}/thumb via direct API call or by inducing UI open
  4. Execution
    imaging.Decode() allocates full raster from declared dimensions
  5. Persist
    Server memory and CPU exhausted
  6. Impact
    Mailpit availability degraded or service crashed

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

Exploitation requires two simultaneous conditions: first, the attacker must be able to deliver email to the Mailpit SMTP intake (unauthenticated SMTP on port 1025 is Mailpit's default developer configuration); second, either the attacker must be able to call the thumbnail API endpoint directly (knowing the message ID and part ID, which are enumerable after delivery), or a legitimate user must open the crafted email in the Mailpit web UI. Exploitation is effectively blocked when Mailpit is bound to localhost only or sits behind network-layer controls, which is the recommended deployment posture for a developer tool. No special image format beyond any image/* MIME type accepted by Go's imaging library is required, and no authentication bypass or secondary vulnerability is needed. The CVSS PR:N assumption holds only for Mailpit instances deployed without authentication middleware.

Impact

The CVSS 3.1 vector AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L (score 5.3) correctly characterizes the attack as low-complexity and unauthenticated but rates availability impact as Limited, which may understate practical DoS potential from repeated submissions. No EPSS score was included in the provided data, so probability-of-exploitation-in-the-wild cannot be quantified from available signals. The vulnerability is absent from CISA KEV and no independent public exploit code has been identified; however, the fix commit (6bcb6337) includes comprehensive regression tests that serve as a functional reproduction blueprint. The realistic risk is substantially bounded by Mailpit's deployment context: it is a developer-only tool typically running on localhost or isolated CI pipelines, and the PR:N assumption holds only when SMTP intake and the web API are both reachable without authentication, which is common in development but unusual in any hardened deployment. Confidentiality and integrity are unaffected. Overall this is a genuine but low-priority availability risk whose urgency is primarily driven by whether the Mailpit instance is Internet-accessible.

Exploit ScenarioDerived

An attacker with network access to Mailpit's SMTP intake sends an email containing a PNG attachment that is only a few kilobytes on disk but declares pixel dimensions in the hundreds of thousands by hundreds of thousands range. When a developer opens the email in the Mailpit web UI, MessageAttachments.vue automatically fires a GET request to the thumbnail endpoint; the server calls imaging.Decode() which allocates the full declared raster in RAM - potentially gigabytes - before attempting to scale to 180×120, spiking memory and CPU until the process is killed or the server becomes unresponsive. An attacker can repeat this with many emails to sustain the condition.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
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 – Aug 20, 2026

Uncontrolled resource consumption in Mailpit's thumbnail generation endpoint allows unauthenticated network clients to exhaust server memory and CPU by submitting email attachments containing image decompression bombs. The affected code path in server/apiv1/thumbnails.go calls imaging.Decode() with AutoOrientation before performing any dimension, pixel-count, or memory validation, meaning a compact on-disk image declaring enormous pixel dimensions triggers full raster allocation prior to the 180×120 scaling step. No public exploit code has been identified and the vulnerability is absent from CISA KEV; the vendor-confirmed fix is Mailpit 1.30.4.

RemediationAI

Upgrade Mailpit to version 1.30.4 or later; this is the primary and recommended fix. The patch, applied in commit 6bcb6337838b542d53c348e38c7977f569b6db35, adds pre-decode dimension and pixel-count validation in the thumbnail handler, rejecting decompression-bomb images before raster memory is allocated. Release artifacts and changelog are available at https://github.com/axllent/mailpit/releases/tag/v1.30.4. If immediate upgrade is not feasible, restrict network access to both the Mailpit SMTP intake (default port 1025) and the web API (default port 8025) to trusted internal hosts only using firewall rules or reverse-proxy authentication; this prevents an attacker from both storing a crafted attachment and subsequently triggering the thumbnail endpoint. Note that network restriction does not fix the underlying flaw - any trusted internal user who opens a malicious email in the UI will still trigger the vulnerable code path until the patch is applied.

Affected VersionsENISA

mailpit < 1.30.4

Affected Packages

go github.com/axllent/mailpit fix: 1.30.4
euvd mailpit fix: 1.30.4

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in go, euvd

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

Technical ContextAI · show details

Mailpit is a Go-based developer email testing tool. The vulnerable code path is the GET /api/v1/message/{id}/part/{partID}/thumb endpoint implemented in server/apiv1/thumbnails.go. Attachment bytes are retrieved via storage.GetAttachmentPart(), and any image/* content type is passed to imaging.Decode() (a wrapper around Go's standard image decoders) with the AutoOrientation flag. Because Go's PNG and other image decoders honor declared dimensions in the file header before examining actual pixel data, a crafted file can declare arbitrarily large dimensions in very few bytes - the classic decompression bomb pattern (CWE-400: Uncontrolled Resource Consumption). The missing guard is a pre-decode check on declared width×height pixel count or an explicit memory cap. The server/ui-src/components/message/MessageAttachments.vue component automatically invokes this endpoint when a user opens a message in the browser UI, creating a second, UI-triggered trigger path in addition to direct API calls.

Know when the next one hits your stack

  • 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) PRIMARY 5.3 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
vuln.today AI 5.3 MEDIUM

Network-accessible unauthenticated SMTP and API with no scope change; only availability is impacted via uncontrolled memory allocation.

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

Primary rating from Vendor (github).

CVSS VectorVendor: github

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

Lifecycle Timeline

1
Patch available
Aug 20, 2026 - 22:04 EUVD

DescriptionCVE.org

Mailpit is an email testing tool and API for developers. Prior to 1.30.4, Mailpit decodes attacker-supplied image attachments into a full raster before checking decoded dimensions, pixel count, or memory use in the GET /api/v1/message/{id}/part/{partID}/thumb endpoint. The Thumbnail handler in server/apiv1/thumbnails.go obtains attachment bytes through storage.GetAttachmentPart(), accepts image/* content, and calls imaging.Decode() with AutoOrientation before imaging.Fill() scales the image to 180 by 120 pixels. A compact image declaring very large dimensions can therefore consume disproportionately large memory and CPU, and opening the message UI can trigger the same endpoint through server/ui-src/components/message/MessageAttachments.vue. This can degrade availability when an unauthenticated client can store the crafted attachment and reach the web API. This issue is fixed in version 1.30.4.

Threat Intelligence Overview

EPSS Score
0.4%
Top 70% exploitable
Prevalence
Low
developer-only email testing tool, not production mail infrastructure
Threat Intel
1
1 source
Exploit
POC
Public exploit code exists
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub VulDB

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 MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

46
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
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.

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
SUSE Linux Enterprise Module for Package Hub 15 SP5 Affected
SUSE Linux Enterprise Module for Package Hub 15 SP6 Affected
openSUSE Leap 15.5 Affected
openSUSE Leap 15.6 Affected

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