# CVE-2026-62357: DragonflyDB `CMS.INITBYDIM` integer overflow leads to a remote, attacker-controlled heap out-of-bounds write

- Severity: High 8.8 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.52%, higher than 38% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-08-18T15:18:52.900Z
- Modified: 2026-10-22T22:10:00.250Z
- Weaknesses: CWE-190
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- dragonflydb dragonfly: < 1.40.0

## References

- <https://github.com/dragonflydb/dragonfly/security/advisories/GHSA-cmmv-h748-v93x> (exploit)
- <https://github.com/dragonflydb/dragonfly/pull/7647>
- <https://github.com/dragonflydb/dragonfly/commit/c004623249fe2151dc5d64e21364fb9fb07c90d3>
- <https://github.com/dragonflydb/dragonfly/releases/tag/v1.40.0>

## Sources

- CVE List: [CVE-2026-62357](https://www.cve.org/CVERecord?id=CVE-2026-62357), CVE Terms of Use, modified 2026-08-19
- NVD: [CVE-2026-62357](https://nvd.nist.gov/vuln/detail/CVE-2026-62357), Public domain, modified 2026-10-22

---

Page: https://cve.day/CVE-2026-62357 · Whole record: https://cve.day/CVE-2026-62357.json · Rebuilt by cve.day 2026-11-25T22:59:33.505Z
