DragonflyDB `CMS.INITBYDIM` integer overflow leads to a remote, attacker-controlled heap out-of-bounds write
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- —
- Confidentiality · integrity · availability
- Low · High · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| dragonflydb | dragonfly | before 1.40.0 | 1.40.0 | Patch available | CNA |
- dragonfly Vendordragonflydb Affected before 1.40.0 Fixed in 1.40.0 Patch available CNA
Remediation
- Fix · CNA dragonfly (dragonflydb) Fixed in 1.40.0
Timeline
- 2026-10-02 Threatist record created from CVE-2026-62357
References
More dragonflydb vulnerabilities
- TI-2026-75060 Unbounded memory allocation in Dragonfly via negative COUNT values CVSS 4.0HIGH 8.7
- TI-2026-39235 Dragonfly: RESTORE operations may crash the server CVSS 3.1HIGH 7.5
- TI-2025-19279 DragonflyDB Dragonfly before 1.27.0 allows authenticated users to cause a denial of… CVSS 3.1MEDIUM 6.5
- TI-2025-19280 Integer underflow in dragonflydb Dragonfly CVSS 3.1MEDIUM 5.5
- TI-2026-34794 Dragonfly: RESP Protocol Injection via Lua redis.error_reply() in EvalSerializer CVSS 4.0LOW 2.3
- TI-2026-71838 Double free in DragonflyDB stream RDB deserialization CVSS 3.1CRITICAL 9.6
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences