CVE-2026-67446: Mailpit: Thumbnail generation decodes unbounded image dimensions before scaling

Published Aug 20, 2026
·
Updated

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.

Affected Software

1 affected component
Mailpit Mailpit<1.30.4

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Mailpit to a version that resolves this vulnerability.

    Fixed in 1.30.4

Event History

Aug 20, 2026
CVE Published
via MITRE·09:10 PM
Data Sourced
via MITRE·09:10 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are most exposed to availability impact?

Deployments are exposed when an unauthenticated client can both store a crafted image attachment and reach the web API. Opening the message UI can also trigger thumbnail generation for an affected attachment.

2

What must an attacker provide to trigger the issue?

The attacker needs to supply an attachment accepted as image/* with compact encoded data that declares very large dimensions. Requesting the attachment thumbnail through the message-part thumb API causes Mailpit to decode the full raster before scaling it.

3

Are default thumbnail dimensions sufficient to prevent resource exhaustion?

No. Although the thumbnail is ultimately scaled to 180 by 120 pixels, the vulnerable behavior occurs earlier, when the supplied image is decoded at its declared dimensions.

4

How can I determine whether an instance needs remediation?

Instances running a version prior to 1.30.4 are affected. Upgrade to version 1.30.4 to obtain the fix.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203