Skip to main content

Mailpit EUVDEUVD-2026-63663

| CVE-2026-67445 MEDIUM
Uncontrolled Resource Consumption (CWE-400)
2026-08-20 security-advisories@github.com GHSA-w878-pj84-3j5v
5.3
CVSS 3.1 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Connect to Mailpit SMTP port
  2. Delivery
    Send multi-megabyte command line before DATA
  3. Exploit
    Trigger unbounded heap allocation in readLine()
  4. Execution
    Repeat concurrently across sessions
  5. Persist
    Exhaust server memory
  6. Impact
    Mailpit 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 readLine() function is invoked before any AUTH exchange, on the raw SMTP command path. Exploitation requires only TCP network connectivity to the port where Mailpit's SMTP daemon is listening (default 1025). No special SMTP capabilities, TLS negotiation, or specific configuration flags are needed; the vulnerability exists in the default out-of-box configuration. The primary limiting factor is deployment context: Mailpit is a developer testing tool and its SMTP port is typically bound to localhost or a private network, meaning exploitation from the public internet requires the operator to have explicitly exposed the port. Concurrent connections amplify memory pressure, making multi-connection abuse more impactful than a single oversized command.

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., EHLO followed by 8 MB of arbitrary characters and a CRLF terminator) before any authentication or DATA exchange. Mailpit allocates the full line in heap memory before rejecting it on syntax grounds. By opening multiple concurrent connections and repeating this pattern, an attacker can rapidly exhaust available memory, causing the Go runtime to stall garbage collection or the OS to OOM-kill the Mailpit process. The GitHub advisory and public commit make the triggering behavior straightforward to replicate.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

mailpit < 1.30.4

Affected Packages

go github.com/axllent/mailpit fix: 1.30.4
euvd mailpit fix: 1.30.4

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

Vendor (github) PRIMARY 5.3 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
vuln.today AI 5.3 MEDIUM

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.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
SUSE MEDIUM

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
Low

Lifecycle Timeline

1
Patch available
Aug 20, 2026 - 22:04 EUVD

DescriptionCVE.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

EPSS Score
0.4%
Top 70% exploitable
Prevalence
Low
developer-only testing tool, rarely deployed in production
Threat Intel
1
1 source
Exploit
POC
Public exploit code exists
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub VulDB

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

46
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Vendor 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

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy