Vulnerabilities · 2022 · Redis
CVE-2022-24735
Redis vulnerability
Redis is an in-memory database that persists on disk. By exploiting weaknesses in the Lua script execution environment, an attacker with access to Redis prior to version 7.0.0 or 6.2.7 can inject Lua code that will execute with the (potentially higher) privileges of another Redis user. The Lua script execution environment in Redis provides some measures that prevent a script from creating side effects that persist and can affect the execution of the same, or different script, at a later time. Several weaknesses of these measures have been publicly known for a long time, but they had no security impact as the Redis security model did not endorse the concept of users or privileges. With the introduction of ACLs in Redis 6.0, these weaknesses can be exploited by a less privileged users to inject Lua code that will execute at a later time, when a privileged user executes a Lua script. The problem is fixed in Redis versions 7.0.0 and 6.2.7. An additional workaround to mitigate this problem without patching the redis-server executable, if Lua scripting is not being used, is to block access to `SCRIPT LOAD` and `EVAL` commands using ACL rules.
Affected products
Redis, Fedora, Management Services For Element Software, Management Services For Netapp Hci, Communications Operations Monitor. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Redis runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- www.oracle.com/security-alerts/cpujul2022.html · Patch
- github.com/redis/redis/pull/10651 · Exploit
- github.com/redis/redis/releases/tag/6.2.7 · Third Party Advisory
- github.com/redis/redis/releases/tag/7.0.0 · Third Party Advisory
- github.com/redis/redis/security/advisories/GHSA-647m-2wmq-qmvq · Third Party Advisory
- security.gentoo.org/glsa/202209-17 · Third Party Advisory
- security.netapp.com/advisory/ntap-20220715-0003/ · Third Party Advisory
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/J
- nvd.nist.gov/vuln/detail/CVE-2022-24735
- cve.org/CVERecord?id=CVE-2022-24735
More vulnerabilities in Redis products
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.