6.5medium
Stalwart Mail Server has Out-of-Memory Denial of Service via Malformed Nested MIME Messages
- Severity
- 6.5medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.42% (higher than 38% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
Description
Stalwart is a mail and collaboration server. A denial-of-service vulnerability exists in Stalwart Mail Server versions 0.13.0 through 0.15.4 where accessing a specially crafted email containing malformed nested `message/rfc822` MIME parts via IMAP or JMAP causes excessive CPU and memory consumption, potentially leading to an out-of-memory condition and server crash. The malformed structure causes the `mail-parser` crate to produce cyclical references in its parsed representation, which Stalwart then follows indefinitely. Version 0.15.5 contains a patch.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| stalwartlabs stalwart | >= 0.13.0, < 0.15.5 | CVE List |
| stalw stalwart | from 0.13.0 before 0.15.5 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
Stalwart is a mail and collaboration server. A denial-of-service vulnerability exists in Stalwart Mail Server versions 0.13.0 through 0.15.4 where accessing a specially crafted email containing malformed nested `message/rfc822` MIME parts via IMAP or JMAP causes excessive CPU and memory consumption, potentially leading to an out-of-memory condition and server crash. The malformed structure causes the `mail-parser` crate to produce cyclical references in its parsed representation, which Stalwart then follows indefinitely. Version 0.15.5 contains a patch.
NVD (es)
Stalwart es un servidor de correo y colaboración. Existe una vulnerabilidad de denegación de servicio en las versiones 0.13.0 a 0.15.4 de Stalwart Mail Server donde el acceso a un correo electrónico especialmente diseñado que contiene partes MIME anidadas 'message/rfc822' malformadas a través de IMAP o JMAP causa un consumo excesivo de CPU y memoria, lo que puede llevar a una condición de falta de memoria y a la caída del servidor. La estructura malformada hace que el crate 'mail-parser' produzca referencias cíclicas en su representación analizada, que Stalwart sigue indefinidamente. La versión 0.15.5 contiene un parche.
References
| https://github.com/stalwartlabs/stalwart/security/advisories/GHSA-jm95-876q-c9gw | exploit, vendor-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-26312 changed 2026-02-20 | CVE Terms of Use |
| NVD | CVE-2026-26312 changed 2026-06-17 | Public domain |