Description
Mailpit is an email testing tool and API for developers. From 1.30.0 until 1.30.5, Mailpit's internal/smtpd/smtpd.go readData() function calls bufio.Reader.ReadBytes before applying the len(data)+len(line) size check to the completed SMTP DATA line against Server.MaxSize. An unauthenticated SMTP client can send a single line larger than the configured MaxMessageSize, causing the full line to be allocated before Mailpit returns the 552 5.3.4 rejection. This post-fix gap remains after normal multi-line DATA accumulation was bounded, and concurrent oversized lines can create substantial memory pressure beyond the configured message-size cap. This issue is fixed in version 1.30.5.
Published: 2026-08-20
Score: 5.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Mailpit, an email testing tool, had a flaw where the SMTP DATA line reader accepted input beyond the configured maximum before enforcing size limits, causing a large buffer to be allocated. An unauthenticated client could send a single line larger than the server’s MaxMessageSize, leading the server to allocate memory for the entire line before rejecting the message. This can create excessive memory pressure and potentially allow a denial‑of‑service attack. The weakness is classified as CWE-770, an improper restriction on resources.

Affected Systems

The issue affects axllent Mailpit versions 1.30.0 through 1.30.5. Affected users are running any instance of Mailpit within that version range without the patch. Later releases, starting with 1.30.6, contain the fix.

Risk and Exploitability

The CVSS score of 5.3 indicates moderate severity. No EPSS data is available, and it is not listed in the CISA KEV catalog, suggesting the threat is not widely exploited yet. The attack vector is network‑based; any SMTP client that can reach the Mailpit server can exploit the flaw without authentication, making the risk readily actionable by attackers who discover exposed instances.

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

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Mailpit to version 1.30.5 or later to apply the patch that enforces size limits before reading data.
  • If an upgrade cannot be performed immediately, limit SMTP access to trusted clients only, or restrict network reachability with a firewall so that only authenticated or internal IPs can connect.
  • Monitor memory usage of the Mailpit process and set system limits to prevent a single request from consuming all available memory.

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

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-r553-m4fv-5v97 Mailpit: SMTP DATA line reader buffers over-limit input before size enforcement
History

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

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

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

Type Values Removed Values Added
Description Mailpit is an email testing tool and API for developers. From 1.30.0 until 1.30.5, Mailpit's internal/smtpd/smtpd.go readData() function calls bufio.Reader.ReadBytes before applying the len(data)+len(line) size check to the completed SMTP DATA line against Server.MaxSize. An unauthenticated SMTP client can send a single line larger than the configured MaxMessageSize, causing the full line to be allocated before Mailpit returns the 552 5.3.4 rejection. This post-fix gap remains after normal multi-line DATA accumulation was bounded, and concurrent oversized lines can create substantial memory pressure beyond the configured message-size cap. This issue is fixed in version 1.30.5.
Title Mailpit: SMTP DATA line reader buffers over-limit input before size enforcement
Weaknesses 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-21T16:19:21.564Z

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

Link: CVE-2026-67447

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-20T22:17:56.720

Modified: 2026-08-21T17:16:41.210

Link: CVE-2026-67447

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-21T01:00:04Z

Weaknesses
  • CWE-770

    Allocation of Resources Without Limits or Throttling