CVE-2024-31449

published 7 Oct 2024 · updated 4 Nov 2026

Lua library commands may lead to stack overflow and RCE in Redis

7.0HighCVSS 7.0EPSS 4%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 4%. Fixed in redis 6.2.16 and redis 7.2.6.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Redisredis>=2.8.18 <6.2.16, >=7.2.0 <7.2.6, =7.4.0, >=2.6 <6.2.16, >=7.0.0 <7.2.6, >=7.3.0 <7.4.16.2.16, 7.2.6

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Redis, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2024-31449 severity on Zeptric[![CVE-2024-31449](https://zeptric.io/badge/cve/CVE-2024-31449.svg)](https://zeptric.io/cve/CVE-2024-31449)