CVE-2026-67447: Mailpit SMTP DATA reader unbounded line buffering denial of service

CVE-2026-67447 · Severity: medium · CVSS 5.3 · Published 2026-08-20

Mailpit is an email testing tool with an SMTP server enabled by default. The SMTP server improperly validates message size limits by buffering entire lines into memory before checking the size cap. An attacker can send oversized SMTP DATA lines without authentication to force excessive memory allocation, potentially exhausting server resources and causing denial of service to legitimate mail operations.

Technologies: github.com/axllent/mailpit (Go). Vendors: Go.

Quick answers

Is CVE-2026-67447 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-67447 being exploited in the wild.
How severe is CVE-2026-67447?
Medium severity, with a CVSS score of 5.3, published 20 August 2026.
Which products and versions are affected?
github.com/axllent/mailpit (Go) >= 1.30.0, < 1.30.5, SEMVER:introduced=1.30.0,fixed=1.30.5.
Is there a fix for CVE-2026-67447?
Yes. github.com/axllent/mailpit (Go): upgrade to 1.30.5 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-67447 attacked?
It is attacked over the network, in a hosted service.
Am I affected by CVE-2026-67447?
Check whether you run github.com/axllent/mailpit (Go) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • github.com/axllent/mailpit (Go): upgrade to 1.30.5 or later
    go get github.com/axllent/mailpit@v1.30.5

Technical details

The vulnerability exists in the SMTP DATA reader's size-enforcement logic. The code calls bufio.Reader.ReadBytes('\n') to read a complete line before checking if len(data)+len(line) exceeds srv.MaxSize. This ordering allows an attacker to cause the full oversized line to be buffered into memory before the size limit is enforced. An unauthenticated remote client can reach the SMTP listener and exploit this with a 64 MiB single DATA line on a default 50 MiB size limit, allocating ~130 MiB of memory before receiving rejection. The issue was introduced after an earlier patch that assigned srv.MaxSize; multi-line messages are bounded, but individual oversized lines bypass the check. No patch has been released as of the advisory date.

Affected products

  • Mailpit Mailpit >=1.30.0, <1.30.5

Identifiers

  • CVE-2026-67447
  • GHSA-r553-m4fv-5v97
  • GO-2026-6272

Timeline

  • 2026-07-20: disclosed: Vulnerability details published via GHSA-r553-m4fv-5v97
  • 2026-07-09: other: Vulnerability confirmed in v1.30.4 release and develop branch
  • 2026-09-02: patched: Fix included in v1.30.5 release

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.