CVE-2022-24834
Redis vulnerability analysis and mitigation

Overview

CVE-2022-24834 is a critical security vulnerability discovered in Redis, an in-memory database that persists on disk. The vulnerability affects all versions of Redis with Lua scripting support, starting from version 2.6. A specially crafted Lua script executing in Redis can trigger a heap overflow in the cjson library, resulting in heap corruption and potentially remote code execution. The vulnerability was discovered by Seiya Nakata and Yudai Fujiwara, security researchers from Ricerca Security, Inc., and was patched in Redis versions 7.0.12, 6.2.13, and 6.0.20 (Redis Advisory).

Technical details

The vulnerability is classified as a heap-based buffer overflow (CWE-122) and integer overflow to buffer overflow (CWE-680). It received a CVSS v3.1 base score of 8.8 (HIGH) with the vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, indicating network accessibility, low attack complexity, and high impact on confidentiality, integrity, and availability. The vulnerability specifically affects the cjson and cmsgpack libraries used by Redis for Lua script processing (NVD).

Impact

The successful exploitation of this vulnerability could lead to heap corruption and potentially remote code execution. The impact is significant as it affects confidentiality, integrity, and availability of the system. However, the vulnerability can only be exploited by authenticated and authorized users who have permission to execute Lua scripts (Redis Advisory, NetApp Advisory).

Mitigation and workarounds

The primary mitigation is to upgrade Redis to the patched versions: 7.0.12, 6.2.13, or 6.0.20. For systems that cannot be immediately updated, a workaround is available by preventing users from executing Lua scripts through ACL restrictions on EVAL and EVALSHA commands (Redis Advisory).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management