GHSA-5w7q-2f7j-rqmm
Severity by source
CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:P/VC:L/VI:L/VA:L/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:N/AU:Y/R:U/V:D/RE:L/U:Green
Network-accessible service, low complexity once authenticated; PR:L because EVAL requires a valid user account; S:C because sandbox escape grants host-level impact beyond the database process.
Primary rating from Vendor (CNA).
CVSS VectorVendor
CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:P/VC:L/VI:L/VA:L/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:N/AU:Y/R:U/V:D/RE:L/U:Green
Lifecycle Timeline
2Description PRE-NVD
Articles & Coverage 1
AnalysisAI
Lua sandbox escape in Apache Kvrocks exposes the host environment to authenticated users who hold EVAL command privileges. The database fails to strip the loadstring function from its Lua scripting environment, which is a standard hardening step in Redis-protocol-compatible systems; retaining it allows a sandboxed Lua script to load and execute arbitrary Lua bytecode dynamically, effectively escaping the intended script isolation. No public exploit code or CISA KEV listing exists at time of analysis; however, sandbox escapes of this class are well-understood and exploitable by any user granted EVAL access.
Technical ContextAI
Apache Kvrocks is a Redis-protocol-compatible distributed key-value store backed by RocksDB. Like Redis, it exposes an EVAL command that runs Lua scripts inside an interpreter that is supposed to be sandboxed - dangerous standard-library functions (filesystem access, OS calls, load/loadstring for dynamic code compilation) are expected to be nil-ed out before scripts execute. CVE-2026-46751 identifies that loadstring - a Lua 5.1 built-in that compiles an arbitrary string as a Lua chunk and returns it as a callable function - has not been removed from the Kvrocks Lua sandbox. This is the same class of omission that produced CVE-2022-0543 in Debian/Ubuntu Redis packages. The root-cause CWE is not yet assigned by NVD, but the class is CWE-693 (Protection Mechanism Failure) or CWE-265 (Privilege Issues), specifically an incomplete sandbox that retains a capability allowing policy bypass. No CPE strings are published yet given pre-NVD status.
RemediationAI
The primary remediation is to upgrade to the patched version of Apache Kvrocks once it is released by the Apache Software Foundation. At time of analysis, an exact fix version has not been independently confirmed - the disclosure is pre-NVD and the oss-security post (https://www.openwall.com/lists/oss-security/2026/06/25) should be monitored for the official advisory. As a compensating control, restrict or revoke EVAL command access for untrusted or low-privilege users; this can typically be done through Kvrocks ACL rules (analogous to Redis ACL nocommands +@all -eval). Trade-off: disabling EVAL breaks any application logic that relies on server-side Lua scripting. Additionally, deploying Kvrocks in a network-segmented environment accessible only to trusted application services reduces the attack surface. Do not expose the Kvrocks port to untrusted networks.
Same technique Path Traversal
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-39333