Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-52935

CVE-2025-52935: DragonflyDB Integer Overflow Vulnerability

CVE-2025-52935 is an integer overflow or wraparound vulnerability in DragonflyDB dragonfly affecting the lua_struct module. This flaw impacts versions 1.30.1, 1.30.0, and 1.28.18. Explore technical details and mitigations.

Published: April 8, 2026

CVE-2025-52935 Overview

CVE-2025-52935 is an Integer Overflow or Wraparound vulnerability affecting DragonflyDB's Dragonfly in-memory data store. The vulnerability exists within the Lua struct modules, specifically in the lua_struct.C program file, which handles data structure serialization and deserialization operations. When exploited, this integer overflow condition can lead to memory corruption, potentially enabling attackers to compromise the confidentiality, integrity, and availability of both the affected system and connected systems.

Critical Impact

This integer overflow vulnerability in DragonflyDB's Lua struct module can be exploited remotely with low privileges, potentially allowing attackers to corrupt memory and compromise data integrity across database operations.

Affected Products

  • DragonflyDB Dragonfly version 1.30.1
  • DragonflyDB Dragonfly version 1.30.0
  • DragonflyDB Dragonfly version 1.28.18

Discovery Timeline

  • 2025-06-23 - CVE-2025-52935 published to NVD
  • 2025-06-23 - Last updated in NVD database

Technical Details for CVE-2025-52935

Vulnerability Analysis

The vulnerability resides in DragonflyDB's Lua struct module implementation within lua_struct.C. This module provides functionality for packing and unpacking binary data structures from Lua scripts, commonly used for serialization operations within the Redis-compatible database engine.

Integer overflow vulnerabilities in struct handling code typically occur when size calculations for data structures exceed the maximum value representable by the integer type, causing the value to wrap around to a much smaller number. In the context of lua_struct.C, this wraparound can result in undersized buffer allocations followed by out-of-bounds memory writes when the actual data is processed.

The network-accessible nature of this vulnerability combined with low privilege requirements makes it particularly dangerous for production DragonflyDB deployments, as authenticated users with minimal access could potentially trigger the overflow condition through crafted Lua script operations.

Root Cause

The root cause is classified as CWE-190 (Integer Overflow or Wraparound). The vulnerable code in lua_struct.C performs arithmetic operations on integer values related to structure size calculations without adequate bounds checking. When specially crafted input causes these calculations to overflow, the resulting value wraps around, leading to memory safety violations.

This type of vulnerability is common in C/C++ code handling variable-length data structures, where size parameters derived from user input are used in memory allocation and buffer operations without proper validation against integer overflow conditions.

Attack Vector

The vulnerability is exploitable over the network with low attack complexity. An attacker with low-level privileges (such as an authenticated database user) can craft malicious Lua struct operations that trigger the integer overflow condition.

The attack flow involves sending specially crafted Lua struct pack/unpack operations to the DragonflyDB instance that cause integer arithmetic to overflow during size calculations. When the overflow occurs, subsequent memory operations use the wrapped-around (smaller) value, leading to heap corruption or buffer overflows that can potentially be leveraged for further exploitation.

For technical details on the vulnerability and the specific fix implemented, refer to the GitHub Pull Request #4996 and the associated commit.

Detection Methods for CVE-2025-52935

Indicators of Compromise

  • Unexpected DragonflyDB process crashes or segmentation faults during Lua script execution
  • Abnormal memory consumption patterns in DragonflyDB instances
  • Log entries indicating memory corruption or heap errors in the Dragonfly process
  • Unusual Lua struct operations with extremely large size parameters in database logs

Detection Strategies

  • Monitor DragonflyDB instances for unexpected process terminations or restarts that may indicate exploitation attempts
  • Implement application-layer monitoring to detect anomalous Lua script execution patterns
  • Deploy memory corruption detection tools (such as AddressSanitizer in non-production environments) to identify overflow conditions
  • Review database access logs for suspicious struct pack/unpack operations with unusually large parameters

Monitoring Recommendations

  • Enable comprehensive logging for Lua script operations in DragonflyDB deployments
  • Configure alerting for DragonflyDB process crashes or unexpected restarts
  • Monitor system memory metrics for anomalous allocation patterns associated with database operations
  • Implement network monitoring to detect potential exploitation traffic targeting DragonflyDB ports

How to Mitigate CVE-2025-52935

Immediate Actions Required

  • Upgrade affected DragonflyDB installations to a patched version immediately
  • Restrict network access to DragonflyDB instances to only trusted clients and networks
  • Review and audit Lua scripts executed against affected database instances
  • Consider temporarily disabling Lua scripting capabilities if not required for operations

Patch Information

DragonflyDB has addressed this vulnerability through commit 473e002c848eb312f23d84114eb4951a7c4af5a1. The fix is documented in Pull Request #4996, which implements proper bounds checking for integer arithmetic operations in the Lua struct module.

Organizations should update to a patched version of DragonflyDB that incorporates this fix. Verify your installed version is not 1.30.1, 1.30.0, or 1.28.18, as these versions are confirmed vulnerable.

Workarounds

  • Restrict network access to DragonflyDB instances using firewall rules to limit exposure to trusted networks only
  • Disable or restrict Lua scripting functionality if not required for application operations
  • Implement strict input validation at the application layer before data reaches DragonflyDB
  • Deploy DragonflyDB behind a reverse proxy with request filtering capabilities to limit potentially malicious struct operations
bash
# Example: Restrict DragonflyDB network access using iptables
# Allow connections only from trusted application servers
iptables -A INPUT -p tcp --dport 6379 -s 10.0.1.0/24 -j ACCEPT
iptables -A INPUT -p tcp --dport 6379 -j DROP

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeOther

  • Vendor/TechDragonflydb

  • SeverityCRITICAL

  • CVSS Score9.4

  • EPSS Probability0.10%

  • Known ExploitedNo
  • CVSS Vector
  • 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:N/AU:Y/R:U/V:C/RE:M/U:Red
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-190
  • Technical References
  • GitHub Commit Update

  • GitHub Pull Request Discussion
  • Latest CVEs
  • CVE-2025-49454: TinySalt Path Traversal Vulnerability

  • CVE-2025-48261: MultiVendorX Information Disclosure Flaw

  • CVE-2025-32119: CardGate WooCommerce SQL Injection Flaw

  • CVE-2025-26879: s2Member Plugin Reflected XSS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English