Skip to main content

Dragonfly CVE-2026-62357

| EUVDEUVD-2026-60960 HIGH
Integer Overflow or Wraparound (CWE-190)
2026-08-18 GitHub_M
8.8
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Send CMS.INITBYDIM with overflow-inducing width/depth values
  2. Delivery
    size_t integer overflow yields undersized heap allocation
  3. Exploit
    Send CMS.INCRBY or CMS.QUERY targeting same key
  4. Execution
    Out-of-bounds heap read/write using unchecked original dimensions
  5. Impact
    Corrupt 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Dragonfly < 1.40.0

Affected Packages

euvd dragonfly fix: 1.40.0

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

Vendor (GitHub_M) PRIMARY 8.8 HIGH
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
vuln.today AI 9.4 CRITICAL

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.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Aug 18, 2026 - 16:17 EUVD
CVE Published
Aug 18, 2026 - 15:18 cve.org
HIGH 8.8

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.4%
Top 68% exploitable
Prevalence
Low
niche Redis-compatible alternative, limited broad enterprise footprint
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

CVE-2026-24124 CRITICAL POC
9.8 Jan 22

Dragonfly P2P file distribution system versions 2.4.1-rc.0 and below have a missing authentication vulnerability allowin

CVE-2021-33564 CRITICAL POC
9.8 May 29

An argument injection vulnerability in the Dragonfly gem before 1.4.0 for Ruby allows remote attackers to read and write

CVE-2025-59353 HIGH POC
7.7 Sep 17

Dragonfly is an open source P2P-based file distribution and image acceleration system. Rated high severity (CVSS 7.7), t

CVE-2026-104192 CRITICAL
9.6 Oct 13

A double-free in Dragonfly's RDB stream loader (OpaqueObjLoader::CreateStream in src/server/rdb_load.cc) lets a remote,

CVE-2026-111279 HIGH
8.7 Oct 15

Unauthenticated remote attackers can crash Dragonfly through 2.0.2 by issuing a single HRANDFIELD, ZRANDMEMBER, or SRAND

CVE-2025-59345 HIGH
7.7 Sep 17

Dragonfly is an open source P2P-based file distribution and image acceleration system. Rated high severity (CVSS 7.7), t

CVE-2026-54341 HIGH
7.5 Jun 26

Remote denial of service in DragonflyDB before 1.39.0 lets an unauthenticated attacker crash the entire server with a si

CVE-2022-41967 HIGH
7.5 Dec 28

Dragonfly is a Java runtime dependency management library. Rated high severity (CVSS 7.5), this vulnerability is remotel

CVE-2025-26268 LOW POC
3.3 Apr 17

DragonflyDB Dragonfly before 1.27.0 allows authenticated users to cause a denial of service (daemon crash) via a crafted

CVE-2025-26269 LOW POC
3.3 Apr 17

DragonflyDB Dragonfly through 1.28.2 (fixed in 1.29.0) allows authenticated users to cause a denial of service (daemon c

CVE-2025-59410 MEDIUM
5.5 Sep 17

Dragonfly is an open source P2P-based file distribution and image acceleration system. Rated medium severity (CVSS 5.5),

CVE-2026-47206 LOW
2.3 Jun 26

RESP protocol injection in Dragonfly's EvalSerializer allows an authenticated low-privilege user to embed raw CRLF seque

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy