CVE-2022-24834: Heap overflow issue with the Lua cjson library used by Redis
CVE-2022-24834 - A specially crafted Lua script executing in Redis can trigger a heap overflow in the cjson and cmsgpack libraries, and result in heap corruption and potentially remote code execution. The problem exists in all versions of Redis with Lua scripting support, starting from 2.6, and affects only authenticated and authorized users.
https://github.com/redis/redis/security/advisories/GHSA-p8x2-9v9q-c838
Other sources
Redis is an in-memory database that persists on disk. A specially crafted Lua script executing in Redis can trigger a heap overflow in the cjson library, and result with heap corruption and potentially remote code execution. The problem exists in all versions of Redis with Lua scripting support, starting from 2.6, and affects only authenticated and authorized users. The problem is fixed in versions 7.0.12, 6.2.13, and 6.0.20.
— Ubuntu
Redis is vulnerable to a heap-based buffer overflow, caused by improper bounds checking by the cjson and cmsgpack libraries. By executing a specially crafted Lua script, a local authenticated attacker could overflow a buffer and execute arbitrary code on the system.
— IBM
Affected Software
Event History
Frequently Asked Questions
What is CVE-2022-24834?
CVE-2022-24834 is a vulnerability in Redis that allows a specially crafted Lua script to trigger a heap overflow in the cjson library, potentially leading to heap corruption and remote code execution.
What software versions are affected by CVE-2022-24834?
Versions of Redis with Lua scripting support from 2.6.0 to 6.0.20, 6.2.0 to 6.2.13, and 7.0.0 to 7.0.12 are affected by CVE-2022-24834.
What is the severity of CVE-2022-24834?
CVE-2022-24834 has a severity rating of 8.8, which is considered high.
How can CVE-2022-24834 be fixed?
Updating Redis to a version that includes the fix for CVE-2022-24834 is recommended to mitigate the vulnerability.
Where can I find more information about CVE-2022-24834?
More information about CVE-2022-24834 can be found in the following references: [Link 1](https://github.com/redis/redis/security/advisories/GHSA-p8x2-9v9q-c838), [Link 2](https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TDNNH2ONMVNBQ6LUIAOAGDNFPKXNST5K/), [Link 3](https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MIF5MAGYARYUMRFK7PQI7HYXMK2HZE5T/)