Skip to main content

Apache Kvrocks CVE-2026-46751

| EUVDEUVD-2026-39333 MEDIUM
5.5
CVSS 4.0 · Vendor
View

Attack ChainAIDerived

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

  1. Access
    Authenticate to Kvrocks service
  2. Delivery
    Issue EVAL with loadstring payload
  3. Exploit
    Lua runtime compiles arbitrary code chunk
  4. Execution
    Sandbox boundary bypassed
  5. Impact
    Execute OS commands or access host filesystem as server process user

Vulnerability Assessment

Exploitation Conditions

Exploitation requires: (1) network connectivity to the Kvrocks service port; (2) a valid user account with permission to execute the EVAL command - this is an authenticated, low-privilege condition, not unauthenticated; (3) no special non-default configuration is required beyond having EVAL access, which is typically granted by default to authenticated users in Redis-compatible systems. Exploitation is limited by: authentication (unauthenticated attackers cannot reach EVAL), network segmentation (Kvrocks not exposed to untrusted networks reduces exposure), and ACL policies that explicitly deny EVAL to specific users. Deployments where all authenticated users are fully trusted internal services have materially lower risk than multi-tenant or shared environments.

Impact

No official CVSS vector has been published; the following risk picture is inferred from the vulnerability class and description. The attack requires network access to Kvrocks and a user account with EVAL privileges, placing this in a low-privilege authenticated network scenario. EPSS data is absent (pre-NVD), and there is no CISA KEV entry. Despite the absence of these signals, Lua sandbox escapes in Redis-compatible systems are well-documented, the loadstring gadget is a known bypass technique, and exploitation complexity is low once EVAL access is obtained - the attack is essentially a one-liner. Real-world priority should be driven by how broadly EVAL access is granted in a given deployment: multi-tenant or shared Kvrocks instances (e.g., cache-as-a-service, shared developer environments) carry substantially higher risk than single-tenant deployments with tightly controlled user permissions. CVSS vector not independently confirmable at this stage - stated as N/A in source data.

Exploit ScenarioDerived

An authenticated Kvrocks user with EVAL command access sends a crafted Lua script containing a loadstring-based payload - for example, EVAL "return loadstring('os = require(\'os\'); return os.execute(\'id\')')()" 0 - to the server. Because loadstring is not removed from the sandbox, the script compiles and executes the inner chunk within the server process, bypassing the scripting restrictions and potentially running OS-level commands or accessing arbitrary data. No public proof-of-concept has been identified at time of analysis, but the technique is analogous to documented Redis loadstring sandbox escapes.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
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

AnalysisAIv1 – Jun 25, 2026

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.

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.

Affected VersionsENISA

Apache Kvrocks 2.2.0 ≤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 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.

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 5.5 MEDIUM
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/S:N/AU:Y/R:U/V:D/RE:L/U:Green
vuln.today AI 9.9 CRITICAL

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.

3.1 AV:N/AC:L/PR:L/UI:N/S:C/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:H/SI:H/SA:H

Primary rating from Vendor (CNA).

CVSS VectorVendor

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

Lifecycle Timeline

1
CVSS changed
Jun 25, 2026 - 09:23 NVD
5.5 (MEDIUM)

Description PRE-NVD

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

Executive ViewAI

Why It Matters

Apache Kvrocks contains a critical Lua sandbox escape vulnerability allowing authenticated users with EVAL command privileges to execute arbitrary code on the database host. This directly compromises the security posture of production infrastructure and creates risk of lateral movement, data exfiltration, and system compromise. The absence of a vendor patch requires immediate protective measures and contingency planning.

Business Impact: Severe
Compensating Controls

No vendor-released patch identified at time of analysis. Implement: (1) Disable EVAL command for all non-essential deployments; (2) Enforce database-level ACLs limiting EVAL access to single trusted service account with least-privilege scope; (3) Deploy network segmentation restricting Kvrocks access to approved application servers only; (4) Enable comprehensive audit logging of all EVAL command execution; (5) Implement real-time monitoring for Lua bytecode patterns and loadstring invocations within scripts.

Threat Intelligence Overview

EPSS Score
0.3%
Top 80% exploitable
Prevalence
Low
niche Redis-compatible alternative, limited enterprise adoption
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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
Very High
Technical Impact
Partial

Priority Score

28
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
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.

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