Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend CMS.INITBYDIM with overflow-inducing width/depth values
-
Deliverysize_t integer overflow yields undersized heap allocation
-
ExploitSend CMS.INCRBY or CMS.QUERY targeting same key
-
ExecutionOut-of-bounds heap read/write using unchecked original dimensions
-
ImpactCorrupt adjacent heap memory or crash Dragonfly server
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Integer overflow checks
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The target Dragonfly instance must be network-reachable and must not enforce password authentication (no requirepass / ACL password configuration), consistent with PR:N in the CVSS 4.0 vector. No special configuration is required to expose the CMS commands - they are part of Dragonfly's default command set enabled in all standard deployments. No user interaction is required and attack complexity is low (AC:L, AT:N), meaning no race condition, memory layout dependency, or timing requirement must be met. Exploitation is bounded to Dragonfly versions prior to v1.40.0; instances upgraded to v1.40.0 are fully remediated. Instances deployed behind a firewall or private VPC that blocks untrusted external access are not directly exploitable from the internet, but remain vulnerable to any client that can reach the Dragonfly port - including internal compromised hosts or misconfigured network segments. |
| Impact | The CVSS 4.0 vector AV:N/AC:L/AT:N/PR:N/UI:N yields the worst-case attack surface profile: reachable over any network, no complexity, no prerequisites, no authentication, no user interaction. The 8.8 score reflects high integrity and availability impact (VI:H, VA:H) from heap corruption and crash, with limited confidentiality impact (VC:L) from potential heap content disclosure. No KEV listing is present in the provided data, and no external POC beyond the fix's own regression test vectors was identified, so confirmed active exploitation is absent. EPSS data was not provided, leaving exploitation probability statistically unquantified. Despite this, the attack is structurally trivial - two sequential CMS commands suffice - and any Dragonfly instance that exposes its port without authentication is directly reachable. Dragonfly's smaller market share relative to Redis moderates aggregate population exposure, but individual deployed instances accepting untrusted connections face high real-world risk. The CVSS signals are internally consistent with the description; no conflicting data was detected. |
| Exploit ScenarioDerived | An unauthenticated attacker with network access to a Dragonfly server sends CMS.INITBYDIM with width=2147483648 and depth=1073741824 - values whose product overflows size_t - causing the server to allocate a near-zero-byte counter buffer. A follow-up CMS.INCRBY or CMS.QUERY command then operates against the same key using the stored large dimensions, indexing far past the end of the allocated buffer into adjacent heap memory, potentially corrupting allocator metadata, overwriting neighboring objects, or leaking their contents. No public exploit code was identified at time of analysis, but the attack requires only two standard Redis-protocol commands and the dimension values needed are directly derivable from the fix's regression tests. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 18, 2026
Integer overflow in Dragonfly's Count-Min Sketch implementation prior to v1.40.0 allows unauthenticated remote clients to corrupt adjacent heap memory, partially disclose heap contents, and crash the server. The flaw exists in src/core/cms.cc: CMS.INITBYDIM and CMS.INITBYPROB accept width/depth parameters whose product with sizeof(int64_t) overflows size_t, causing the allocator to receive a truncated length and produce an undersized buffer; CMS.INCRBY and CMS.QUERY then operate with the original large dimensions, writing and reading past the end of that buffer. No public exploit code has been identified at time of analysis, but the CVSS 4.0 vector confirms unauthenticated network exploitation with no preconditions, rating this 8.8.
RemediationAI
Upgrade Dragonfly to v1.40.0 or later; this is the vendor-confirmed fix available at https://github.com/dragonflydb/dragonfly/releases/tag/v1.40.0 and resolves the overflow by introducing AllocationSize() bounds checks and hard dimension caps (width ≤ 1,000,000; depth ≤ 100). If an immediate upgrade is not feasible, restrict network access to the Dragonfly port (default 6379) to trusted client IP ranges using firewall rules or security groups - this eliminates exposure to untrusted external clients but does not protect against compromised internal hosts. As a second compensating control, enforce Dragonfly authentication via the requirepass directive, which raises the attack bar to PR:L and filters the population of potential attackers to credentialed clients; note that this does not eliminate the vulnerability, only narrows who can trigger it. Disabling CMS commands entirely via ACL rules is a viable option if Count-Min Sketch functionality is not in use, with no side effects beyond losing that feature.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Dragonfly is a Redis-compatible in-memory data store targeting modern, high-throughput workloads. The affected component is the Count-Min Sketch (CMS) probabilistic frequency-estimation structure, implemented in src/core/cms.cc and exposed via the CMS.INITBYDIM, CMS.INITBYPROB, CMS.INCRBY, and CMS.QUERY commands. The root cause is CWE-190 (Integer Overflow or Wraparound): the expression width * depth * sizeof(int64_t) is computed as a size_t without overflow guards before being passed to the memory allocator. When width and depth are chosen such that their product exceeds SIZE_MAX / sizeof(int64_t) - e.g., width=2147483648 and depth=1073741824 as demonstrated in the fix's regression tests - the multiplication wraps around to a very small value, and the allocator returns an undersized buffer. Subsequent CMS.INCRBY and CMS.QUERY calls index the buffer using the original, unchecked large dimensions, producing classic out-of-bounds heap memory access. The fix in PR #7647 (commit c004623249fe2151dc5d64e21364fb9fb07c90d3) introduces: (1) an AllocationSize() helper that asserts no overflow via CHECK_LE before multiplying; (2) ValidateCmsDimensions() capping width at 1,000,000 and depth at 100; and (3) a corrected overflow check in rdb_load.cc that accounts for sizeof(int64_t). The CPE cpe:2.3:a:dragonflydb:dragonfly:*:*:*:*:*:*:*:* confirms all releases before v1.40.0 carry the vulnerable code.
Know when Dragonfly gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Network-reachable with no auth or complexity (AV:N/AC:L/PR:N/UI:N); heap corruption drives high I/A; limited heap disclosure yields C:L; no scope change.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
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.
Executive ViewAI
Dragonfly versions prior to 1.40.0 contain a critical integer overflow vulnerability that permits unauthenticated remote attackers to corrupt in-memory data, crash services, and leak sensitive cached information without any authentication or special privileges. Organizations using Dragonfly for caching, session storage, or real-time data are at immediate risk of service disruption and data exposure. This vulnerability requires urgent patching across all production deployments.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Integer overflow occurs when an arithmetic operation produces a result that exceeds the maximum value a given integer type can store.
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Dragonfly P2P file distribution system versions 2.4.1-rc.0 and below have a missing authentication vulnerability allowin
An argument injection vulnerability in the Dragonfly gem before 1.4.0 for Ruby allows remote attackers to read and write
Dragonfly is an open source P2P-based file distribution and image acceleration system. Rated high severity (CVSS 7.7), t
A double-free in Dragonfly's RDB stream loader (OpaqueObjLoader::CreateStream in src/server/rdb_load.cc) lets a remote,
Unauthenticated remote attackers can crash Dragonfly through 2.0.2 by issuing a single HRANDFIELD, ZRANDMEMBER, or SRAND
Dragonfly is an open source P2P-based file distribution and image acceleration system. Rated high severity (CVSS 7.7), t
Remote denial of service in DragonflyDB before 1.39.0 lets an unauthenticated attacker crash the entire server with a si
Dragonfly is a Java runtime dependency management library. Rated high severity (CVSS 7.5), this vulnerability is remotel
DragonflyDB Dragonfly before 1.27.0 allows authenticated users to cause a denial of service (daemon crash) via a crafted
DragonflyDB Dragonfly through 1.28.2 (fixed in 1.29.0) allows authenticated users to cause a denial of service (daemon c
Dragonfly is an open source P2P-based file distribution and image acceleration system. Rated medium severity (CVSS 5.5),
RESP protocol injection in Dragonfly's EvalSerializer allows an authenticated low-privilege user to embed raw CRLF seque
EUVD-2026-60960
NVD
CVE.org
EPSS
GitHub
Exploit-DB