Bug 2080289 (CVE-2022-24736) - CVE-2022-24736 redis: Malformed Lua script can crash Redis
Summary: CVE-2022-24736 redis: Malformed Lua script can crash Redis
Keywords:
Status: NEW
Alias: CVE-2022-24736
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2080291 2080883 2080884 2080885 2090373 2090374 2090375 2090376 2080290 2080886 2080887
Blocks: 2080292
TreeView+ depends on / blocked
 
Reported: 2022-04-29 12:44 UTC by Pedro Sampaio
Modified: 2022-06-02 14:22 UTC (History)
61 users (show)

Fixed In Version: redis 7.0.0, redis 6.2.7
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in the Redis database when a malformed Lua script can cause a NULL pointer dereference. This flaw allows an attacker to load a crafting script, which results in a crash of the redis-server process.
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)

Description Pedro Sampaio 2022-04-29 12:44:28 UTC
edis is an in-memory database that persists on disk. Prior to versions 6.2.7 and 7.0.0, an attacker attempting to load a specially crafted Lua script can cause NULL pointer dereference which will result with a crash of the redis-server process. 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.

References:

https://github.com/redis/redis/pull/10651
https://github.com/redis/redis/security/advisories/GHSA-3qpw-7686-5984
https://github.com/redis/redis/releases/tag/7.0.0
https://github.com/redis/redis/releases/tag/6.2.7

Comment 1 Pedro Sampaio 2022-04-29 12:44:57 UTC
Created redis tracking bugs for this issue:

Affects: epel-7 [bug 2080291]
Affects: fedora-all [bug 2080290]


Note You need to log in before you can comment on or make changes to this bug.