banner logoJoin us at RSAC™ 2026 Conference, March 23–March 26 | North Expo, Booth N-5863Join us at RSAC™ 2026, March 23–March 26Learn More
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI Security Portfolio
      Leading the Way in AI-Powered Security Solutions
    • 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
      Digital Forensics, IRR & Breach Readiness
    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
    • 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-0543

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

CVE-2022-0543 is a Lua sandbox escape vulnerability in Redis that enables remote code execution through a Debian-specific packaging flaw. This article covers the technical details, affected versions, and mitigation strategies.

Published: February 18, 2026

CVE-2022-0543 Overview

CVE-2022-0543 is a critical Lua sandbox escape vulnerability affecting Redis installations on Debian-based Linux distributions. Due to a packaging issue specific to Debian and its derivatives (including Ubuntu), the Lua interpreter bundled with Redis does not properly isolate the sandbox environment. This allows an attacker to escape the Lua sandbox and execute arbitrary code on the underlying system with the privileges of the Redis server process.

The vulnerability stems from how Debian packages Redis with a dynamically linked Lua library instead of the statically linked version used in upstream Redis. This packaging decision inadvertently exposes the package library within Lua, which attackers can leverage to load arbitrary shared libraries and execute system commands.

Critical Impact

This vulnerability enables unauthenticated remote code execution on Debian-based Redis servers. It is actively exploited in the wild and is listed in CISA's Known Exploited Vulnerabilities catalog.

Affected Products

  • Redis (all versions on Debian-based systems)
  • Canonical Ubuntu Linux 20.04 LTS and 21.10
  • Debian Linux 9.0 (Stretch), 10.0 (Buster), and 11.0 (Bullseye)

Discovery Timeline

  • 2022-02-18 - CVE-2022-0543 published to NVD
  • 2025-11-10 - Last updated in NVD database

Technical Details for CVE-2022-0543

Vulnerability Analysis

This vulnerability represents a Lua sandbox escape that leads to remote code execution. The core issue lies in how Debian packaged Redis with a dynamically linked Lua library rather than using a statically linked version. In upstream Redis, the Lua interpreter is carefully sandboxed to prevent access to dangerous functionality. However, the Debian packaging exposes the package library, which provides mechanisms for loading shared libraries and accessing the underlying system.

When Redis executes Lua scripts (via the EVAL or EVALSHA commands), the sandboxing is supposed to restrict what operations the Lua code can perform. With the exposed package library, an attacker can use package.loadlib() to load the standard C library (liblua5.1.so.0) and then execute arbitrary system commands through the luaopen_os function. This completely bypasses the intended security model of Redis Lua scripting.

The vulnerability is particularly dangerous because Redis servers are often exposed to the network, and many deployments lack authentication. Even authenticated Redis instances are at risk if an attacker can send commands to the server.

Root Cause

The root cause is a Debian-specific packaging decision to dynamically link Lua instead of statically linking it as intended by the upstream Redis project. This exposes the Lua package library within the Redis Lua sandbox, which was supposed to be disabled. The package library provides the loadlib function that allows loading arbitrary shared libraries, effectively defeating the sandbox isolation.

Attack Vector

The attack is conducted over the network by sending specially crafted Lua scripts to a Redis server using the EVAL command. The attack flow involves:

  1. Connecting to an exposed Redis server (either unauthenticated or with compromised credentials)
  2. Using the EVAL command to execute a malicious Lua script
  3. The Lua script accesses the exposed package.loadlib() function to load the Lua shared library
  4. The script then uses luaopen_os to gain access to the os library
  5. Finally, os.execute() is called to run arbitrary system commands

The attacker achieves command execution with the same privileges as the Redis server process. On many systems, this provides sufficient access to further compromise the host or pivot to other systems on the network.

Detection Methods for CVE-2022-0543

Indicators of Compromise

  • Unusual EVAL or EVALSHA commands in Redis logs containing references to package.loadlib or luaopen_os
  • Unexpected outbound network connections from the Redis server process
  • New processes spawned as children of the Redis server process
  • Presence of cryptocurrency miners or other malware installed via Redis exploitation
  • Modified system files or new user accounts created by the Redis user

Detection Strategies

  • Monitor Redis command logs for EVAL commands containing suspicious Lua code patterns such as package.loadlib, luaopen, or os.execute
  • Implement network detection rules for Redis protocol traffic containing exploit-related strings
  • Deploy endpoint detection and response (EDR) solutions to monitor for suspicious process spawning from Redis
  • Use file integrity monitoring on critical system files accessible by the Redis user

Monitoring Recommendations

  • Enable Redis command logging and forward logs to a SIEM platform for analysis
  • Configure network monitoring to detect unexpected traffic patterns from Redis servers
  • Set up alerting for any child processes spawned by the Redis server process
  • Monitor for changes in Redis configuration files that could indicate compromise

How to Mitigate CVE-2022-0543

Immediate Actions Required

  • Update Redis packages immediately using your distribution's package manager (apt update && apt upgrade redis-server)
  • If updates are not immediately available, disable remote access to Redis by binding to localhost only
  • Enable Redis authentication using the requirepass configuration directive
  • Review Redis logs for evidence of exploitation attempts
  • Isolate affected systems from the network until patching is complete

Patch Information

Security updates addressing CVE-2022-0543 have been released for affected Debian-based distributions. Debian has issued DSA-5081 with patched Redis packages. Ubuntu users should apply updates from Canonical's security repositories. The fixes modify how Lua is packaged to properly isolate the sandbox and prevent access to the package library.

For additional technical details, refer to the Debian Bug Report and the original vulnerability disclosure.

Workarounds

  • Bind Redis to 127.0.0.1 or a Unix socket to prevent remote access until patching is possible
  • Enable authentication with a strong password using the requirepass directive
  • Use firewall rules to restrict access to the Redis port (default 6379) to trusted IP addresses only
  • Rename or disable dangerous commands using Redis rename-command configuration
  • Consider running Redis in a container or with restricted system capabilities to limit exploitation impact
bash
# Restrict Redis to localhost only
echo "bind 127.0.0.1" >> /etc/redis/redis.conf
echo "requirepass YOUR_STRONG_PASSWORD_HERE" >> /etc/redis/redis.conf
systemctl restart redis-server

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechRedis

  • SeverityCRITICAL

  • CVSS Score10.0

  • EPSS Probability94.40%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CISA KEV Information
  • In CISA KEVYes
  • CWE References
  • CWE-862
  • Technical References
  • Packet Storm Exploit Report

  • Debian Security Announcement

  • NetApp Security Advisory

  • Debian Security Advisory DSA-5081

  • UberComp Blog Post

  • CISA Known Exploited Vulnerabilities
  • Vendor Resources
  • Debian Bug Report
  • Related CVEs
  • CVE-2025-32023: Redis HyperLogLog RCE Vulnerability

  • CVE-2024-46981: Redis Database Lua Script RCE Vulnerability

  • CVE-2024-31449: Redis Lua Scripting RCE Vulnerability

  • CVE-2023-36824: Redis Heap Overflow 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
  • English
  • 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