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
    • 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-2021-29477

CVE-2021-29477: Redis Integer Overflow RCE Vulnerability

CVE-2021-29477 is an integer overflow remote code execution vulnerability in Redis 6.0+ that exploits the STRALGO LCS command to corrupt heap memory. This article covers technical details, affected versions, and mitigation.

Published: February 25, 2026

CVE-2021-29477 Overview

Redis is an open source (BSD licensed), in-memory data structure store widely used as a database, cache, and message broker. An integer overflow vulnerability exists in Redis version 6.0 and newer that can be exploited using the STRALGO LCS command. This vulnerability allows an authenticated attacker to corrupt the heap and potentially achieve remote code execution on affected Redis instances.

Critical Impact

Authenticated attackers can exploit this integer overflow to corrupt heap memory, potentially leading to remote code execution on Redis servers running version 6.0 or newer.

Affected Products

  • Redislabs Redis versions 6.0.x prior to 6.0.13
  • Redislabs Redis versions 6.2.x prior to 6.2.3
  • Fedoraproject Fedora 33 and 34 (with vulnerable Redis packages)

Discovery Timeline

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

Technical Details for CVE-2021-29477

Vulnerability Analysis

This vulnerability is classified as CWE-190 (Integer Overflow or Wraparound). The flaw exists within the STRALGO LCS command implementation in Redis versions 6.0 and newer. When processing specially crafted input, an integer overflow condition occurs during length calculations, leading to incorrect memory allocation sizes and subsequent heap corruption.

The STRALGO LCS command implements the Longest Common Subsequence algorithm for string comparison. During the computation, integer values representing string lengths and buffer sizes are processed without adequate bounds checking. An attacker who has authenticated access to the Redis server can craft malicious input that triggers the integer overflow, causing the server to allocate an unexpectedly small buffer while writing a larger amount of data to it.

Root Cause

The root cause of this vulnerability is insufficient validation of integer arithmetic operations in the STRALGO LCS command handler. When calculating buffer sizes for the LCS algorithm, the code performs arithmetic operations on user-controlled length values without checking for overflow conditions. This allows an authenticated user to supply input that causes the multiplication or addition of length values to wrap around, resulting in a small allocation that is subsequently overwritten with more data than it can hold.

Attack Vector

The attack requires network access and authenticated low-privilege access to the Redis server. An attacker must be able to issue commands to the Redis instance, which typically requires either direct access or exploitation of an application that passes user input to Redis commands.

The attack proceeds as follows:

  1. The attacker establishes an authenticated connection to the vulnerable Redis server
  2. The attacker crafts a STRALGO LCS command with carefully chosen string parameters designed to trigger the integer overflow
  3. When Redis processes the command, the integer overflow causes an undersized heap buffer to be allocated
  4. Subsequent write operations overflow this buffer, corrupting adjacent heap memory
  5. With careful exploitation, the heap corruption can be leveraged to achieve arbitrary code execution

For detailed technical information, see the GitHub Security Advisory.

Detection Methods for CVE-2021-29477

Indicators of Compromise

  • Unexpected crashes or segmentation faults in Redis server processes
  • Anomalous STRALGO LCS commands in Redis command logs with unusually large or malformed string arguments
  • Evidence of heap corruption or memory-related errors in Redis logs
  • Unexpected child processes spawned by the Redis server process

Detection Strategies

  • Monitor Redis command logs for STRALGO LCS commands with suspicious or malformed parameters
  • Implement Redis ACL rules to audit or restrict access to the STRALGO LCS command
  • Deploy intrusion detection signatures that identify exploitation attempts targeting this specific command
  • Use memory corruption detection tools in development and staging environments to identify exploitation attempts

Monitoring Recommendations

  • Enable Redis slowlog and monitor for unusual command patterns involving STRALGO
  • Configure alerting for Redis process crashes or unexpected restarts
  • Implement network-level monitoring for unusual traffic patterns to Redis ports (default 6379)
  • Review Redis ACL logs for unauthorized command attempts

How to Mitigate CVE-2021-29477

Immediate Actions Required

  • Upgrade Redis to version 6.2.3 or 6.0.13 or later immediately
  • If immediate patching is not possible, implement ACL rules to disable the STRALGO LCS command
  • Review and restrict network access to Redis instances to trusted hosts only
  • Ensure Redis authentication is enabled and uses strong credentials

Patch Information

The vulnerability has been fixed in Redis versions 6.2.3 and 6.0.13. Organizations should upgrade to these versions or later to fully remediate the vulnerability. Patch details and release notes are available through the GitHub Security Advisory. Fedora users should apply the latest security updates as announced in the Fedora Package Announcements. Gentoo users should refer to GLSA 202107-20 for patching guidance.

Workarounds

  • Use Redis ACL configuration to prevent clients from executing the STRALGO LCS command
  • Restrict Redis access to only trusted internal networks using firewall rules
  • Implement application-level filtering to block STRALGO commands if passed through application code
  • Consider running Redis in a containerized environment with restricted capabilities as defense-in-depth
bash
# ACL configuration to disable STRALGO LCS command
# Add to redis.conf or apply via CONFIG SET
ACL SETUSER default -stralgo

# Alternative: Create restricted user without STRALGO access
ACL SETUSER appuser on >strongpassword ~* +@all -stralgo

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 Score8.8

  • EPSS Probability3.52%

  • 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-190
  • Technical References
  • GitHub Security Advisory

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Redis Official Website

  • Gentoo GLSA 2021-20
  • 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
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