CVE-2026-67445: Mailpit: SMTP command parser buffers unbounded command lines before syntax rejection

Published Aug 20, 2026
·
Updated

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.

Affected Software

1 affected component
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:13 PM
Data Sourced
via MITRE·09:13 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed to this issue?

Mailpit versions before 1.30.4 are affected where an unauthenticated remote client can connect to the SMTP service. The issue is on the SMTP command path, including authentication continuation lines.

2

Does limiting message size or DATA input prevent exploitation?

No. MaxMessageSize and DATA limits do not apply because allocation occurs before the DATA phase, while reading an SMTP command or authentication continuation line.

3

What does an attacker need to do?

An attacker only needs network access to the SMTP service and can send an oversized single command line. No authentication or user interaction is required; concurrent oversized inputs can increase memory pressure and reduce availability.

4

What should be done if upgrading cannot happen immediately?

Restrict unauthenticated remote access to the Mailpit SMTP service to reduce exposure. The provided data identifies version 1.30.4 as 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