8.8high
DragonflyDB `CMS.INITBYDIM` integer overflow leads to a remote, attacker-controlled heap out-of-bounds write
- Severity
- 8.8high CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.52% (higher than 38% of CVEs)
- Published
- Last changed
- Assigned by
- GitHub_M
Description
Dragonfly is an in-memory data store built for modern application workloads. Prior to 1.40.0, CMS.INITBYDIM and CMS.INITBYPROB accept dimensions whose width times depth times sizeof(int64_t) overflows in src/core/cms.cc, allocating an undersized counter buffer while CMS.INCRBY and CMS.QUERY use the unbounded dimensions, which allows an unauthenticated remote client to corrupt or disclose adjacent heap memory and crash the server. This issue is fixed in version 1.40.0.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| dragonflydb dragonfly | < 1.40.0 | CVE List |
Classification
SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.
What each source says
CVE List
Dragonfly is an in-memory data store built for modern application workloads. Prior to 1.40.0, CMS.INITBYDIM and CMS.INITBYPROB accept dimensions whose width times depth times sizeof(int64_t) overflows in src/core/cms.cc, allocating an undersized counter buffer while CMS.INCRBY and CMS.QUERY use the unbounded dimensions, which allows an unauthenticated remote client to corrupt or disclose adjacent heap memory and crash the server. This issue is fixed in version 1.40.0.
NVD (es)
Dragonfly es un almacén de datos en memoria construido para cargas de trabajo de aplicaciones modernas. Antes de la versión 1.40.0, CMS.INITBYDIM y CMS.INITBYPROB aceptan dimensiones cuyo ancho por profundidad por sizeof(int64_t) desborda en src/core/cms.cc, asignando un búfer de contador de tamaño insuficiente mientras que CMS.INCRBY y CMS.QUERY usan las dimensiones ilimitadas, lo que permite a un cliente remoto no autenticado corromper o divulgar memoria adyacente del heap y bloquear el servidor. Este problema está solucionado en la versión 1.40.0.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-62357 changed 2026-08-19 | CVE Terms of Use |
| NVD | CVE-2026-62357 changed 2026-10-22 | Public domain |