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.
Published: 2026-08-18
Score: 8.8 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

DragonflyDB suffered an integer overflow in the CMS.INITBYDIM and CMS.INITBYPROB commands, where the product of the provided width, depth, and the size of an int64_t could overflow. The bug causes the code to allocate a buffer smaller than required, while CMS.INCRBY and CMS.QUERY later use the unbounded dimensions against this undersized buffer, allowing an attacker to overwrite or read adjacent heap memory. The consequence is memory corruption that can lead to disclosure of sensitive data or server crashes. The flaw falls under CWE-190: Integer Overflow or Wraparound.

Affected Systems

The vulnerability affects DragonflyDB versions prior to 1.40.0. The affected product is DragonflyDB Dragonfly; any deployment of this in‑memory data store that has not applied the 1.40.0 release is susceptible. No other vendors or products are listed as impacted.

Risk and Exploitability

The CVSS score of 8.8 indicates high severity. While the EPSS score is not available, the lack of a known exploit listing in the CISA KEV catalog suggests the risk is not yet confirmed at a large scale. Nevertheless, the flaw can be triggered by an unauthenticated remote client that can send CMS.INITBYDIM or CMS.INITBYPROB requests to the server, making it a remote data‑exposure and crash vulnerability. Attackers would need network access to the Dragonfly instance and could exploit the integer overflow even if no authentication is required, as the commands are public by design.

Generated by OpenCVE AI on August 18, 2026 at 16:56 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update DragonflyDB to the 1.40.0 release or later, which fixes the CMS command integer overflow.
  • Restart the Dragonfly service to load the patched code.
  • Limit network exposure of the Dragonfly instance to trusted clients only, or use a firewall to block access from untrusted networks until the patch is in place.

Generated by OpenCVE AI on August 18, 2026 at 16:56 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 18 Aug 2026 15:30:00 +0000

Type Values Removed Values Added
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.
Title DragonflyDB `CMS.INITBYDIM` integer overflow leads to a remote, attacker-controlled heap out-of-bounds write
Weaknesses CWE-190
References
Metrics cvssV4_0

{'score': 8.8, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:H/VA:H/SC:N/SI:N/SA:N'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-18T15:18:52.900Z

Reserved: 2026-07-13T22:04:59.677Z

Link: CVE-2026-62357

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-18T16:18:11.650

Modified: 2026-08-18T16:18:11.650

Link: CVE-2026-62357

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-18T17:00:12Z

Weaknesses
  • CWE-190

    Integer Overflow or Wraparound