Lua scripts can overflow the heap-based Lua stack in Redis
Description
Redis is an open source, in-memory database that persists on disk. In affected versions specially crafted Lua scripts executing in Redis can cause the heap-based Lua stack to be overflowed, due to incomplete checks for this condition. This can result with heap corruption and potentially remote code execution. This problem exists in all versions of Redis with Lua scripting support, starting from 2.6. The problem is fixed in versions 6.2.6, 6.0.16 and 5.0.14. For users unable to update an additional workaround to mitigate the problem without patching the redis-server executable is to prevent users from executing Lua scripts. This can be done using ACL to restrict EVAL and EVALSHA commands.
Affected products
11- osv-coords10 versionspkg:bitnami/keydbpkg:bitnami/redispkg:bitnami/valkeypkg:rpm/almalinux/redispkg:rpm/almalinux/redis-develpkg:rpm/almalinux/redis-docpkg:rpm/opensuse/redis&distro=openSUSE%20Leap%2015.3pkg:rpm/opensuse/redis&distro=openSUSE%20Tumbleweedpkg:rpm/suse/redis&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Server%20Applications%2015%20SP2pkg:rpm/suse/redis&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Server%20Applications%2015%20SP3
>= 2.6.0, < 5.0.14+ 9 more
- (no CPE)range: >= 2.6.0, < 5.0.14
- (no CPE)range: >= 2.6.0, < 5.0.14
- (no CPE)range: >= 2.6.0, < 5.0.14
- (no CPE)range: < 5.0.3-5.module_el8.4.0+2583+b9845322
- (no CPE)range: < 5.0.3-5.module_el8.5.0+66+fc19ec12
- (no CPE)range: < 5.0.3-5.module_el8.4.0+2583+b9845322
- (no CPE)range: < 6.0.14-6.8.1
- (no CPE)range: < 6.2.6-1.1
- (no CPE)range: < 6.0.14-6.8.1
- (no CPE)range: < 6.0.14-6.8.1
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
10- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HTYQ5ZF37HNGTZWVNJD3VXP7I6MEEF42/mitrevendor-advisoryx_refsource_FEDORA
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VL5KXFN3ATM7IIM7Q4O4PWTSRGZ5744Z/mitrevendor-advisoryx_refsource_FEDORA
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WR5WKJWXD4D6S3DJCZ56V74ESLTDQRAB/mitrevendor-advisoryx_refsource_FEDORA
- security.gentoo.org/glsa/202209-17mitrevendor-advisoryx_refsource_GENTOO
- www.debian.org/security/2021/dsa-5001mitrevendor-advisoryx_refsource_DEBIAN
- github.com/redis/redis/commit/666ed7facf4524bf6d19b11b20faa2cf93fdf591mitrex_refsource_MISC
- github.com/redis/redis/security/advisories/GHSA-p486-xggp-782cmitrex_refsource_CONFIRM
- lists.apache.org/thread.html/r75490c61c2cb7b6ae2c81238fd52ae13636c60435abcd732d41531a0%40%3Ccommits.druid.apache.org%3Emitremailing-listx_refsource_MLIST
- security.netapp.com/advisory/ntap-20211104-0003/mitrex_refsource_CONFIRM
- www.oracle.com/security-alerts/cpuapr2022.htmlmitrex_refsource_MISC
News mentions
0No linked articles in our index yet.