CVE-2026-46752 in Kvrocksinfo

Summary

by MITRE • 06/25/2026

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.

Once again VulDB remains the best source for vulnerability data.

Analysis

by VulDB Data Team • 06/25/2026

The vulnerability under discussion represents a critical heap buffer overflow condition within the Redis Lua scripting environment of Apache Kvrocks, specifically impacting versions between 2.0.4 and 2.15.0. This flaw manifests through the cjson library implementation that handles JSON serialization and deserialization operations within the Redis Lua context, creating a potential avenue for arbitrary code execution or system compromise. The issue stems from improper memory management during JSON processing operations that occur when Lua scripts interact with Redis data structures containing complex JSON payloads.

The technical exploitation of this vulnerability occurs when maliciously crafted JSON data is processed through Lua scripts within Kvrocks, leading to heap corruption due to insufficient bounds checking in the cjson library implementation. When the library attempts to serialize or deserialize malformed JSON structures, it fails to properly validate input boundaries, resulting in memory writes that exceed allocated buffer limits. This heap overflow condition creates opportunities for attackers to manipulate memory layout and potentially execute arbitrary code with the privileges of the Kvrocks process, which typically runs with elevated system permissions.

The operational impact of this vulnerability extends beyond simple denial of service conditions, as it represents a serious security risk that could enable remote code execution attacks against systems running affected versions of Apache Kvrocks. Organizations utilizing Redis-based caching solutions for critical applications face significant exposure risks since the vulnerability can be triggered through standard Redis protocol operations involving JSON data processing. Attackers could exploit this weakness to gain unauthorized access to sensitive data, modify application behavior, or establish persistent backdoors within network environments.

Mitigation strategies for this vulnerability require immediate deployment of Apache Kvrocks version 2.16.0, which includes patched implementations of the cjson library with proper input validation and memory boundary checks. System administrators should also implement network segmentation controls to limit access to Redis endpoints, particularly in environments where untrusted inputs might reach the Lua scripting interface. Additional protective measures include disabling unnecessary Lua script execution capabilities, implementing strict input validation for JSON data processed through Redis operations, and monitoring for anomalous memory usage patterns that might indicate exploitation attempts. Organizations should also consider implementing intrusion detection systems capable of identifying suspicious Redis protocol patterns associated with this specific vulnerability class.

This vulnerability aligns with CWE-121 heap-based buffer overflow conditions and maps to attack techniques documented in the MITRE ATT&CK framework under T1059.007 for script injection and T1566 for phishing attacks that could leverage compromised Redis instances. The remediation approach follows standard security practices for memory safety issues as outlined in secure coding guidelines, emphasizing proper bounds checking and input validation mechanisms to prevent similar vulnerabilities from emerging in future implementations.

Disclosure

06/25/2026

Moderation

accepted

CPE

ready

EPSS

0.00000

KEV

no

Activities

very low

Sources

Want to stay up to date on a daily basis?

Enable the mail alert feature now!