Mailpit: Thumbnail generation decodes unbounded image dimensions before scaling
Published Aug 20, 2026
7.5
HIGHCVSS 3.1
EPSS 0.51%
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.
Affected products
-
- Version < 1.30.4StatusaffectedConstraints-
- Version
No data.
No data.
No Red Hat product state for this CVE.
github.com/axllent/mailpit
Go
Introduced 0 Fixed 1.30.4
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Go | github.com/axllent/mailpit | 0 | 1.30.4 |
Remediation
No remediation recorded yet.
References (6)
- https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-63659 Advisory
- https://github.com/advisories/GHSA-75mr-qw9x-3r39 Advisory
- https://github.com/axllent/mailpit/commit/6bcb6337838b542d53c348e38c7977f569b6db35 x_refsource_MISC
- https://github.com/axllent/mailpit/releases/tag/v1.30.4 x_refsource_MISC
- https://github.com/axllent/mailpit/security/advisories/GHSA-75mr-qw9x-3r39 exploitx_refsource_CONFIRM
- https://nvd.nist.gov/vuln/detail/CVE-2026-67446
| Link | Providers | Tags |
|---|---|---|
| https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-63659 | Advisory | |
| https://github.com/advisories/GHSA-75mr-qw9x-3r39 | Advisory | |
| https://github.com/axllent/mailpit/commit/6bcb6337838b542d53c348e38c7977f569b6db35 | x_refsource_MISC | |
| https://github.com/axllent/mailpit/releases/tag/v1.30.4 | x_refsource_MISC | |
| https://github.com/axllent/mailpit/security/advisories/GHSA-75mr-qw9x-3r39 | exploitx_refsource_CONFIRM | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-67446 |
Change history (0)
No recorded changes yet.