# CVE-2026-26312: Stalwart Mail Server has Out-of-Memory Denial of Service via Malformed Nested MIME Messages

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.42%, higher than 38% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-02-19T21:05:11.788Z
- Modified: 2026-06-17T10:26:04.290Z
- Weaknesses: CWE-770
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- stalwartlabs stalwart: >= 0.13.0, < 0.15.5
- stalw stalwart: from 0.13.0 before 0.15.5

## References

- <https://github.com/stalwartlabs/stalwart/security/advisories/GHSA-jm95-876q-c9gw> (exploit, vendor-advisory)

## Sources

- CVE List: [CVE-2026-26312](https://www.cve.org/CVERecord?id=CVE-2026-26312), CVE Terms of Use, modified 2026-02-20
- NVD: [CVE-2026-26312](https://nvd.nist.gov/vuln/detail/CVE-2026-26312), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-26312 · Whole record: https://cve.day/CVE-2026-26312.json · Rebuilt by cve.day 2026-11-25T22:59:14.257Z
