Skip to main content

CVE-2025-52935

| EUVDEUVD-2025-28478 CRITICAL
Integer Overflow or Wraparound (CWE-190)
2025-06-23 cve_disclosure@tech.gov.sg
9.4
CVSS 4.0 · NVD
View

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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
No patch listed yet 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Dragonfly 1.30.1
Dragonfly 1.30.0
Dragonfly 1.28.18

Affected Packages

euvd dragonfly no fix

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

NVD PRIMARY 9.4 CRITICAL
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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
High
Subsequent system: Integrity
High
Subsequent system: Availability
High

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

Why It Matters

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.

Business Impact: Severe
Compensating Controls

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

EPSS Score
0.1%
Top 75% exploitable
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.1%
Patch available No
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
Very High

Priority Score

47
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +47
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy