FalkorDB Fixes Critical Double Free Vulnerability in Graph Decoder
A critical flaw in FalkorDB allows remote attackers to execute code or crash servers via crafted replication streams, with a patch now available in version 4.18.1.

Key points
- CVE-2026-5759 is rated Critical with a CVSS score of 9.3.
- The vulnerability involves double free and use-after-free errors in graph decoders.
- FalkorDB version 4.18.1 addresses the issue for affected installations.
FalkorDB has released version 4.18.1 to address a critical security vulnerability that allows remote attackers to execute arbitrary code or cause denial of service conditions. The flaw, tracked as CVE-2026-5759, resides in the RDB graph decoders and affects all versions of the graph database engine prior to 4.18.1.
At a glance
- CVE
- CVE-2026-5759
- Product
- FalkorDB
- CVSS
- 9.3 Critical
- Weakness
- use-after-free
- Exploited
- No known exploitation
The vulnerability stems from improper memory handling within the `RdbLoadDeletedNodes` function, located in the source files `src/serializers/decoders/*/decode_graph_entities.c`. According to the National Vulnerability Database (NVD), the issue is classified as Critical with a CVSS v3.1 score of 9.3. The technical weakness involves both CWE-415 (Double Free) and CWE-416 (Use After Free). An attacker can exploit this by supplying a crafted RDB stream that triggers a buffer length mismatch. Specifically, the exploit requires the deleted-nodes buffer length to not be a multiple of `sizeof(NodeID)`.
Technical Context and Exploitation
The exploitation vector relies on the ability to issue Redis replication commands against the target instance. This condition is typically met if the FalkorDB instance is configured without a password or if the attacker has already obtained valid credentials. The root cause of the vulnerability lies in the length check mechanism used by the `RdbLoadDeletedNodes` function.
The function relies on an `ASSERT()` macro to validate buffer lengths. In release builds of FalkorDB, this assertion is compiled out, meaning the check does not perform any validation. Consequently, the function proceeds to free the buffer, read from it, and then free it a second time. This sequence results in a double free condition, which can be leveraged by an attacker to corrupt memory structures. The outcome of such an attack is either a denial of service, crashing the `redis-server` process, or the execution of arbitrary code with the privileges of the service account.
Affected Systems and Scope
Only FalkorDB installations running versions prior to 4.18.1 are affected by CVE-2026-5759. The vulnerability is specific to the graph decoding components of the database. Organizations that have already upgraded to version 4.18.1 are not susceptible to this specific exploit. The risk is highest for instances exposed to untrusted networks or those lacking authentication mechanisms, as the attacker must be able to send replication commands to trigger the payload.
What should you do?
Administrators should immediately verify their current FalkorDB version. If the installation is older than 4.18.1, they should upgrade to the patched version as soon as possible. Until an update is applied, restrict network access to the Redis replication port and ensure that strong authentication is enabled to prevent unauthorized command execution. Monitor server logs for unusual replication traffic or process crashes that may indicate an exploitation attempt.
What to do and how to stay safe: FalkorDB
- Inventory all FalkorDB instances and identify those running versions before 4.18.1.
- Apply the update to version 4.18.1 or later to resolve the double free vulnerability.
- Enforce authentication on all Redis replication endpoints to limit unauthorized access.
- Review firewall rules to ensure replication ports are not exposed to untrusted networks.
Step-by-step guide: Risk Based Vulnerability Management: Prioritize Fixes by Actual Threat
General security guidance from the Threat Times newsroom. It is not confirmed advice from the organisations named in this story.
Frequently asked questions
What is the CVSS score for CVE-2026-5759?
The vulnerability has a CVSS score of 9.3, which is rated as Critical.
Which versions of FalkorDB are affected by this vulnerability?
All versions of FalkorDB before 4.18.1 are affected by this issue.
How can an attacker exploit CVE-2026-5759?
An attacker can exploit the flaw by sending a crafted RDB stream via Redis replication commands to an instance with no password or valid credentials.


