CVE-2026-111279
7.5HighPublished 15 Oct 2026 · NVD status: Deferred · AI triage by gemini-3.8-flash
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
- Impact
- High impact on availability
- Weakness
- CWE-789
Impact
Unauthenticated remote attackers can crash the Dragonfly service and cause a complete denial of service. They only need network access to send a single command with a large negative count.
Root cause
The server performs unbounded memory allocation when handling negative COUNT arguments in HRANDFIELD, ZRANDMEMBER, and SRANDMEMBER commands, triggering the OOM killer.
Affected systems
Dragonfly through 2.0.2
CVSS v3.1 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Fix & remediation
Upgrade to a version newer than 2.0.2 when available. As an interim workaround, restrict network access to the Dragonfly port or disable/rename the vulnerable commands (HRANDFIELD, ZRANDMEMBER, SRANDMEMBER) via configuration or ACLs.
$ dragonfly --versionAI-suggested. Run it in staging first and check it against the vendor advisory. Why?
NVD description
Dragonfly through 2.0.2 contains an unbounded memory allocation vulnerability that allows unauthenticated clients to exhaust memory by passing a negative COUNT to HRANDFIELD, ZRANDMEMBER or SRANDMEMBER. Attackers can send a single command against a one-element key with a huge negative COUNT to trigger the OOM killer, terminating the instance for all clients.
References
- https://github.com/dragonflydb/dragonfly
- https://github.com/dragonflydb/dragonfly/blob/8ce4bbb106586057fbd85f71ed353c60d0d5bf87/src/server/hset_family.cc#L1436-L1483
- https://github.com/dragonflydb/dragonfly/blob/8ce4bbb106586057fbd85f71ed353c60d0d5bf87/src/server/set_family.cc#L957-L984
- https://github.com/dragonflydb/dragonfly/blob/8ce4bbb106586057fbd85f71ed353c60d0d5bf87/src/server/zset_family.cc#L1519-L1522
- https://github.com/dragonflydb/dragonfly/issues/8578
- https://www.vulncheck.com/advisories/dragonfly-through-2.0.2-unbounded-memory-allocation-via-negative-count-in-hrandfield-zrandmember-and-srandmember
- https://github.com/dragonflydb/dragonfly/issues/8578