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-2021-32675

CVE-2021-32675: Redis Database DOS Vulnerability

CVE-2021-32675 is a denial of service vulnerability in Redis that allows attackers to exhaust server memory through malicious RESP requests. This article covers the technical details, affected versions, and mitigation.

Published: February 25, 2026

CVE-2021-32675 Overview

CVE-2021-32675 is a resource exhaustion vulnerability in Redis, the popular open source in-memory database. When parsing incoming Redis Standard Protocol (RESP) requests, Redis allocates memory based on user-specified values that determine the number of elements in multi-bulk headers and the size of each element in bulk headers. An attacker can deliver specially crafted requests over multiple connections to force the server to allocate significant amounts of memory, leading to denial of service conditions. Critically, because the same parsing mechanism handles authentication requests, this vulnerability can be exploited by unauthenticated users, significantly increasing the attack surface.

Critical Impact

Unauthenticated attackers can exhaust server memory through crafted RESP requests, causing denial of service on Redis instances exposed to untrusted networks.

Affected Products

  • Redis versions prior to 6.2.6
  • Redis versions prior to 6.0.16
  • Redis versions prior to 5.0.14
  • Fedora 33, 34, and 35
  • Debian Linux 10.0 and 11.0
  • NetApp Management Services for Element Software and NetApp HCI
  • Oracle Communications Operations Monitor 4.3, 4.4, and 5.0

Discovery Timeline

  • 2021-10-04 - CVE-2021-32675 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2021-32675

Vulnerability Analysis

This vulnerability stems from improper resource allocation controls within Redis's RESP request parsing mechanism. The Redis protocol allows clients to specify the number and size of data elements in their requests through multi-bulk and bulk headers. The server trusts these user-supplied values and allocates memory accordingly without sufficient validation or limits. An attacker can exploit this by sending requests with extremely large element counts or sizes across multiple connections, causing the server to consume all available memory.

The vulnerability is classified under CWE-770 (Allocation of Resources Without Limits or Throttling), which accurately describes the root cause: Redis fails to impose adequate restrictions on memory allocation during request parsing.

Root Cause

The root cause is the absence of proper memory allocation limits when processing RESP protocol headers. Redis directly uses client-specified values from multi-bulk headers (number of elements) and bulk headers (element sizes) to determine memory allocation, without implementing safeguards against excessive or malicious values. The same vulnerable parsing code path is used for both authenticated and unauthenticated requests, including the initial authentication handshake.

Attack Vector

The attack is network-based and requires no authentication or user interaction. An attacker can:

  1. Establish multiple connections to an exposed Redis instance
  2. Send specially crafted RESP requests with inflated element counts or sizes in the headers
  3. Force Redis to allocate large amounts of memory for each connection
  4. Repeat across multiple connections to exhaust server memory
  5. Cause denial of service when the system runs out of available memory

The attack can be performed without authentication because the vulnerable parsing code processes requests before authentication is validated.

c
// Security patch from src/networking.c
// Source: https://github.com/redis/redis/commit/5674b0057ff2903d43eaff802017eddf37c360f8

    raxInsert(server.clients_index,(unsigned char*)&id,sizeof(id),c,NULL);
 }
 
