CVE-2026-46752

Apache Kvrocks: Stack buffer overflow in Lua bit.tohex()

Published Jun 25, 2026 CVSS 4.0 · 10 Critical EPSS < 1% KEV · Not listed
Description
Redis Lua HEAP overflow in cjson library vulnerability in Apache Kvrocks.

This issue affects Apache Kvrocks: from 2.0.4 through 2.15.0.

Users are recommended to upgrade to version 2.16.0, which fixes the issue.

Analysis

AI-generated

Technical impact

A stack buffer overflow exists in the Lua bit.tohex() function used by Apache Kvrocks. The flaw allows a malformed input to overflow a stack buffer, potentially enabling an attacker to supply arbitrary code. This weakness is classified as CWE‑122 and can lead to compromise of the system running Kvrocks.

Affected Systems

Apache Kvrocks versions 2.0.4 through 2.15.0 are affected. Users should upgrade to version 2.16.0 to resolve the issue.

Risk and Exploitability

The CVSS score is 10, indicating critical severity. No EPSS score is currently available and the vulnerability is not listed in the CISA KEV catalog. The attack vector is likely remote, as the flaw can be triggered by any entity that can execute Lua scripts within Kvrocks, such as network-connected clients. Given the high CVSS score and the ability to eschew existing security controls in environments where Lua scripts are enabled, the risk of exploitation remains significant.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to Apache Kvrocks 2.16.0 or later to eliminate the vulnerability
  • Limit or deny the ability for untrusted users to submit Lua scripts to the KV store
  • If Lua scripting is unnecessary for the application, disable Lua support entirely

Generated by OpenCVE AI on June 25, 2026 at 10:31 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Apache
Apache kvrocks
Vendors & Products Apache
Apache kvrocks
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Redis Lua HEAP overflow in cjson library vulnerability in Apache Kvrocks. This issue affects Apache Kvrocks: from 2.0.4 through 2.15.0. Users are recommended to upgrade to version 2.16.0, which fixes the issue.
Title Apache Kvrocks: Stack buffer overflow in Lua bit.tohex()
Weaknesses CWE-122
References
Metrics cvssV4_0

{'score': 10, 'vector': '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'}

Weaknesses
  • CWE-122

    Heap-based Buffer Overflow

Sources

Status
PUBLISHED
Assigner
apache
Published
Updated
Jun 25, 2026, 12:21 PM
Reserved
May 18, 2026, 12:13 PM
Status
Deferred
Published
Jun 25, 2026, 9:16 AM
Modified
Oct 25, 2026, 11:10 PM