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
    • AI 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-2022-24834

CVE-2022-24834: Redis Lua Script RCE Vulnerability

CVE-2022-24834 is a remote code execution flaw in Redis Lua scripting that triggers heap overflow in the cjson library. This vulnerability affects authenticated users and can lead to heap corruption. Learn the technical details.

Published: February 17, 2026

CVE-2022-24834 Overview

CVE-2022-24834 is a heap overflow vulnerability in Redis, an in-memory database that persists on disk. A specially crafted Lua script executing in Redis can trigger a heap overflow in the cjson library, resulting in heap corruption and potentially remote code execution. The vulnerability exists in all versions of Redis with Lua scripting support, starting from version 2.6, and affects only authenticated and authorized users.

Critical Impact

Authenticated attackers can achieve remote code execution through heap corruption by exploiting the cjson library via malicious Lua scripts.

Affected Products

  • Redis versions 2.6 through 6.0.19
  • Redis versions 6.2.0 through 6.2.12
  • Redis versions 7.0.0 through 7.0.11
  • Fedora 37
  • Fedora 38

Discovery Timeline

  • July 13, 2023 - CVE-2022-24834 published to NVD
  • November 21, 2024 - Last updated in NVD database

Technical Details for CVE-2022-24834

Vulnerability Analysis

This vulnerability is classified as CWE-122 (Heap-based Buffer Overflow). The flaw resides in the cjson library bundled with Redis, which is used for JSON parsing within Lua scripts. When processing specially crafted JSON data through Lua scripting functionality, the parser fails to properly validate input boundaries, leading to a heap overflow condition.

The vulnerability requires authentication, meaning an attacker must have valid credentials and authorization to execute Lua scripts on the Redis server. However, once authenticated, the attacker can craft malicious Lua code that exploits the cjson parsing vulnerability to corrupt heap memory. This heap corruption can be leveraged to achieve arbitrary code execution on the underlying system, potentially compromising the entire Redis deployment and any connected applications.

Root Cause

The root cause is improper memory bounds checking in the cjson library when handling JSON data within Lua scripts. The cjson library fails to adequately validate the size of input data before writing to heap-allocated buffers, allowing attackers to write beyond the allocated memory region and corrupt adjacent heap structures.

Attack Vector

The attack is network-based and requires low attack complexity once the attacker has obtained valid credentials. The exploitation path involves:

  1. Authenticating to the Redis server with valid credentials
  2. Crafting a malicious Lua script that invokes cjson parsing functions
  3. Providing specially crafted JSON input designed to trigger the heap overflow
  4. Achieving heap corruption that can be weaponized for code execution

Since Lua scripting in Redis is a powerful feature often used for complex operations, environments that expose this functionality to users with less-than-full trust are particularly at risk.

Detection Methods for CVE-2022-24834

Indicators of Compromise

  • Unusual or malformed Lua script executions containing cjson function calls with abnormally large or malformed JSON payloads
  • Redis server crashes or unexpected restarts potentially indicating exploitation attempts
  • Memory corruption signatures in Redis process memory dumps
  • Anomalous EVAL or EVALSHA commands with suspicious Lua code patterns

Detection Strategies

  • Monitor Redis logs for unusual Lua script execution patterns, particularly those involving cjson.decode() or cjson.encode() functions
  • Implement network-level monitoring for Redis protocol traffic containing potentially malicious Lua scripts
  • Deploy memory-based detection rules to identify heap corruption patterns characteristic of this vulnerability
  • Use application-level logging to track all Lua script executions and their sources

Monitoring Recommendations

  • Enable Redis slow log and monitor for unusual script execution times that may indicate exploitation attempts
  • Implement alerting on Redis server process crashes or abnormal terminations
  • Monitor system-level indicators such as unexpected child processes spawned by the Redis server
  • Track authentication patterns and alert on anomalous access to Lua scripting functionality

How to Mitigate CVE-2022-24834

Immediate Actions Required

  • Upgrade Redis to patched versions: 7.0.12, 6.2.13, or 6.0.20 immediately
  • Restrict access to Redis Lua scripting functionality to only trusted users and applications
  • Review and audit all Lua scripts currently deployed to identify potentially malicious code
  • Implement network segmentation to limit access to Redis instances from untrusted networks
  • Enable Redis ACLs to restrict which users can execute Lua scripts

Patch Information

Redis has addressed this vulnerability in versions 7.0.12, 6.2.13, and 6.0.20. Organizations should upgrade to these versions or later to remediate the vulnerability. The fix addresses the heap overflow condition in the cjson library by implementing proper bounds checking during JSON parsing operations.

For additional details, refer to the GitHub Security Advisory. Fedora users should also apply updates as announced in the Fedora package announcements.

Workarounds

  • Disable Lua scripting entirely if not required for operations by using rename-command EVAL "" and rename-command EVALSHA "" in Redis configuration
  • Implement strict ACL rules to prevent untrusted users from executing Lua scripts using ACL SETUSER commands
  • Use network-level controls (firewall rules, security groups) to restrict Redis access to only authorized clients
  • Consider running Redis in protected mode and binding only to trusted network interfaces
bash
# Configuration example - Disable Lua scripting commands
# Add to redis.conf to prevent exploitation if patching is not immediately possible
rename-command EVAL ""
rename-command EVALSHA ""
rename-command SCRIPT ""

# Alternatively, use ACLs to restrict Lua access (Redis 6.0+)
# Create a user without script permissions
ACL SETUSER limited_user on >password ~* &* +@all -@scripting

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 Probability37.95%

  • 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-122
  • Technical References
  • Fedora Package Announcement

  • Fedora Package Announcement

  • NetApp Security Advisory
  • Vendor Resources
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-25243: Redis Redis RCE Vulnerability

  • CVE-2026-23631: Redis Redis RCE Vulnerability

  • CVE-2026-23479: Redis In-Memory Store RCE Vulnerability

  • CVE-2025-46817: Redis Lua Scripting 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