+int authRequired(client *c) {
+    /* Check if the user is authenticated. This check is skipped in case
+     * the default user is flagged as "nopass" and is active. */
+    int auth_required = (!(DefaultUser->flags & USER_FLAG_NOPASS) ||
+                          (DefaultUser->flags & USER_FLAG_DISABLED)) &&
+                        !c->authenticated;
+    return auth_required;
+}
+
 client *createClient(connection *conn) {
     client *c = zmalloc(sizeof(client));

The patch introduces the authRequired() function to centralize authentication checking. This enables the server to enforce memory limits differently for authenticated versus unauthenticated clients, preventing unauthenticated users from consuming excessive resources.

c
// Security patch from src/server.c
// Source: https://github.com/redis/redis/commit/5674b0057ff2903d43eaff802017eddf37c360f8

    int is_denyloading_command = !(c->cmd->flags & CMD_LOADING) ||
                                 (c->cmd->proc == execCommand && (c->mstate.cmd_inv_flags & CMD_LOADING));
 
-    /* Check if the user is authenticated. This check is skipped in case
-     * the default user is flagged as "nopass" and is active. */
-    int auth_required = (!(DefaultUser->flags & USER_FLAG_NOPASS) ||
-                          (DefaultUser->flags & USER_FLAG_DISABLED)) &&
-                        !c->authenticated;
-    if (auth_required) {
-        /* AUTH and HELLO and no auth modules are valid even in
+    if (authRequired(c)) {
+        /* AUTH and HELLO and no auth commands are valid even in
          * non-authenticated state. */
         if (!(c->cmd->flags & CMD_NO_AUTH)) {
             rejectCommand(c,shared.noautherr);

Detection Methods for CVE-2021-32675

Indicators of Compromise

  • Unusual memory consumption spikes on Redis server processes
  • Multiple simultaneous connections from single or related IP addresses
  • Redis server becoming unresponsive or crashing due to out-of-memory conditions
  • Abnormally large RESP requests in network traffic or Redis logs

Detection Strategies

  • Monitor Redis memory usage metrics for sudden unexplained increases using INFO memory command
  • Implement network intrusion detection rules to identify RESP requests with unusually large header values
  • Set up alerting on Redis connection counts exceeding normal operational baselines
  • Use Redis slowlog and client list commands to identify suspicious connection patterns

Monitoring Recommendations

  • Deploy continuous memory usage monitoring with alerting thresholds for Redis instances
  • Configure network traffic analysis to inspect RESP protocol communications for anomalies
  • Implement connection rate limiting and monitoring at the network and application layers
  • Review Redis logs regularly for signs of resource exhaustion attacks

How to Mitigate CVE-2021-32675

Immediate Actions Required

  • Upgrade Redis to patched versions: 6.2.6, 6.0.16, or 5.0.14 or later
  • Block unauthenticated access to Redis using firewalls, iptables, or security groups
  • Enable TLS and require client certificate authentication if patching is delayed
  • Restrict network access to Redis to only trusted internal networks

Patch Information

The vulnerability is fixed in Redis versions 6.2.6, 6.0.16, and 5.0.14. The official patch is available through the GitHub Redis Commit. Additional vendor-specific patches are available from Debian Security Advisory DSA-5001, NetApp Security Advisory, and Oracle Security Alert April 2022.

For complete technical details, refer to the GitHub Security Advisory.

Workarounds

  • Use network access control tools (firewalls, iptables, security groups) to prevent unauthenticated users from connecting
  • Enable TLS on Redis and require users to authenticate using client-side certificates
  • Deploy Redis behind a reverse proxy that can enforce authentication before connections reach the server
  • Implement memory limits at the operating system level using cgroups or similar mechanisms
bash
# Configuration example - Network access control with iptables
# Allow Redis access only from trusted network (example: 10.0.0.0/24)
iptables -A INPUT -p tcp --dport 6379 -s 10.0.0.0/24 -j ACCEPT
iptables -A INPUT -p tcp --dport 6379 -j DROP

# Enable Redis authentication in redis.conf
# requirepass your_strong_password_here

# Enable TLS in redis.conf (Redis 6.0+)
# tls-port 6379
# port 0
# tls-cert-file /path/to/redis.crt
# tls-key-file /path/to/redis.key
# tls-ca-cert-file /path/to/ca.crt
# tls-auth-clients yes

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechRedis

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability2.86%

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

  • Apache Geode Mailing List Thread

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Gentoo GLSA 202209-17

  • NetApp Security Advisory

  • Debian Security Advisory DSA-5001
  • Vendor Resources
  • GitHub Redis Commit Update

  • Oracle Security Alert April 2022
  • 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