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-2024-31227

CVE-2024-31227: Redis Database DOS Vulnerability

CVE-2024-31227 is a denial of service flaw in Redis database where authenticated users with sufficient privileges can trigger server panic via malformed ACL selectors. This article covers technical details, affected versions, impact, and mitigation strategies.

Updated: January 22, 2026

CVE-2024-31227 Overview

CVE-2024-31227 is an Improper Input Validation vulnerability affecting Redis, the popular open source, in-memory database that persists on disk. An authenticated user with sufficient privileges may create a malformed ACL (Access Control List) selector which, when accessed, triggers a server panic and subsequent denial of service condition. This vulnerability affects Redis 7 prior to versions 7.2.6 and 7.4.1.

Critical Impact

Authenticated attackers with ACL management privileges can crash Redis servers, causing service outages and potential data availability issues for applications relying on Redis as a critical data store.

Affected Products

  • Redis versions 7.0.0 through 7.2.5
  • Redis version 7.4.0
  • All Redis 7.x deployments with ACL functionality enabled

Discovery Timeline

  • 2024-10-07 - CVE-2024-31227 published to NVD
  • 2025-08-26 - Last updated in NVD database

Technical Details for CVE-2024-31227

Vulnerability Analysis

This vulnerability stems from improper input validation (CWE-20) in the ACL selector parsing functionality within Redis. The flaw allows an authenticated user with sufficient privileges to craft a malformed ACL selector that bypasses validation checks. When the malformed selector is subsequently accessed during ACL operations, it causes the Redis server to enter a panic state, immediately terminating the service.

The attack requires local access and high privileges, but the impact on availability is significant. Organizations using Redis for session management, caching, or as a primary data store face potential service disruptions if this vulnerability is exploited.

Root Cause

The root cause lies in the ACL SETUSER command's Read/Write key pattern selector parsing logic in src/acl.c. The vulnerability occurs when the code processes ACL selectors without properly validating that the required flags are set before processing the tilde (~) character that introduces key patterns. This allows malformed selectors to pass initial validation but cause a panic when the selector is later accessed or evaluated.

Attack Vector

The attack requires an authenticated attacker with ACL management privileges (typically administrative users) to execute the ACL SETUSER command with a specially crafted selector pattern. The malformed selector must contain a tilde character (~) in a position where no read or write permission flags have been set, which creates an invalid internal state. When this malformed ACL rule is later processed during authentication or authorization checks, the server panics.

c
// Patch from src/acl.c - Fix ACL SETUSER Read/Write key pattern selector
                     flags |= ACL_READ_PERMISSION;
                 } else if (toupper(op[offset]) == 'W' && !(flags & ACL_WRITE_PERMISSION)) {
                     flags |= ACL_WRITE_PERMISSION;
-                } else if (op[offset] == '~') {
+                } else if (op[offset] == '~' && flags) {
                     offset++;
                     break;
                 } else {

Source: GitHub Redis Commit

The patch adds a validation check ensuring that flags is non-zero (indicating read or write permissions have been set) before allowing the tilde character to be processed, preventing the creation of malformed ACL selectors.

Detection Methods for CVE-2024-31227

Indicators of Compromise

  • Unexpected Redis server crashes or restarts without apparent cause
  • Redis log entries showing server panic states related to ACL operations
  • Anomalous ACL SETUSER commands with unusual selector patterns in Redis command logs
  • Service availability issues correlating with ACL configuration changes

Detection Strategies

  • Monitor Redis logs for panic messages and unexpected terminations
  • Audit ACL SETUSER commands for malformed key pattern selectors, particularly those with tilde characters in unusual positions
  • Implement alerting on Redis process crashes or automatic restarts
  • Review authentication and authorization activity logs for suspicious privilege escalation attempts

Monitoring Recommendations

  • Configure Redis to log all ACL-related commands for forensic analysis
  • Deploy application-level monitoring to detect Redis connection failures indicative of server crashes
  • Establish baseline metrics for Redis uptime and alert on deviations
  • Monitor for repeated connection retry patterns from applications that may indicate Redis instability

How to Mitigate CVE-2024-31227

Immediate Actions Required

  • Upgrade Redis to version 7.2.6 or later for the 7.2.x branch
  • Upgrade Redis to version 7.4.1 or later for the 7.4.x branch
  • Audit current users with ACL management privileges and restrict access to trusted administrators only
  • Review recent ACL configuration changes for potentially malformed selectors

Patch Information

Redis has released security patches addressing this vulnerability. The fix is available in Redis versions 7.2.6 and 7.4.1. Users are strongly advised to upgrade to these versions or later. The patch modifies the ACL selector parsing logic in src/acl.c to validate that permission flags are properly set before processing key pattern specifications.

  • GitHub Redis Commit b351d5a3
  • GitHub Security Advisory GHSA-38p4-26x2-vqhh

Workarounds

  • There are no known workarounds for this vulnerability according to the vendor advisory
  • Restrict ACL management privileges to only essential administrative users
  • Implement network segmentation to limit access to Redis instances
  • Consider deploying Redis behind authentication proxies with additional access controls
bash
# Check current Redis version
redis-server --version

# Upgrade Redis on Debian/Ubuntu systems
sudo apt update && sudo apt install redis-server

# Verify upgraded version is 7.2.6+ or 7.4.1+
redis-cli INFO server | grep redis_version

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 Score4.4

  • EPSS Probability0.21%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-20
  • Technical References
  • GitHub Security Advisory GHSA-38p4-26x2-vqhh
  • Vendor Resources
  • GitHub Redis Commit
  • 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
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