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-2023-22458

CVE-2023-22458: Redis Database DoS Vulnerability

CVE-2023-22458 is a denial-of-service vulnerability in Redis database that allows authenticated users to crash the server using crafted commands. This article covers the technical details, affected versions, and mitigation.

Published: February 4, 2026

CVE-2023-22458 Overview

CVE-2023-22458 is an Integer Overflow vulnerability affecting Redis, the popular in-memory database that persists on disk. Authenticated users can exploit this vulnerability by issuing HRANDFIELD or ZRANDMEMBER commands with specially crafted arguments, triggering an assertion failure that crashes the Redis server, resulting in a denial-of-service condition.

Critical Impact

Authenticated attackers can crash Redis servers by exploiting integer overflow conditions in the HRANDFIELD and ZRANDMEMBER commands, causing service disruption for all connected applications.

Affected Products

  • Redis versions 6.2 up to but not including 6.2.9
  • Redis versions 7.0 up to but not including 7.0.8

Discovery Timeline

  • 2023-01-20 - CVE-2023-22458 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2023-22458

Vulnerability Analysis

This vulnerability is classified as CWE-190 (Integer Overflow or Wraparound). The flaw exists in the handling of the count argument for the HRANDFIELD and ZRANDMEMBER Redis commands when used with the WITHVALUES or WITHSCORES options respectively. When an authenticated user provides an extremely large count value that exceeds the safe integer range boundaries, the internal multiplication operations can cause integer overflow conditions that lead to assertion failures within the Redis codebase.

The vulnerability requires local access and low privileges (authentication to Redis), with no user interaction needed. The impact is limited to availability—there is no compromise of confidentiality or integrity. Despite the medium severity classification, this vulnerability has a notably high EPSS probability of 67.77% (98.55th percentile), indicating significant exploitation likelihood in the wild.

Root Cause

The root cause is insufficient validation of the count parameter before internal arithmetic operations. When the WITHVALUES flag is present for HRANDFIELD or the WITHSCORES flag is present for ZRANDMEMBER, the count value undergoes multiplication operations without proper bounds checking. Values near LONG_MAX or LONG_MIN can overflow when multiplied, causing the assertion to fail and crashing the Redis process.

Attack Vector

An attacker with valid Redis authentication credentials can craft malicious commands targeting the vulnerable functions. The attack requires sending HRANDFIELD or ZRANDMEMBER commands with extreme count values combined with the optional flags (WITHVALUES or WITHSCORES). Since the vulnerability is local (requires authenticated access), the attack surface is limited to users who already have Redis credentials, but in shared hosting or multi-tenant environments, this could allow one authenticated user to disrupt service for all other users.

c
// Security patch in src/t_hash.c - Fix range issues in ZRANDMEMBER and HRANDFIELD
// Source: https://github.com/redis/redis/commit/16f408b1a0121cacd44cbf8aee275d69dc627f02

         if (c->argc > 4 || (c->argc == 4 && strcasecmp(c->argv[3]->ptr,"withvalues"))) {
             addReplyErrorObject(c,shared.syntaxerr);
             return;
-        } else if (c->argc == 4)
+        } else if (c->argc == 4) {
             withvalues = 1;
+            if (l < LONG_MIN/2 || l > LONG_MAX/2) {
+                addReplyError(c,"value is out of range");
+                return;
+            }
+        }
         hrandfieldWithCountCommand(c, l, withvalues);
         return;
     }
c
// Security patch in src/t_zset.c - Fix range issues in ZRANDMEMBER and HRANDFIELD
// Source: https://github.com/redis/redis/commit/16f408b1a0121cacd44cbf8aee275d69dc627f02

         if (c->argc > 4 || (c->argc == 4 && strcasecmp(c->argv[3]->ptr,"withscores"))) {
             addReplyErrorObject(c,shared.syntaxerr);
             return;
-        } else if (c->argc == 4)
+        } else if (c->argc == 4) {
             withscores = 1;
+            if (l < LONG_MIN/2 || l > LONG_MAX/2) {
+                addReplyError(c,"value is out of range");
+                return;
+            }
+        }
         zrandmemberWithCountCommand(c, l, withscores);
         return;
     }

Detection Methods for CVE-2023-22458

Indicators of Compromise

  • Unexpected Redis server crashes or restarts with assertion failure messages in logs
  • Redis log entries showing HRANDFIELD or ZRANDMEMBER commands with unusually large count parameters
  • Repeated connection attempts from specific clients followed by server crashes
  • Assertion failure stack traces in Redis crash logs mentioning t_hash.c or t_zset.c

Detection Strategies

  • Monitor Redis logs for assertion failures and unexpected process terminations
  • Implement command logging via Redis MONITOR or slowlog to track suspicious HRANDFIELD/ZRANDMEMBER usage
  • Set up process monitoring to detect Redis crashes and automatic restarts
  • Deploy network-level monitoring to identify anomalous Redis command patterns from authenticated users

Monitoring Recommendations

  • Configure alerting on Redis process restarts or crashes using your monitoring solution
  • Enable Redis slowlog with appropriate thresholds to capture command execution patterns
  • Implement log aggregation and analysis for Redis assertion failure patterns
  • Monitor Redis availability metrics to quickly detect denial-of-service conditions

How to Mitigate CVE-2023-22458

Immediate Actions Required

  • Upgrade Redis to version 6.2.9 or later for the 6.2.x branch
  • Upgrade Redis to version 7.0.8 or later for the 7.0.x branch
  • Review Redis authentication credentials and restrict access to trusted users only
  • Implement network segmentation to limit who can connect to Redis instances

Patch Information

Redis has released patched versions that address this vulnerability. The fix adds boundary validation for the count parameter when WITHVALUES or WITHSCORES flags are present, ensuring values are within the safe range of LONG_MIN/2 to LONG_MAX/2 before proceeding with command execution.

  • Redis 6.2.9 Release - Contains the security fix for 6.2.x branch
  • Redis 7.0.8 Release - Contains the security fix for 7.0.x branch
  • Security Patch Commit - Direct commit implementing the fix
  • GitHub Security Advisory GHSA-r8w2-2m53-gprj - Official security advisory with full details

Workarounds

  • There are no known workarounds for this vulnerability according to the vendor advisory
  • Upgrading to the patched versions is the only remediation method available
  • As a defense-in-depth measure, restrict Redis network access and enforce strong authentication
bash
# Verify your Redis version to determine if you're vulnerable
redis-cli INFO server | grep redis_version

# After upgrading, verify the patched version is running
# For 6.2.x branch: should show 6.2.9 or higher
# For 7.0.x branch: should show 7.0.8 or higher

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 Score5.5

  • EPSS Probability67.77%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/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.2.9

  • GitHub Release 7.0.8

  • GitHub Security Advisory GHSA-r8w2-2m53-gprj
  • Vendor Resources
  • GitHub Commit Update
  • Related CVEs
  • CVE-2025-46819: Redis Database DoS Vulnerability

  • CVE-2025-21605: Redis Database DoS Vulnerability

  • CVE-2024-31228: Redis Database DOS Vulnerability

  • CVE-2025-48367: 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