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-32627

CVE-2021-32627: Redis Integer Overflow RCE Vulnerability

CVE-2021-32627 is an integer overflow vulnerability in Redis that enables remote code execution through heap corruption. Attackers exploit oversized configuration parameters to compromise systems. This analysis covers technical details, affected versions, impact assessment, and mitigation strategies.

Published: February 25, 2026

CVE-2021-32627 Overview

CVE-2021-32627 is an integer overflow vulnerability in Redis, the popular open-source in-memory database. This vulnerability allows an attacker to exploit an integer overflow bug that can corrupt the heap and potentially lead to remote code execution. The attack requires manipulating the proto-max-bulk-len and client-query-buffer-limit configuration parameters to very large values and then constructing specially crafted large stream elements.

Critical Impact

Successful exploitation of this integer overflow vulnerability can lead to heap corruption and potentially enable remote code execution on affected Redis instances.

Affected Products

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

Discovery Timeline

  • October 4, 2021 - CVE-2021-32627 published to NVD
  • November 21, 2024 - Last updated in NVD database

Technical Details for CVE-2021-32627

Vulnerability Analysis

This vulnerability stems from an integer overflow condition (CWE-190) in Redis's handling of stream elements. When an attacker modifies the proto-max-bulk-len and client-query-buffer-limit configuration parameters to extremely large values, the system's integer handling logic fails to properly account for size calculations. This creates a scenario where specially crafted large stream elements can trigger heap corruption through arithmetic overflow in size computations.

The vulnerability affects the core data structure handling in Redis, specifically in the ziplist and listpack implementations. When processing oversized stream elements, the integer overflow causes memory allocation routines to allocate smaller buffers than required, leading to heap-based buffer overflows when data is written to these undersized buffers.

Root Cause

The root cause is an integer overflow in Redis's size calculation logic for stream elements. When computing the encoded length of string data in the listpack implementation, the code failed to cast size values to uint64_t before performing arithmetic operations. This resulted in truncation and overflow when handling very large values, causing subsequent memory corruption.

Attack Vector

The attack requires network access to a Redis instance and low privileges to execute. An attacker must:

  1. Have the ability to modify Redis configuration parameters (proto-max-bulk-len and client-query-buffer-limit)
  2. Set these parameters to very large values to enable oversized bulk operations
  3. Construct and send specially crafted large stream elements that trigger the integer overflow
  4. Exploit the resulting heap corruption to potentially achieve remote code execution

The attack complexity is high due to the requirement of specific configuration changes and crafted payloads, but successful exploitation can lead to complete system compromise.

c
// Vulnerable code - integer overflow in size calculation
// Source: https://github.com/redis/redis/commit/f6a40570fa63d5afdd596c78083d754081d80ae3
    } else {
        if (size < 64) *enclen = 1+size;
        else if (size < 4096) *enclen = 2+size;
-        else *enclen = 5+size;
+        else *enclen = 5+(uint64_t)size;
        return LP_ENCODING_STRING;
    }
}

The fix casts size to uint64_t before the addition operation to prevent integer overflow when size is very large.

Detection Methods for CVE-2021-32627

Indicators of Compromise

  • Unusual Redis configuration changes to proto-max-bulk-len or client-query-buffer-limit parameters with extremely large values
  • Redis server crashes or unexpected restarts indicating potential exploitation attempts
  • Abnormal memory usage patterns in Redis processes
  • Presence of oversized stream commands in Redis logs or network traffic

Detection Strategies

  • Monitor Redis configuration file changes and runtime CONFIG SET commands for suspicious parameter modifications
  • Implement network monitoring to detect unusually large Redis protocol messages
  • Deploy memory integrity monitoring for Redis server processes to detect heap corruption
  • Review Redis ACL configurations to ensure unprivileged users cannot execute CONFIG SET commands

Monitoring Recommendations

  • Configure alerting for Redis process crashes or abnormal terminations
  • Implement log analysis for CONFIG SET commands modifying proto-max-bulk-len or client-query-buffer-limit
  • Monitor Redis memory metrics for sudden spikes or unusual allocation patterns
  • Deploy runtime application self-protection (RASP) solutions capable of detecting heap corruption

How to Mitigate CVE-2021-32627

Immediate Actions Required

  • Upgrade Redis to patched versions: 6.2.6, 6.0.16, or 5.0.14 immediately
  • Restrict access to Redis instances using network segmentation and firewall rules
  • Implement Redis ACL to prevent unprivileged users from using the CONFIG SET command
  • Review and audit current Redis configuration for unusual parameter values

Patch Information

Redis has released security patches addressing this vulnerability. The fix is available in Redis versions 6.2.6, 6.0.16, and 5.0.14. The patch corrects the integer overflow by ensuring proper type casting in size calculations. For more details, see the GitHub Redis Commit and the GitHub Security Advisory GHSA-f434.

Additional security advisories have been published by downstream distributions including Debian Security Advisory DSA-5001, Fedora Package Announcements, and Oracle CPU April 2022 Alerts.

Workarounds

  • Use Redis ACL to restrict unprivileged users from executing the CONFIG SET command
  • Manually verify that proto-max-bulk-len is set to safe default values and cannot be modified by untrusted users
  • Implement network-level access controls to limit Redis exposure to trusted clients only
  • Consider deploying Redis in protected mode with authentication requirements enabled
bash
# Configuration example - Restrict CONFIG SET using Redis ACL
# Add to redis.conf or execute via redis-cli

# Create a restricted user that cannot use CONFIG SET
ACL SETUSER restricted_user on >strongpassword ~* +@all -CONFIG

# Verify ACL is properly configured
ACL LIST

# Ensure protected mode is enabled
CONFIG SET protected-mode yes

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechRedis

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.80%

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

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Gentoo GLSA 202209-17

  • NetApp Security Advisory ntap-20211104-0003

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

  • Oracle CPU April 2022 Alerts
  • Related CVEs
  • CVE-2025-46817: Redis Lua Scripting RCE Vulnerability

  • CVE-2025-62507: Redis RCE Vulnerability via XACKDEL

  • CVE-2022-0543: Redis Lua Sandbox Escape RCE Vulnerability

  • CVE-2025-32023: Redis HyperLogLog RCE 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