Stalwart vulnerable to Memory Exhaustion via CalDAV Event Expansion
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-770.
Summary
Stalwart is a mail and collaboration server. Starting in version 0.12.0 and prior to version 0.13.3, a memory exhaustion vulnerability exists in Stalwart's CalDAV implementation that allows authenticated attackers to cause denial-of-service by triggering unbounded memory consumption through recurring event expansion. An authenticated attacker can crash the Stalwart server by creating recurring events with large payloads and triggering their expansion through CalDAV REPORT requests. A single malicious request expanding 300 events with 1000-character descriptions can consume up to 2 GB of memory. The vulnerability exists in the `ArchivedCalendarEventData.expand` function, which processes CalDAV `REPORT` requests with event expansion. When a client requests recurring events in their expanded form using the `<C:expand>` element, the server stores all expanded event instances in memory without enforcing size limits. Users should upgrade to Stalwart version 0.13.3 or later to receive a fix. If immediate upgrading is not possible, implement memory limits at the container/system level; monitor server memory usage for unusual spikes; consider rate limiting CalDAV REPORT requests; and restrict CalDAV access to trusted users only.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| stalwartlabs | stalwart | 0.12.0 to before 0.13.3 | 0.13.3 | Patch available | CNA |
- stalwart Vendorstalwartlabs Affected 0.12.0 to before 0.13.3 Fixed in 0.13.3 Patch available CNA
Remediation
- Fix · CNA stalwart (stalwartlabs) Fixed in 0.13.3
Timeline
- 2026-10-02 Threatist record created from CVE-2025-59045
References
Other 5
- https://github.com/stalwartlabs/stalwart/security/advisories/GHSA-xv4r-q6gr-6pfg
- https://github.com/stalwartlabs/stalwart/commit/15762fba2ba335e560b8d25f71af085a8b6b6cf2
- https://github.com/stalwartlabs/stalwart/blob/main/CHANGELOG.md
- https://github.com/stalwartlabs/stalwart/releases/tag/v0.13.3
- https://tools.ietf.org/html/rfc4791
More stalwartlabs vulnerabilities
- TI-2024-23261 Stalwart Mail Server has privilege escalation by design CVSS 3.1CRITICAL 9.1
- TI-2026-56046 Stalwart Mail Server through 0.16.19 Authorization Code Disclosure via Unvalidated OAuth redirect_uri CVSS 4.0HIGH 8.5
- TI-2024-23253 Unprivileged Stalwart Mail Server user can read files as root CVSS 3.1MEDIUM 6.8
- TI-2025-38045 Unbounded Memory Allocation in Stalwart IMAP parser CVSS 3.1HIGH 7.5
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences