{"id":"UBUNTU-CVE-2024-31449","details":"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.","modified":"2026-05-20T16:08:50.612005794Z","published":"2024-10-07T20:15:00Z","related":["USN-8169-1"],"upstream":["CVE-2024-31449"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2024-31449"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2024-31449"},{"type":"REPORT","url":"https://github.com/redis/redis/security/advisories/GHSA-whxg-wx83-85p5"},{"type":"REPORT","url":"https://github.com/redis/redis/commit/1f7c148be2cbacf7d50aa461c58b871e87cc5ed9"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-8169-1"}],"affected":[{"package":{"name":"redis","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/redis?arch=source&distro=esm-apps%2Fxenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2:3.0.6-1ubuntu0.4+esm5"}]}],"versions":["2:3.0.3-3","2:3.0.5-1","2:3.0.5-2","2:3.0.5-3","2:3.0.5-4","2:3.0.6-1","2:3.0.6-1ubuntu0.2","2:3.0.6-1ubuntu0.3","2:3.0.6-1ubuntu0.4","2:3.0.6-1ubuntu0.4+esm1","2:3.0.6-1ubuntu0.4+esm2","2:3.0.6-1ubuntu0.4+esm3","2:3.0.6-1ubuntu0.4+esm4"],"ecosystem_specific":{"binaries":[{"binary_name":"redis-sentinel","binary_version":"2:3.0.6-1ubuntu0.4+esm5"},{"binary_version":"2:3.0.6-1ubuntu0.4+esm5","binary_name":"redis-server"},{"binary_version":"2:3.0.6-1ubuntu0.4+esm5","binary_name":"redis-tools"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","priority_reason":"Potential RCE"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-31449.json"}},{"package":{"name":"lua-bitop","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/lua-bitop?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0.2-3"],"ecosystem_specific":{"priority_reason":"Potential RCE","binaries":[{"binary_version":"1.0.2-3","binary_name":"liblua5.1-bitop0"},{"binary_name":"lua-bitop","binary_version":"1.0.2-3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-31449.json"}},{"package":{"name":"lua-bitop","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/lua-bitop?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0.2-4","1.0.2-5"],"ecosystem_specific":{"priority_reason":"Potential RCE","binaries":[{"binary_name":"liblua5.1-bitop0","binary_version":"1.0.2-5"},{"binary_name":"lua-bitop","binary_version":"1.0.2-5"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-31449.json"}},{"package":{"name":"redis","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/redis?arch=source&distro=esm-apps%2Fbionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5:4.0.9-1ubuntu0.2+esm7"}]}],"versions":["4:4.0.1-7","4:4.0.2-6","4:4.0.2-9","5:4.0.5-1","5:4.0.6-1","5:4.0.6-2","5:4.0.7-1","5:4.0.8-1","5:4.0.8-2","5:4.0.9-1","5:4.0.9-1ubuntu0.1","5:4.0.9-1ubuntu0.2","5:4.0.9-1ubuntu0.2+esm2","5:4.0.9-1ubuntu0.2+esm3","5:4.0.9-1ubuntu0.2+esm4","5:4.0.9-1ubuntu0.2+esm5","5:4.0.9-1ubuntu0.2+esm6"],"ecosystem_specific":{"priority_reason":"Potential RCE","binaries":[{"binary_name":"redis","binary_version":"5:4.0.9-1ubuntu0.2+esm7"},{"binary_name":"redis-sentinel","binary_version":"5:4.0.9-1ubuntu0.2+esm7"},{"binary_name":"redis-server","binary_version":"5:4.0.9-1ubuntu0.2+esm7"},{"binary_name":"redis-tools","binary_version":"5:4.0.9-1ubuntu0.2+esm7"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-31449.json"}},{"package":{"name":"lua-bitop","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/lua-bitop?arch=source&distro=esm-apps%2Ffocal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.2-5ubuntu0.20.04.1~esm2"}]}],"versions":["1.0.2-5"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","priority_reason":"Potential RCE","binaries":[{"binary_name":"liblua5.1-bitop0","binary_version":"1.0.2-5ubuntu0.20.04.1~esm2"},{"binary_name":"lua-bitop","binary_version":"1.0.2-5ubuntu0.20.04.1~esm2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-31449.json"}},{"package":{"name":"lua-bitop","ecosystem":"Ubuntu:Pro:22.04:LTS","purl":"pkg:deb/ubuntu/lua-bitop?arch=source&distro=esm-apps%2Fjammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.2-5ubuntu0.22.04.1~esm2"}]}],"versions":["1.0.2-5"],"ecosystem_specific":{"priority_reason":"Potential RCE","binaries":[{"binary_version":"1.0.2-5ubuntu0.22.04.1~esm2","binary_name":"liblua5.1-bitop0"},{"binary_name":"lua-bitop","binary_version":"1.0.2-5ubuntu0.22.04.1~esm2"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-31449.json"}},{"package":{"name":"lua-bitop","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/lua-bitop?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0.2-7"],"ecosystem_specific":{"binaries":[{"binary_name":"lua-bitop","binary_version":"1.0.2-7"}],"priority_reason":"Potential RCE"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-31449.json"}},{"package":{"name":"redis","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/redis?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5:7.0.15-1ubuntu0.24.04.4"}]}],"versions":["5:7.0.12-1","5:7.0.14-1","5:7.0.14-2","5:7.0.15-1","5:7.0.15-1build1","5:7.0.15-1build2","5:7.0.15-1ubuntu0.24.04.1","5:7.0.15-1ubuntu0.24.04.2","5:7.0.15-1ubuntu0.24.04.3"],"ecosystem_specific":{"availability":"No subscription required","priority_reason":"Potential RCE","binaries":[{"binary_version":"5:7.0.15-1ubuntu0.24.04.4","binary_name":"redis"},{"binary_name":"redis-sentinel","binary_version":"5:7.0.15-1ubuntu0.24.04.4"},{"binary_version":"5:7.0.15-1ubuntu0.24.04.4","binary_name":"redis-server"},{"binary_name":"redis-tools","binary_version":"5:7.0.15-1ubuntu0.24.04.4"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-31449.json"}},{"package":{"name":"lua-bitop","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/lua-bitop?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0.2-7","1.0.3-1"],"ecosystem_specific":{"binaries":[{"binary_version":"1.0.3-1","binary_name":"lua-bitop"}],"priority_reason":"Potential RCE"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-31449.json"}},{"package":{"name":"lua-bitop","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/lua-bitop?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0.3-1","1.0.3-2"],"ecosystem_specific":{"binaries":[{"binary_name":"lua-bitop","binary_version":"1.0.3-2"}],"priority_reason":"Potential RCE"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-31449.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"high"}]}