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
- 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.
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.
Affected software
| Software | Affected versions |
|---|---|
StalwartServers and applications · github:stalwartlabs/stalwart |
|
About Stalwart
Open-source mail server software with JMAP, IMAP4, POP3, and SMTP support
- 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
Website Source code Docker image
Vulnerabilities in Stalwart
- In our list
- 9
- Published in the last 12 months
- 5
- Critical, last 12 months
- 0
- High, last 12 months
- 2
- Known exploited
- 0
- GHSA-3v65-6jq9-v3hwUnauthenticated memory exhaustion through PDF attachment text extractionHigh 7.5 3 Dec 2026
- GHSA-ggp6-9qpj-58hfSMTP command injection through CR/LF in a Sieve redirect addressMedium 6.3 3 Dec 2026
- GHSA-hf56-fq2g-v9r2Authenticated memory exhaustion through repeated hrefs in CalDAV/CardDAV multiget reportsMedium 6.5 3 Dec 2026
- CVE-2026-26312Out-of-Memory Denial of Service via Malformed Nested MIME MessagesMedium 6.5 14 Feb 2026
- CVE-2025-61600Unbounded Memory Allocation in Stalwart IMAP serverHigh 7.5 30 Sept 2025
- CVE-2025-59045Memory Exhaustion via CalDAV Event ExpansionHigh 10 Sept 2025
References
- GitHub Advisory Database https://github.com/advisories/GHSA-7hw7-gq2q-796x
- github.com https://github.com/stalwartlabs/stalwart/security/advisories/GHSA-7hw7-gq2q-796x