CVE-2025-61600
JSON

7.5high

Unbounded Memory Allocation in Stalwart IMAP parser

Severity
7.5high CVSS:3.1 by GitHub_M
Exploit likelihood
0.56% (higher than 48% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M

Description

Stalwart is a mail and collaboration server. Versions 0.13.3 and below contain an unbounded memory allocation vulnerability in the IMAP protocol parser which allows remote attackers to exhaust server memory, potentially triggering the system's out-of-memory (OOM) killer and causing a denial of service. The CommandParser implementation enforces size limits on its dynamic buffer in most parsing states, but several state handlers omit these validation checks. This issue is fixed in version 0.13.4. A workaround for this issue is to implement rate limiting and connection monitoring at the network level, however this does not provide complete protection.

Affected

Product or packageVersionsReported by
stalwartlabs stalwart< 0.13.4CVE List

Classification

CWE-400CWE-789

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

Stalwart is a mail and collaboration server. Versions 0.13.3 and below contain an unbounded memory allocation vulnerability in the IMAP protocol parser which allows remote attackers to exhaust server memory, potentially triggering the system's out-of-memory (OOM) killer and causing a denial of service. The CommandParser implementation enforces size limits on its dynamic buffer in most parsing states, but several state handlers omit these validation checks. This issue is fixed in version 0.13.4. A workaround for this issue is to implement rate limiting and connection monitoring at the network level, however this does not provide complete protection.

NVD (es)

Stalwart es un servidor de correo y colaboración. Las versiones 0.13.3 e inferiores contienen una vulnerabilidad de asignación de memoria ilimitada en el analizador del protocolo IMAP que permite a atacantes remotos agotar la memoria del servidor, potencialmente activando el 'out-of-memory (OOM) killer' del sistema y causando una denegación de servicio. La implementación de CommandParser aplica límites de tamaño a su búfer dinámico en la mayoría de los estados de análisis, pero varios manejadores de estado omiten estas comprobaciones de validación. Este problema está solucionado en la versión 0.13.4. Una solución alternativa para este problema es implementar limitación de velocidad y monitoreo de conexiones a nivel de red, sin embargo, esto no proporciona protección completa.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-61600 changed 2025-10-03CVE Terms of Use
NVDCVE-2025-61600 changed 2026-10-12Public domain