GHSA-8g2g-w8wp-x78h
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach Kvrocks listener port
-
DeliveryOpen Redis-protocol session (auth if required)
-
ExploitSubmit EVAL with crafted bit.tohex() argument
-
ExecutionOverflow stack buffer in Lua engine
-
PersistCrash process or corrupt memory
-
ImpactDenial of service or potential code execution
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Heap buffer bounds checking
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the attacker to be able to execute Lua scripts on the target via the EVAL/EVALSHA command path that reaches bit.tohex(); this is the concrete prerequisite, mirroring the sibling CVE-2026-46751 which is scoped to 'a user who can run EVAL.' What limits exploitation: in deployments where requirepass/authentication is configured, the attacker must first hold valid credentials with scripting permission, so the official PR:N (unauthenticated) rating only holds for instances left without a password or otherwise exposing EVAL to anonymous clients. Network reachability to the Kvrocks listener is also required. There is no user-interaction requirement. |
| Impact | The published CVSS 4.0 score is 10.0 (AV:N/AC:L/AT:N/PR:N/UI:N with full High vulnerable- and subsequent-system impact), which treats the issue as remotely exploitable by an unauthenticated attacker with maximum impact. However, this rating is in tension with the nature of the flaw: triggering it requires the ability to execute Lua via EVAL, a capability that in most production Kvrocks deployments is gated behind a configured password (requirepass) and network ACLs - the sibling advisory CVE-2026-46751 explicitly frames its sandbox issue around 'a user who can run EVAL.' No EPSS score, KEV listing, or POC was provided in the input, so there is no evidence of active or widespread exploitation; the 10.0 reflects worst-case scoring (likely an unauthenticated/no-password deployment and assumed code execution) rather than confirmed in-the-wild risk. Treat this as a genuine high-priority patch target for any internet-exposed or multi-tenant Kvrocks instance, but note the realistic precondition (scripting access) materially limits exposure for hardened, authenticated deployments. |
| Exploit ScenarioDerived | An attacker who can reach the Kvrocks port and execute scripts - for example via an exposed instance with no password, or a low-privileged application tenant - sends an EVAL command containing a crafted call to bit.tohex(). The malformed argument overflows the fixed-size buffer, crashing the Kvrocks process (denial of service) and potentially corrupting memory in a way that could be steered toward code execution. No public proof-of-concept was referenced, so weaponization effort is currently unknown. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv3 – Jun 25, 2026
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.
Earlier versions of this analysis (2)
Stack buffer overflow in Apache Kvrocks's embedded Lua interpreter, triggered through the bit.tohex() function, allows a user able to execute Lua scripts (EVAL) to corrupt memory in the server process. Because Kvrocks is a Redis-compatible distributed key-value store, successful exploitation can crash the service or potentially lead to code execution in the database process. Disclosed via the oss-security mailing list on 2026-06-25 alongside three sibling Kvrocks CVEs; no public exploit code has been identified at time of analysis.
Stack buffer overflow in Apache Kvrocks' embedded Lua scripting engine via the bit.tohex() function exposes authenticated EVAL users to memory corruption, potentially enabling remote code execution or service crash. Disclosed on 2026-06-25 via oss-security alongside three other Kvrocks CVEs (CVE-2026-45188, CVE-2026-46751, CVE-2026-54226), indicating a coordinated security audit of the project. No public exploit has been identified at time of analysis, and no CVSS vector or patch version has been published by the vendor or NVD.
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.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
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.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
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
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
Lifecycle Timeline
3Description PRE-NVD
Articles & Coverage 1
Executive ViewAI
Apache Kvrocks, a Redis-compatible distributed key-value store, contains a critical memory corruption vulnerability (CVSS 10.0) in its Lua scripting engine exploitable by remote unauthenticated clients through the bit.tohex() function, enabling potential server compromise and arbitrary code execution. Organizations operating Kvrocks instances face immediate risk of data breaches and infrastructure takeover. This vulnerability was disclosed 2026-06-25 alongside three related Kvrocks issues.
No vendor-released patch identified at time of analysis. Interim mitigations: Implement strict network segmentation isolating Kvrocks instances to internal-only access; restrict inbound connections to explicitly trusted clients with firewall rules; disable or filter EVAL/EVALSHA commands at the application layer; monitor process behavior for exploitation attempts.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
A heap overflow occurs when a program writes data beyond the bounds of a buffer allocated in the heap memory region.
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
EUVD-2026-39332
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB