Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessDeliver crafted decompression-bomb email via unauthenticated SMTP
-
DeliveryEmail and attachment stored in Mailpit database
-
ExploitTrigger GET /api/v1/message/{id}/part/{partID}/thumb via direct API call or by inducing UI open
-
Executionimaging.Decode() allocates full raster from declared dimensions
-
PersistServer memory and CPU exhausted
-
ImpactMailpit 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Network-accessible unauthenticated SMTP and API with no scope change; only availability is impacted via uncontrolled memory allocation.
Primary rating from Vendor (github).
CVSS VectorVendor: github
Lifecycle Timeline
1DescriptionCVE.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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Same weakness CWE-400 – Uncontrolled Resource Consumption
View allSame technique Denial Of Service
View allVendor 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 |
EUVD-2026-63659
GHSA-75mr-qw9x-3r39
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB