CVE-2026-5759 PUBLISHED

Double free and use-after-free in FalkorDB RdbLoadDeletedNodes allows remote code execution via crafted RDB

Assigner: securin
Reserved: 07.04.2026 Published: 09.10.2026 Updated: 09.10.2026

A double free and use-after-free vulnerability in the RdbLoadDeletedNodes function of the RDB graph decoders (src/serializers/decoders/*/decode_graph_entities.c) in FalkorDB before 4.18.1 allows a remote attacker who can issue Redis replication commands (for example, against an instance with no password configured) to cause a denial of service or execute arbitrary code in the redis-server process by supplying a crafted RDB stream whose deleted-nodes buffer length is not a multiple of sizeof(NodeID). The length check relies on ASSERT(), which is compiled out in release builds, so the function continues after freeing the buffer, reading it and freeing it a second time.

Metrics

CVSS Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
CVSS Score: 9.3

Product Status

Vendor FalkorDB
Product FalkorDB
Versions Default: unaffected
  • affected from 0 to 4.18.1 (excl.)

Workarounds

Require authentication on the Redis/FalkorDB instance (requirepass or ACLs), restrict or rename the REPLICAOF/SLAVEOF commands so untrusted clients cannot use them, and do not expose the instance to untrusted networks.

Solutions

Upgrade FalkorDB to version 4.18.1 or later.

Credits

  • Arjun Basnet from Securin finder

References

Problem Types

  • CWE-415 Double Free CWE
  • CWE-416 Use After Free CWE