Lua library commands may lead to stack overflow and RCE in Redis
Summary
Lua library commands may lead to stack overflow and RCE in Redis
Original description
The description as published by the source.
Redis is an open source, in-memory database that persists on disk. An authenticated user may use a specially crafted Lua script to trigger a stack buffer overflow in the bit library, which may potentially lead to remote code execution. The problem exists in all versions of Redis with Lua scripting. This problem has been fixed in Redis versions 6.2.16, 7.2.6, and 7.4.1. Users are advised to upgrade. There are no known workarounds for this vulnerability.
Source: OSV.dev (Open Source Vulnerabilities) NVD GitHub Advisory OSV
Affected packages
Fix status by distribution
Fixed packages published by each distribution for this CVE
- Alpine Linux ALPINE-CVE-2024-31449 redis Fixed in: 6.2.18-r0
- Debian DEBIAN-CVE-2024-31449 redict Fixed in: 7.3.1+ds-1
- Ubuntu UBUNTU-CVE-2024-31449 redis Fixed in: 2:3.0.6-1ubuntu0.4+esm5
References
- advisory github.com
- advisory nvd.nist.gov
- advisory github.com
- patch github.com