A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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-2025-46818

CVE-2025-46818: Redis In-Memory Database RCE Vulnerability

CVE-2025-46818 is a remote code execution flaw in Redis that allows authenticated users to exploit Lua scripting to execute arbitrary code. This article covers the technical details, affected versions, and mitigation strategies.

Published: May 26, 2026

CVE-2025-46818 Overview

CVE-2025-46818 is a code injection vulnerability [CWE-94] affecting Redis, the open source in-memory database. Versions 8.2.1 and below allow an authenticated user to craft a malicious Lua script that manipulates Lua objects and executes code in the context of another Redis user. The flaw exists in all Redis versions that support Lua scripting and stems from insufficient protection of Lua metatables for basic types. Redis 8.2.2 contains the fix. The issue is tracked under GitHub Security Advisory GHSA-qrv7-wcrx-q5jp.

Critical Impact

An authenticated Redis user can execute Lua code in the context of another user, breaking the ACL isolation model and enabling privilege escalation across tenants sharing the same Redis instance.

Affected Products

  • Redis versions 8.2.1 and below with Lua scripting enabled
  • Redis deployments using EVAL or FUNCTION command families
  • Multi-tenant Redis instances relying on ACLs for user separation

Discovery Timeline

  • 2025-10-03 - CVE-2025-46818 published to the National Vulnerability Database
  • 2025-10-03 - Redis 8.2.2 released with the patch
  • 2026-01-27 - Last updated in NVD database

Technical Details for CVE-2025-46818

Vulnerability Analysis

Redis embeds a Lua interpreter to execute server-side scripts submitted through EVAL, EVALSHA, and FUNCTION commands. Each script runs under the calling user's ACL context. The vulnerability allows an authenticated attacker to manipulate shared Lua objects so that subsequent script execution by another user runs attacker-controlled code under that user's identity.

Because Lua scripts share interpreter state across invocations, modifications to global Lua structures persist between script runs. The classification as CWE-94 (Improper Control of Generation of Code) reflects that the attacker injects Lua code that later executes in a different security context.

Root Cause

The root cause is missing read-only protection on metatables of Lua basic types such as string, number, and nil. Redis recursively locked tables reachable from the global table but did not seal metatables of primitive types. An attacker can mutate these metatables to inject methods invoked when another user later operates on values of those types.

Attack Vector

Exploitation requires authenticated, local access to the Redis instance and that the attacker possesses permission to execute Lua scripts. The attacker submits a crafted EVAL payload that rewrites a metatable on a basic type. When a different authenticated user later runs any script that touches a value of that type, the injected hook executes with the victim's ACL privileges.

c
// Patch in src/eval.c (CVE-2025-46818)
    /* Recursively lock all tables that can be reached from the global table */
    luaSetTableProtectionRecursively(lua);
    lua_pop(lua, 1);
+   /* Set metatables of basic types (string, number, nil etc.) readonly. */
+   luaSetTableProtectionForBasicTypes(lua);

    lctx.lua = lua;
}

Source: Redis commit 45eac02

Detection Methods for CVE-2025-46818

Indicators of Compromise

  • Unexpected EVAL, EVALSHA, or FCALL commands issued by user accounts that do not normally run scripts
  • Lua scripts that assign to string, number, or nil metatables, or invoke setmetatable against basic types
  • Redis ACL events showing commands executing with elevated permissions relative to the calling user
  • Redis server versions reporting 8.2.1 or earlier in INFO server output

Detection Strategies

  • Enable Redis ACL logging and review ACL LOG for entries showing unexpected command access by scripting users
  • Capture and inspect Lua script contents through MONITOR or slow log analysis for metatable manipulation patterns
  • Inventory Redis deployments and flag any instance running a version below 8.2.2

Monitoring Recommendations

  • Forward Redis logs, slow log, and ACL log entries to a centralized SIEM for correlation
  • Alert on first-time use of EVAL or FUNCTION LOAD by accounts that have not previously run scripts
  • Track Redis version data from configuration management and trigger alerts when vulnerable versions appear

How to Mitigate CVE-2025-46818

Immediate Actions Required

  • Upgrade Redis to version 8.2.2 or later on all instances that permit Lua scripting
  • Audit ACL definitions and remove EVAL, EVALSHA, FCALL, and FUNCTION permissions from users that do not require them
  • Rotate credentials for any Redis user that may have been impersonated through script-context execution

Patch Information

The fix landed in Redis release 8.2.2. The patch in commit 45eac02 introduces luaSetTableProtectionForBasicTypes to mark metatables of basic Lua types read-only and adds the lua-enable-deprecated-api configuration toggle. Full advisory details are in GHSA-qrv7-wcrx-q5jp.

Workarounds

  • Block Lua scripting for all users by restricting the EVAL and FUNCTION command families through Redis ACLs
  • Restrict network access to Redis to trusted operators only, since exploitation requires authenticated access
  • Avoid sharing a single Redis instance across mutually distrustful tenants until patching is complete
bash
# Restrict Lua scripting via Redis ACL until patching is possible
ACL SETUSER default -@scripting
ACL SETUSER appuser on >StrongPassword ~app:* +@read +@write -eval -evalsha -eval_ro -evalsha_ro -function -fcall -fcall_ro
ACL SAVE

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.3

  • EPSS Probability3.65%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-94
  • Technical References
  • GitHub Redis Release v8.2.2

  • GitHub Security Advisory GHSA-qrv7-wcrx-q5jp
  • Vendor Resources
  • GitHub Redis Commit
  • Related CVEs
  • CVE-2026-33233: AutoGPT Pickle Deserialization RCE Flaw

  • CVE-2026-25243: Redis Redis RCE Vulnerability

  • CVE-2026-23631: Redis Redis RCE Vulnerability

  • CVE-2026-23479: Redis In-Memory Store RCE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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