Introducing Wiz for Exposure Management: Unify, prioritize, and remediate exposures everywhere.

CVE-2022-24735
Redis vulnerability analysis and mitigation

Overview

CVE-2022-24735 affects Redis versions prior to 7.0.0 and 6.2.7. The vulnerability allows an attacker with access to Redis to inject Lua code that will execute with the potentially higher privileges of another Redis user. The issue was discovered and reported by Aviv Yahav and was publicly disclosed on April 27, 2022 (Redis Release).

Technical details

The vulnerability exists in the Lua script execution environment of Redis. The environment had measures to prevent scripts from creating persistent side effects that could affect later script executions. However, these security measures had weaknesses that became exploitable after Redis 6.0 introduced ACLs (Access Control Lists). The vulnerability allows less privileged users to inject Lua code that executes with elevated privileges when a privileged user runs a Lua script (GitHub Advisory).

Impact

Successful exploitation of this vulnerability could lead to privilege escalation, allowing attackers to execute code with higher privileges than they should have access to. This could result in unauthorized access to data, modification of system settings, or other malicious actions performed with elevated permissions (NetApp Advisory).

Mitigation and workarounds

The vulnerability is fixed in Redis versions 7.0.0 and 6.2.7. If upgrading is not immediately possible, a workaround is available by blocking access to SCRIPT LOAD and EVAL commands using ACL rules if Lua scripting is not being used (Redis Release).

Community reactions

The vulnerability was treated as a significant security issue, with multiple vendors and distributions quickly releasing patches and advisories, including Red Hat, Fedora, and NetApp. The fix involved making substantial changes to how Redis handles Lua tables and global functions, which caused some compatibility issues that required applications to update their Lua scripts (GitHub PR).

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