Description
Mailpit is an email testing tool and API for developers. Prior to 1.30.4, Mailpit reads SMTP commands through internal/smtpd/smtpd.go session.readLine() using bufio.Reader.ReadString before session.parseLine() parses the verb or the RFC 5321 512-octet command-line limit is enforced. An unauthenticated remote SMTP client can send an oversized single command line that is fully allocated before syntax rejection or timeout, and the normal MaxMessageSize and DATA limits do not apply to this pre-DATA path. The same command reader is used by handleAuthLogin(), handleAuthPlain(), and handleAuthCramMD5() continuation lines, so concurrent oversized inputs can create memory pressure and reduce service availability. 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, a mail testing tool, reads SMTP commands by buffering the entire line before rejecting oversized commands. The parser uses bufio.Reader.ReadString without enforcing the RFC 5321 512‑octet limit, allowing a remote SMTP client to send a command line that is fully allocated in memory before syntax rejection or timeout, potentially exhausting heap space. This behavior constitutes a resource exhaustion flaw identified as CWE-400.

Affected Systems

The CVE affects axllent Mailpit versions prior to 1.30.4. Users of Mailpit running any earlier version should upgrade to 1.30.4 or later; no other vendors or products are listed as affected.

Risk and Exploitability

With a CVSS score of 5.3 the vulnerability is considered medium severity. The EPSS score is not available and the vulnerability is not listed in CISA’s KEV catalog. An unauthenticated remote SMTP client can initiate the exploit by sending an oversized command before authentication, and concurrent connections can amplify memory pressure to deny service. The problem exists in the normal command parsing path as well as in AUTH continuation handling, so a single attacker can degrade service availability without needing any credentials.

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

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Mailpit to version 1.30.4 or later to receive the fixed parser limit enforcement.
  • If an upgrade is delayed, restrict SMTP traffic to trusted hosts or use firewall rules to limit the maximum line length or connection rate for SMTP clients.
  • Monitor Mailpit memory usage and restart the service if sudden spikes or unresponsive behavior are observed.

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

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-w878-pj84-3j5v Mailpit: SMTP command parser buffers unbounded command lines before syntax rejection
History

Sat, 22 Aug 2026 04:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


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: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 reads SMTP commands through internal/smtpd/smtpd.go session.readLine() using bufio.Reader.ReadString before session.parseLine() parses the verb or the RFC 5321 512-octet command-line limit is enforced. An unauthenticated remote SMTP client can send an oversized single command line that is fully allocated before syntax rejection or timeout, and the normal MaxMessageSize and DATA limits do not apply to this pre-DATA path. The same command reader is used by handleAuthLogin(), handleAuthPlain(), and handleAuthCramMD5() continuation lines, so concurrent oversized inputs can create memory pressure and reduce service availability. This issue is fixed in version 1.30.4.
Title Mailpit: SMTP command parser buffers unbounded command lines before syntax rejection
Weaknesses CWE-400
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-21T21:45:36.467Z

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

Link: CVE-2026-67445

cve-icon Vulnrichment

Updated: 2026-08-21T21:09:34.590Z

cve-icon NVD

Status : Received

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

Modified: 2026-08-21T22:16:43.043

Link: CVE-2026-67445

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

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

Weaknesses
  • CWE-400

    Uncontrolled Resource Consumption