GHSA-8g2g-w8wp-x78h
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/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:X/AU:X/R:X/V:X/RE:X/U:X
Exploitation needs EVAL/scripting access, which is typically authenticated in real deployments, so PR:L rather than PR:N; network vector and low complexity, memory corruption yields high C/I/A within the process (S:U).
Primary rating from Vendor (CNA).
CVSS VectorVendor
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/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:X/AU:X/R:X/V:X/RE:X/U:X
Lifecycle Timeline
5Description PRE-NVD
Articles & Coverage 1
AnalysisAI
Memory corruption in Apache Kvrocks' embedded Lua scripting engine allows a client able to run EVAL/EVALSHA commands to trigger a stack buffer overflow in the bit.tohex() function, potentially crashing the server or corrupting process memory toward code execution. Kvrocks is a Redis-protocol-compatible distributed key-value store, and this flaw was disclosed via the oss-security mailing list on 2026-06-25 alongside three other Kvrocks issues. There is no public exploit identified at time of analysis and the CVE is not listed in CISA KEV.
Technical ContextAI
Apache Kvrocks is a RocksDB-backed, Redis-compatible NoSQL datastore that embeds a Lua interpreter to support server-side scripting via the EVAL family of commands. The vulnerability resides in the LuaJIT-style 'bit' library helper bit.tohex(), which formats integers into hexadecimal strings; insufficient bounds checking on the output buffer lets a crafted argument write past the end of a fixed-size stack buffer. The CWE assigned by the source is CWE-122 (Heap-Based Buffer Overflow), yet the advisory title explicitly says 'Stack buffer overflow' and the tags list both Heap Overflow and Buffer Overflow - this is an inconsistency in the source data that should be confirmed against the upstream Apache advisory before relying on the exact memory region.
RemediationAI
No vendor-released patch version is identified in the available data; the primary action is to upgrade to the fixed Apache Kvrocks release named in the official advisory at https://lists.apache.org/thread/11sr3bkkhkk0q01odgw6ddsj7fzo31pt (verify the exact patched version there before deploying). Until patched, the most effective compensating control is to restrict who can run scripts: enable and enforce a strong requirepass/auth so anonymous clients cannot issue EVAL, and where the workload does not depend on Lua, disable or restrict server-side scripting - the trade-off is that any application relying on EVAL/EVALSHA will break. Additionally, place Kvrocks behind network segmentation so its port (default 6666) is reachable only from trusted application hosts rather than the public internet, accepting the operational constraint that client connectivity must be explicitly allow-listed. These same controls also mitigate the companion Lua and RESTORE issues disclosed in the same batch.
Same weakness CWE-122 – Heap-based Buffer Overflow
View allSame technique Path Traversal
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-39332