Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2025-46818 — Exploit for Redis 8.2.1 Lua sandbox escape via deprecated APIs and mutable metatables, enabling cross-user command execution. | Kitploit
Tools/GitHubGitHub/dwisiswant0/cve-2025-46818
Vulnerability AnalysisExploitationWeb SecurityPenetration TestingRed Teaming
GitHubdwisiswant0/cve-2025-46818

CVE-2025-46818

Exploit for Redis 8.2.1 Lua sandbox escape via deprecated APIs and mutable metatables, enabling cross-user command execution.

View Repository
3111 months agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2025-46818 – Redis Lua Sandbox Cross-User Escape

Sandbox escape via deprecated Lua APIs and mutable metatables on Redis 8.2.1.

Overview

Redis 8.2.1 keeps deprecated Lua builtins (getfenv, setfenv, newproxy) exposed to scripts and fails to lock metatables for basic types. An attacker can inject methods into shared metatables, capture privileged environments, and run commands with another user's permissions.

Environment

  • Redis server 8.2.1 (or any vulnerable release before 8.2.2)
  • redis-cli
  • Local network access to the Redis instance

Files

  • CVE-2025-46818.lua – verifies deprecated builtins are present, patches the string metatable, and exposes a helper.

Usage

root@kitploit:~
# Setup
redis-cli -h localhost -p 6379 --eval CVE-2025-46818.lua
# Invoke the injected helper (assuming the victim user has higher privileges):
redis-cli -h localhost -p 6379 EVAL "return ('test').escalate()" 0

Expected result:

On 8.2.1 the initial script reports the deprecated APIs as true and confirms the metatable modification. The follow-up call returns the output of ACL WHOAMI (or whichever privileged command you swap in). Redis 8.2.2 removes the APIs by default, makes basic metatables read-only, and logs attempts.

Mitigation

Upgrade to Redis 8.2.2 or later, or disable Lua for untrusted users or run with lua-enable-deprecated-api no.

Download Tool