Description
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.
Published: 2026-08-20
Score: 5.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Mailpit is an email testing tool that generates thumbnails by first decoding the entire image before applying size constraints. This flaw allows an attacker to supply an image whose declared dimensions are far larger than the actual pixel data, causing the decoding process to allocate an enormous amount of memory and CPU time. If the image is processed, the server may consume excessive resources, potentially leading to a denial of service for legitimate users.

Affected Systems

The vulnerability affects all installations of axllent Mailpit older than version 1.30.4. Users running a pre‑1.30.4 release must upgrade to the patched 1.30.4 or later release.

Risk and Exploitability

The CVSS score of 5.3 indicates moderate severity. Exploitation requires the ability to upload an image attachment or otherwise trigger the thumbnail endpoint, which is available without authentication. The EPSS score is not available, and the issue is not currently listed in CISA's KEV catalog. The likely attack vector is the thumbnail generation endpoint; an attacker can craft a message with an oversized attachment, upload it, and then request its thumbnail to exhaust server memory or CPU, resulting in degraded availability. The risk is moderate but could be amplified by the lack of authentication on the vulnerable path.

Generated by OpenCVE AI on August 21, 2026 at 01:00 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Mailpit to version 1.30.4 or later, which adds bounds checking before decoding.
  • Restrict access to the thumbnail generation endpoint so that only authenticated users can invoke it, or disable the endpoint entirely if thumbnails are not required.
  • Implement pre‑validation of attachment size and image dimensions on upload, rejecting or resizing overly large images before storage or thumbnail generation.

Generated by OpenCVE AI on August 21, 2026 at 01:00 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-75mr-qw9x-3r39 Mailpit: Thumbnail generation decodes unbounded image dimensions before scaling
History

Thu, 20 Aug 2026 23:45:00 +0000

Type Values Removed Values Added
First Time appeared Axllent
Axllent mailpit
Vendors & Products Axllent
Axllent mailpit

Thu, 20 Aug 2026 21:15:00 +0000

Type Values Removed Values Added
Description 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.
Title Mailpit: Thumbnail generation decodes unbounded image dimensions before scaling
Weaknesses CWE-400
CWE-770
References
Metrics cvssV3_1

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


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-21T14:56:09.415Z

Reserved: 2026-07-29T15:07:24.992Z

Link: CVE-2026-67446

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-20T21:17:07.260

Modified: 2026-08-21T15:16:46.840

Link: CVE-2026-67446

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-21T01:15:07Z

Weaknesses
  • CWE-400

    Uncontrolled Resource Consumption

  • CWE-770

    Allocation of Resources Without Limits or Throttling