Skip to main content

Apache Kvrocks CVE-2026-46752

| EUVDEUVD-2026-39332 CRITICAL
Heap-based Buffer Overflow (CWE-122)
10.0
CVSS 4.0 · Vendor
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach Kvrocks listener port
  2. Delivery
    Open Redis-protocol session (auth if required)
  3. Exploit
    Submit EVAL with crafted bit.tohex() argument
  4. Execution
    Overflow stack buffer in Lua engine
  5. Persist
    Crash process or corrupt memory
  6. Impact
    Denial 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
No patch listed yet 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv3 – 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)
v2 Jun 25, 2026 - 09:30 cvss changed CVSS 10.0

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.

v1 Jun 25, 2026 - 04:46

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

Apache Kvrocks 2.0.4 ≤2.15.0

Affected Packages

euvd apache_kvrocks no fix

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

Vendor (CNA) PRIMARY 10.0 CRITICAL
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
vuln.today AI 8.8 HIGH

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).

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (CNA).

CVSS VectorVendor

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
High
Subsequent system: Integrity
High
Subsequent system: Availability
High

Lifecycle Timeline

3
Analysis Updated
Jun 25, 2026 - 09:31 vuln.today
v3 - CVSS changed
Analysis Updated
Jun 25, 2026 - 09:30 vuln.today
v2 - CVSS changed
CVSS changed
Jun 25, 2026 - 09:23 NVD
10.0 (CRITICAL)

Description PRE-NVD

Disclosed via oss-security. NVD scoring and full description are pending.

Executive ViewAI

Why It Matters

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.

Business Impact: Severe
Compensating Controls

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

EPSS Score
0.3%
Top 75% exploitable
Prevalence
Low
niche Redis-compatible datastore, modest footprint versus Redis itself
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.3%
Patch available No
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Total

Priority Score

50
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +50
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy