Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessConnect to Mailpit SMTP port
-
DeliverySend multi-megabyte command line before DATA
-
ExploitTrigger unbounded heap allocation in readLine()
-
ExecutionRepeat concurrently across sessions
-
PersistExhaust server memory
-
ImpactMailpit becomes unavailable
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource consumption limits
MITRE ATT&CK
1 technique across 1 tactic: Impact The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | No authentication is required - the vulnerable |
| Impact | The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L) correctly characterizes this as a remote, unauthenticated, low-complexity availability issue. However, the practical risk is bounded by Mailpit's deployment context: it is explicitly a developer testing tool, and its SMTP listener (typically on a non-standard port such as 1025) is rarely exposed to untrusted networks. Organizations that bind Mailpit to 0.0.0.0 or expose it via a public IP without firewall controls face the highest risk. The impact is limited to service availability - there is no confidentiality or integrity exposure - and the per-instance impact (A:L) reflects partial rather than complete resource exhaustion in most cases. No EPSS score was provided in the input data, and there is no CISA KEV entry, indicating no confirmed active exploitation. The availability of the GitHub security advisory and fix commit (GHSA-w878-pj84-3j5v) means the vulnerability detail is public, which marginally increases exploitation probability over time even absent a standalone POC. Real-world risk is low for development-only deployments behind a firewall, moderate for any Mailpit instance reachable by untrusted SMTP clients. |
| Exploit ScenarioDerived | An attacker with network access to the Mailpit SMTP port opens a TCP connection and immediately sends a single SMTP command line padded to several megabytes (e.g., |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 20, 2026
Uncontrolled memory allocation in Mailpit's SMTP command reader allows unauthenticated remote clients to exhaust server memory by sending oversized pre-DATA command lines. Versions prior to 1.30.4 use Go's unbounded bufio.Reader.ReadString in internal/smtpd/smtpd.go, which allocates the full attacker-controlled input before any syntax rejection or RFC 5321 line-length enforcement occurs. The same vulnerable code path handles AUTH continuation lines (LOGIN, PLAIN, CRAM-MD5), so concurrent oversized inputs compound memory pressure and can reduce service availability. No public exploit identified at time of analysis; a vendor-released patch is available in v1.30.4.
RemediationAI
Upgrade Mailpit to version 1.30.4, which is confirmed as the vendor-released fix per the GitHub release tag https://github.com/axllent/mailpit/releases/tag/v1.30.4 and commit 993bed95b3c74d95231af93bd0e0d4c3d5b4db4d. The full security advisory is at https://github.com/axllent/mailpit/security/advisories/GHSA-w878-pj84-3j5v. If immediate upgrade is not possible, the most effective compensating control is to restrict network access to Mailpit's SMTP port using firewall rules or network policies so only trusted developer hosts can connect - this eliminates the unauthenticated remote attack surface entirely. Alternatively, placing Mailpit behind a rate-limiting TCP proxy (e.g., HAProxy with tune.bufsize or tcp-request content reject rules) can throttle oversized command lines, though this adds operational complexity. Do not rely on Mailpit's MaxMessageSize setting as a workaround - it does not apply to the pre-DATA command path.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in go, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Mailpit is a Go-based email testing tool that implements its own SMTP daemon. The root cause is CWE-400 (Uncontrolled Resource Consumption): Go's bufio.Reader.ReadString('\n') reads until the delimiter with no configurable maximum, meaning a single multi-megabyte command line is fully heap-allocated before session.parseLine() can inspect or reject it. RFC 5321 section 4.5.3.1.4 limits SMTP command lines to 512 octets including CRLF, but Mailpit did not enforce this limit at the read layer. Critically, Mailpit's MaxMessageSize and DATA-phase limits are applied downstream and do not guard the pre-DATA command path - so the protection already present for message bodies offered no defense here. The same readLine() path is shared by handleAuthLogin(), handleAuthPlain(), and handleAuthCramMD5(), meaning AUTH negotiation continuation lines are equally vulnerable. The fix (commit 993bed95) replaces bufio.NewReader with bufio.NewReaderSize(conn, 2048) and switches to ReadLine() with an explicit drain-and-reject loop for oversized input, returning a syntactically valid SMTP 500 reply. The POP3 server received a parallel fix bounded to RFC 1939's 255-octet limit.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Network-reachable with no auth (PR:N, AV:N, AC:L); availability-only impact (A:L) reflects partial exhaustion typical of single-instance testing tools.
Primary rating from Vendor (github).
CVSS VectorVendor: github
Lifecycle Timeline
1DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Same weakness CWE-400 – Uncontrolled Resource Consumption
View allSame technique Denial Of Service
View allVendor StatusVendor
SUSE
Severity: Moderate| Product | Status |
|---|---|
| SUSE Linux Enterprise Module for Package Hub 15 SP5 | Affected |
| SUSE Linux Enterprise Module for Package Hub 15 SP6 | Affected |
| openSUSE Leap 15.5 | Affected |
| openSUSE Leap 15.6 | Affected |
EUVD-2026-63663
GHSA-w878-pj84-3j5v
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB