Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2021 - Vulnerable and Outdated Components
ASVS 5.0
V15 - Secure Coding and Architecture Integer overflow checks
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Impact | This vulnerability presents a genuine critical risk despite requiring authentication. CVSS v4.0 vector shows AV:N (network-exploitable), AC:L (low complexity), PR:L (low privilege requirement—authenticated users), with complete impact across VC:H, VI:H, VA:H (confidentiality, integrity, availability). The AU:Y (auto-updateable) flag and RE:M (updates readily available) suggest patches exist. The threat model is most dangerous in multi-tenant DragonflyDB deployments where untrusted users have script execution rights, or where authentication is weak/shared. The attack is NOT automatable without crafting specific Lua payloads, reducing EPSS probability compared to unauthenticated RCE vulns. However, the combination of memory corruption (integer overflow) + arbitrary memory access creates a realistic path to information disclosure (reading Redis data) and potential code execution if combined with other mitigations (ASLR bypass, heap spray). Compared to typical high-CVSS low-real-risk issues, this warrants priority patching within 2-4 weeks for production environments. KEV status not indicated as publicly exploited. |
| Exploit ScenarioDerived | An authenticated user (or an attacker who has compromised valid credentials) connects to a DragonflyDB instance and executes a malicious Lua script. The script uses the struct module to pack/unpack binary data with carefully crafted integer size parameters. A size calculation in lua_struct.C undergoes integer wraparound—for example, a request for 2^31 + 1024 bytes wraps to 1024 bytes on a 32-bit size_t system. The struct code allocates only 1024 bytes but then writes 2^31 + 1024 bytes into the buffer based on user-controlled struct layout, corrupting adjacent heap memory. The attacker can: (1) leak sensitive data from Redis (keys, values, configuration) by reading corrupted memory regions, (2) crash the service by triggering memory protection violations (DoS), or (3) in advanced scenarios, corrupt internal DragonflyDB control structures to achieve code execution. No public POC has been disclosed as of the CVE publication, but the vulnerability is straightforward to trigger once understood. Attack complexity is low for authenticated users familiar with Lua and struct binary formats. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 15, 2026
CVE-2025-52935 is an integer overflow/wraparound vulnerability in DragonflyDB's Lua struct module (lua_struct.C) that allows authenticated attackers with low privileges to trigger memory corruption, information disclosure, and potential code execution. The vulnerability affects DragonflyDB versions 1.30.1, 1.30.0, and 1.28.18, and carries a critical CVSS v4.0 score of 9.4 with high impact across confidentiality, integrity, and availability. No public exploit code or active exploitation has been confirmed at this time, but the authenticated attack vector and high severity warrant immediate patching.
RemediationAI
patch: Upgrade to a patched version of DragonflyDB released after CVE-2025-52935 disclosure. Contact DragonflyDB project for specific patch version numbers (likely 1.30.2+ or 1.28.19+). (https://github.com/dragonflydb/dragonfly) workaround_short_term: Restrict Lua script execution permissions: disable SCRIPT LOAD, EVAL, and EVALSHA commands via ACL rules if not required. Limit script execution to trusted internal services only. (DragonflyDB) workaround_short_term: Disable or sandbox Lua struct module functionality if available. Monitor for unusual Lua struct operations in audit logs. (DragonflyDB) monitoring: Implement network segmentation to restrict access to DragonflyDB instances to trusted hosts. Monitor authentication logs for unauthorized script execution attempts. (Standard)
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
DragonflyDB is a high-performance, drop-in Redis replacement written in C++. The vulnerability resides in the Lua struct module (src/redis/lua/struct), which handles serialization/deserialization of binary data structures within Lua scripts executed by the database engine. CWE-190 (Integer Overflow or Wraparound) occurs when arithmetic operations on integer values used for buffer size calculations, array indexing, or memory allocation lack proper bounds checking. In this context, an attacker can craft malicious Lua scripts that trigger integer wraparound during struct packing/unpacking operations, causing the calculated size to wrap around to a small value. This allows writing beyond allocated buffer boundaries or reading from unintended memory regions. The Lua execution context within DragonflyDB provides an attack surface for unauthenticated script injection if default security is misconfigured, or for authenticated users with SCRIPT LOAD/EVAL permissions.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/S:N/AU:Y/R:U/V:C/RE:M/U:Red
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
DescriptionCVE.org
Integer Overflow or Wraparound vulnerability in dragonflydb dragonfly (src/redis/lua/struct modules). This vulnerability is associated with program files lua_struct.C.
This issue affects dragonfly: 1.30.1, 1.30.0, 1.28.18.
Executive ViewAI
A critical integer overflow vulnerability in Dragonfly database affects versions 1.28.18, 1.30.0, and 1.30.1, potentially allowing remote attackers to execute arbitrary code or cause denial of service. Organizations running these versions face immediate risk of data breach, service disruption, and system compromise, particularly if Dragonfly instances are internet-facing or accessible to untrusted networks.
Disable Lua scripting and struct module functionality if operationally feasible; implement strict network segmentation limiting Dragonfly access to authenticated internal applications only; deploy WAF rules to block suspicious Lua script payloads; enforce strict input validation on all data sent to Dragonfly; increase security monitoring and logging for Dragonfly instances; consider isolating affected instances until patch availability is confirmed.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Integer overflow occurs when an arithmetic operation produces a result that exceeds the maximum value a given integer type can store.
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
EUVD-2025-28478
NVD
CVE.org
EPSS
GitHub
Exploit-DB