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
Alias: CVE-2022-24736
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
Depends On: 2080291 2090373 2090375 2080290 2080883 2080884 2080885 2080886 2080887 2090374 2090376
Blocks: 2080292
TreeView+ depends on / blocked
Reported: 2022-04-29 12:44 UTC by Pedro Sampaio
Modified: 2022-12-04 21:33 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:
Last Closed: 2022-12-04 21:33:28 UTC

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2022:7541 0 None None None 2022-11-08 09:31:58 UTC
Red Hat Product Errata RHSA-2022:8096 0 None None None 2022-11-15 10:14:19 UTC

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.



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]

Comment 4 errata-xmlrpc 2022-11-08 09:31:55 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2022:7541 https://access.redhat.com/errata/RHSA-2022:7541

Comment 5 errata-xmlrpc 2022-11-15 10:14:15 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2022:8096 https://access.redhat.com/errata/RHSA-2022:8096

Comment 6 Product Security DevOps Team 2022-12-04 21:33:23 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):


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