All vulnerabilities

Servers and applications

GHSA-7hw7-gq2q-796x

Unauthenticated memory exhaustion through inbound DMARC and TLS report analysis

Severity
High 7.5
Published
3 Dec 2026
Last changed
3 Dec 2026
Added to UpHeron
3 Dec 2026
Fixed in
1.2.3
Weakness
Allocation without limits (CWE-770)
Attack
Over the network · No login needed · No user action needed
Attacker can
Take it down
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Sources
Project advisories (GitHub)

Description

Stalwart parses messages sent to its inbound report addresses (by default postmaster@ of every hosted domain) as DMARC aggregate, TLS-RPT or ARF reports. The sender needs no authentication. The DMARC and TLS-RPT parsers placed no limit on the number of entries in a report, and the decompressed-size limit (maxInboundReportSize, 25 MiB by default) does not bound the parsed result: a small gzip attachment holding an aggregate report with about 1.45 million empty elements expands to roughly 640 MB of memory. Report analysis also ran in a detached task per message with no memory accounting, so a few such messages delivered at the same time can exhaust the server's memory and get the process killed, interrupting mail delivery and every other service on the node.

From stalwartlabs/stalwart's security advisory.

Workarounds

Set ReportSettings.inboundReportAddresses to a single exact address that is not otherwise used, or to an empty list to turn inbound report analysis off, so postmaster@* mail is no longer analyzed.

Workarounds as given by stalwartlabs/stalwart's security advisory.

Affected software

SoftwareAffected versions
StalwartServers and applications · github:stalwartlabs/stalwart
  • Every version before 1.2.3

About Stalwart

Open-source mail server software with JMAP, IMAP4, POP3, and SMTP support

From Wikidata, CC0 1.0.
Docker Hub pulls
3,987,049Docker Hub, 29 Nov 2026
GitHub stars
16,544GitHub, 29 Nov 2026
Forks
1,108GitHub, 29 Nov 2026
Latest release
v1.2.1GitHub, 29 Nov 2026
Released
26 Nov 2026GitHub
Developer
Stalwart Labs LLCWikidata
Written in
RustWikidata
First released
3 Oct 2021Wikidata
First published on GitHub
6 Mar 2023GitHub

References