The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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
    • 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-2023-25155

CVE-2023-25155: Redis Database DOS Vulnerability

CVE-2023-25155 is a denial-of-service flaw in Redis database where authenticated users can trigger integer overflow via crafted commands, causing server termination. This guide covers technical details, affected versions, and patches.

Published: February 4, 2026

CVE-2023-25155 Overview

CVE-2023-25155 is an integer overflow vulnerability affecting Redis, the popular in-memory database that persists on disk. Authenticated users can exploit this flaw by issuing specially crafted SRANDMEMBER, ZRANDMEMBER, and HRANDFIELD commands that trigger an integer overflow condition. This results in a runtime assertion failure and immediate termination of the Redis server process, causing a denial of service condition.

Critical Impact

Authenticated attackers can crash Redis server instances by exploiting integer overflow conditions in random element selection commands, causing service disruption.

Affected Products

  • Redis versions prior to 6.0.18
  • Redis versions prior to 6.2.11
  • Redis versions prior to 7.0.9

Discovery Timeline

  • 2023-03-02 - CVE-2023-25155 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2023-25155

Vulnerability Analysis

This vulnerability is classified as CWE-190 (Integer Overflow or Wraparound). The flaw exists in the handling of count parameters passed to Redis random element selection commands, specifically SRANDMEMBER, ZRANDMEMBER, and HRANDFIELD. When authenticated users provide specially crafted numeric values to these commands, the server fails to properly validate the input boundaries, allowing integer overflow conditions to occur.

The vulnerability is exploitable over the network and requires low attack complexity once an attacker has valid authentication credentials. While the flaw does not impact confidentiality or integrity, it provides a reliable mechanism for attackers to terminate Redis server processes, resulting in complete availability loss for dependent applications.

Root Cause

The root cause lies in insufficient input validation when processing the count parameter for random element selection commands. The original implementation used getLongFromObjectOrReply() which did not enforce proper boundary checks on the input values. Additionally, the boundary validation logic used LONG_MIN/2 as a lower bound, which could still result in integer overflow conditions when combined with certain operations.

Attack Vector

The attack requires authenticated access to a Redis instance. An attacker with valid credentials can send malformed commands with carefully selected numeric parameters that, when processed by the vulnerable functions, cause the count value to overflow. This triggers a runtime assertion within the Redis server, leading to immediate process termination and service disruption.

c
// Vulnerable code in src/t_hash.c (before patch)
// Source: https://github.com/redis/redis/commit/2a2a582e7cd99ba3b531336b8bd41df2b566e619
    listpackEntry ele;
 
    if (c->argc >= 3) {
-        if (getLongFromObjectOrReply(c,c->argv[2],&l,NULL) != C_OK) return;
+        if (getRangeLongFromObjectOrReply(c,c->argv[2],-LONG_MAX,LONG_MAX,&l,NULL) != C_OK) return;
         if (c->argc > 4 || (c->argc == 4 && strcasecmp(c->argv[3]->ptr,"withvalues"))) {
             addReplyErrorObject(c,shared.syntaxerr);
             return;
         } else if (c->argc == 4) {
             withvalues = 1;
-            if (l < LONG_MIN/2 || l > LONG_MAX/2) {
+            if (l < -LONG_MAX/2 || l > LONG_MAX/2) {
                 addReplyError(c,"value is out of range");
                 return;
             }

The fix replaces getLongFromObjectOrReply() with getRangeLongFromObjectOrReply() to enforce proper input bounds, and corrects the boundary check from LONG_MIN/2 to -LONG_MAX/2.

Detection Methods for CVE-2023-25155

Indicators of Compromise

  • Unexpected Redis server crashes or restarts without clear cause
  • Redis logs showing assertion failures in command processing
  • Unusual SRANDMEMBER, ZRANDMEMBER, or HRANDFIELD commands with extreme numeric values
  • Repeated authentication attempts followed by server termination

Detection Strategies

  • Monitor Redis server logs for assertion failure messages and unexpected terminations
  • Implement command auditing to track usage of SRANDMEMBER, ZRANDMEMBER, and HRANDFIELD commands
  • Configure alerting on Redis process crashes or abnormal restarts
  • Review authentication logs for suspicious access patterns preceding service disruptions

Monitoring Recommendations

  • Deploy application performance monitoring to detect Redis availability degradation
  • Enable Redis command logging in controlled environments to capture exploit attempts
  • Set up automated health checks that alert on Redis instance unavailability
  • Monitor system logs for signals of repeated process terminations on Redis ports

How to Mitigate CVE-2023-25155

Immediate Actions Required

  • Upgrade Redis to patched versions: 6.0.18, 6.2.11, or 7.0.9 or later
  • Review and restrict Redis authentication credentials to trusted clients only
  • Implement network segmentation to limit access to Redis instances
  • Enable Redis ACLs to restrict which users can execute random element commands

Patch Information

Redis has released patches addressing this vulnerability in the following versions:

  • Redis 6.0.18
  • Redis 6.2.11
  • Redis 7.0.9

The security fix is documented in the GitHub Security Advisory GHSA-x2r7-j9vw-3w83 and the commit 2a2a582.

Workarounds

  • Use Redis ACLs to disable or restrict access to SRANDMEMBER, ZRANDMEMBER, and HRANDFIELD commands for untrusted users
  • Implement application-level input validation before passing count parameters to Redis
  • Place Redis instances behind authentication proxies that can filter malicious commands
  • Deploy Redis behind a firewall and restrict network access to trusted clients only
bash
# Example Redis ACL configuration to restrict dangerous commands
# Add to redis.conf or use ACL SETUSER command

# Create a restricted user that cannot use RAND commands
ACL SETUSER restricted_user on >password ~* +@all -SRANDMEMBER -ZRANDMEMBER -HRANDFIELD

# Verify ACL configuration
redis-cli ACL LIST

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechRedis

  • SeverityMEDIUM

  • CVSS Score6.5

  • EPSS Probability2.91%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-190
  • Technical References
  • GitHub Release 6.0.18

  • GitHub Release 6.2.11

  • GitHub Release 7.0.9
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Security Advisory GHSA-x2r7-j9vw-3w83
  • Related CVEs
  • CVE-2025-21605: Redis Database DoS Vulnerability

  • CVE-2024-31228: Redis Database DOS Vulnerability

  • CVE-2025-48367: Redis Database DOS Vulnerability

  • CVE-2024-51741: Redis Database DOS 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