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

CVE-2021-32625: Redis Integer Overflow RCE Vulnerability

CVE-2021-32625 is an integer overflow remote code execution vulnerability in Redis 6.0 and newer versions. Attackers can exploit the STRALGO LCS command to corrupt heap memory. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: February 25, 2026

CVE-2021-32625 Overview

CVE-2021-32625 is an integer overflow vulnerability affecting Redis, the popular open source in-memory data structure store used as a database, cache, and message broker. This vulnerability exists in Redis version 6.0 and newer, where the STRALGO LCS command can be exploited to corrupt the heap and potentially achieve remote code execution.

This vulnerability represents an incomplete fix for CVE-2021-29477, demonstrating how complex integer overflow conditions can persist through initial patching attempts. Authenticated attackers with access to execute Redis commands can leverage this flaw to compromise the integrity and availability of the Redis server.

Critical Impact

Authenticated attackers can exploit the integer overflow in the STRALGO LCS command to corrupt heap memory, potentially leading to remote code execution on vulnerable Redis servers.

Affected Products

  • Redis Labs Redis versions 6.0.x prior to 6.0.14
  • Redis Labs Redis versions 6.2.x prior to 6.2.4
  • Fedora 33 and Fedora 34 (via bundled Redis packages)

Discovery Timeline

  • 2021-06-02 - CVE-2021-32625 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2021-32625

Vulnerability Analysis

This integer overflow vulnerability exists within the STRALGO LCS command implementation in Redis. The Longest Common Subsequence (LCS) algorithm, when processing specially crafted input, can trigger an integer overflow condition that corrupts heap memory. This is particularly dangerous as Redis operates as a memory-intensive application, making heap corruption a viable path to code execution.

The vulnerability is a direct result of an incomplete fix for CVE-2021-29477, which addressed a similar integer overflow issue. The original patch failed to account for all edge cases in the LCS algorithm's memory allocation routines, leaving a window for exploitation on systems running Redis 6.0 or newer.

The attack requires network access and low privileges (authentication to the Redis instance), but once authenticated, exploitation does not require user interaction. A successful exploit can compromise the confidentiality, integrity, and availability of the affected system.

Root Cause

The root cause is an integer overflow condition (CWE-190) that leads to integer overflow to buffer overflow (CWE-680). When the STRALGO LCS command processes input strings, the algorithm calculates buffer sizes for storing intermediate results. Under specific conditions, these calculations can overflow, resulting in an undersized buffer allocation. Subsequent operations then write beyond the allocated buffer boundaries, corrupting the heap.

On 64-bit systems with the CVE-2021-29477 fixes applied (versions 6.2.3 or 6.0.13), the vulnerability can be mitigated by ensuring the proto-max-bulk-len configuration parameter remains smaller than 2GB (the default is 512MB).

Attack Vector

The attack vector is network-based, requiring an authenticated connection to a vulnerable Redis instance. An attacker with valid credentials or access to an unauthenticated Redis deployment can send specially crafted STRALGO LCS commands designed to trigger the integer overflow condition.

The exploitation flow involves:

  1. Establishing a connection to the target Redis server
  2. Authenticating (if required) with valid credentials
  3. Sending a malicious STRALGO LCS command with parameters designed to trigger the integer overflow
  4. The overflow causes undersized memory allocation
  5. Subsequent write operations corrupt heap metadata
  6. Attacker gains potential code execution through controlled heap corruption

The STRALGO LCS command computes the longest common subsequence between strings. By manipulating input parameters to cause integer wraparound during size calculations, an attacker can create a heap overflow condition. For detailed technical analysis, refer to the GitHub Security Advisory GHSA-46cp-x4x9-6pfq.

Detection Methods for CVE-2021-32625

Indicators of Compromise

  • Unexpected Redis server crashes or segmentation faults, particularly during string operations
  • Abnormal STRALGO LCS command usage in Redis slow logs or command monitoring
  • Memory corruption errors or unusual heap allocation patterns in Redis logs
  • Unauthorized connections to Redis instances from unexpected source IPs

Detection Strategies

  • Monitor Redis command logs for STRALGO LCS command usage, especially with unusually large string parameters
  • Implement Redis command auditing using the MONITOR command or redis-cli logging
  • Deploy network intrusion detection rules to identify malicious Redis protocol traffic
  • Use SentinelOne Singularity platform to detect heap corruption exploitation attempts and anomalous process behavior

Monitoring Recommendations

  • Enable Redis slow log monitoring with CONFIG SET slowlog-log-slower-than 10000
  • Configure Redis ACLs to restrict STRALGO command access to trusted users only
  • Implement real-time monitoring of Redis process memory usage and crash events
  • Set up alerts for authentication failures and unexpected connection patterns to Redis ports (default 6379)

How to Mitigate CVE-2021-32625

Immediate Actions Required

  • Upgrade Redis to version 6.2.4 or 6.0.14 immediately
  • If immediate patching is not possible, use ACL configuration to prevent clients from using the STRALGO LCS command
  • On 64-bit systems with CVE-2021-29477 fixes (6.2.3 or 6.0.13), verify that proto-max-bulk-len is smaller than 2GB
  • Review and restrict network access to Redis instances using firewall rules
  • Audit Redis authentication configurations and enable password protection if not already configured

Patch Information

Redis has released patched versions addressing this vulnerability. Organizations should upgrade to Redis 6.2.4 for the 6.2.x branch or Redis 6.0.14 for the 6.0.x branch. Fedora users should apply updates from the Fedora Package Announcement.

Workarounds

  • Use Redis ACL to disable the STRALGO command for all non-essential users: ACL SETUSER default -stralgo
  • Set proto-max-bulk-len to a value smaller than 2GB in redis.conf: proto-max-bulk-len 512mb
  • Implement network segmentation to restrict Redis access to trusted application servers only
  • Enable Redis authentication with a strong password using the requirepass directive
bash
# Configuration example for redis.conf
# Disable STRALGO command using ACL
user default -stralgo on ~* &* +@all

# Set proto-max-bulk-len to default safe value (512MB)
proto-max-bulk-len 512mb

# Enable password authentication
requirepass your_strong_password_here

# Bind to localhost only if remote access is not required
bind 127.0.0.1

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechRedislabs Redis

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability2.75%

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

  • CWE-190
  • Technical References
  • GitHub Release 6.0.14

  • GitHub Release 6.2.4

  • GitHub Security Advisory GHSA-46cp-x4x9-6pfq

  • Fedora Package Announcement

  • Fedora Package Announcement
  • Related CVEs
  • CVE-2020-14147: Redis Integer Overflow 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