CVE-2026-62357
JSON

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 packageVersionsReported by
dragonflydb dragonfly< 1.40.0CVE List

Classification

CWE-190

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

SourceRecordLicence
CVE ListCVE-2026-62357 changed 2026-08-19CVE Terms of Use
NVDCVE-2026-62357 changed 2026-10-22Public domain