Skip to content
OpenAdvisories
High · 7.0 Public exploit CVE-2022-24834 EUVD-2022-29620

Heap overflow issue with the Lua cjson library used by Redis

Published Jul 13, 2023 · Updated Feb 13, 2025 · Assigned by GitHub_M

Description

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.

Affected products

VendorProductAffectedFixed
redis redis >= 7.0.0, < 7.0.12, >= 6.2.0, < 6.2.13, >= 6.0.0, < 6.0.20 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 redis 5:7.0.12-1 —
Debian 13 redis 5:7.0.12-1 —
Debian 12 redis 5:7.0.15-1~deb12u1 DSA-5610-1
Debian 11 redis 5:6.0.16-1+deb11u3 DLA-3885-1
ReleasePackageFixed inAdvisory
Ubuntu 26.10 lua-cjson +1 No fix yet —
Ubuntu 26.04 LTS lua-cjson +1 No fix yet —
Ubuntu 25.10 lua-cjson +1 No fix yet —
Ubuntu 24.04 LTS lua-cjson No fix yet —
Ubuntu 18.04 LTS lua-cjson No fix yet —
Show 6 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 16.04 LTS lua-cjson No fix yet —
Ubuntu Pro 22.04 LTS lua-cjson 2.1.0+dfsg-2.1ubuntu0.22.04.1~esm2 —
Ubuntu Pro 22.04 LTS redis 5:6.0.16-1ubuntu1+esm1 USN-6531-1
Ubuntu Pro 20.04 LTS lua-cjson 2.1.0+dfsg-2.1ubuntu0.20.04.1~esm2 —
Ubuntu Pro 20.04 LTS redis 5:5.0.7-2ubuntu0.1+esm2 USN-6531-1
Ubuntu Pro 18.04 LTS redis 5:4.0.9-1ubuntu0.2+esm4 USN-6531-1
Ubuntu Pro 16.04 LTS redis 2:3.0.6-1ubuntu0.4+esm2 USN-6531-1
Ubuntu Pro 14.04 LTS redis 2:2.8.4-2ubuntu0.2+esm3 USN-6531-1
ReleasePackageFixed inAdvisory
RHEL 9 redis +2 6.2.17-1.el9_5 RHSA-2025:0693
RHEL 8 redis +2 6.2.17-1.module+el8.10.0+22680+748527fd RHSA-2025:0595

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 9 redis +2 6.2.17-1.el9_5 ALSA-2025:0693
AlmaLinux 8 redis +2 6.2.17-1.module_el8.10.0+3946+3de613d5 ALSA-2025:0595

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 9 redis 6.2.17-1.el9_5 RLSA-2025:0693
Rocky Linux 8 redis 6.2.17-1.module+el8.10.0+1923+5b85c6a7 RLSA-2025:0595
ReleasePackageFixed inAdvisory
SLES 15 SP5 redis 6.2.6-150400.3.22.1 SUSE-SU-2023:2924-1
SLES 15 SP5 redis7 7.0.8-150500.3.3.1 SUSE-SU-2023:2925-1
SLES 15 SP4 redis 6.2.6-150400.3.22.1 SUSE-SU-2023:2924-1
SLES 15 SP3 redis 6.0.14-150200.6.26.1 SUSE-SU-2023:3407-1
SLES 15 SP2 redis 6.0.14-150200.6.26.1 SUSE-SU-2023:3407-1
Show 9 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 15 SP3 redis 6.0.14-150200.6.26.1 SUSE-SU-2023:3407-1
SLES for SAP 15 SP2 redis 6.0.14-150200.6.26.1 SUSE-SU-2023:3407-1
SLE Real Time 15 SP3 redis 6.0.14-150200.6.26.1 SUSE-SU-2023:3407-1
SLE HPC 15 SP3 redis 6.0.14-150200.6.26.1 SUSE-SU-2023:3407-1
SLE HPC 15 SP2 redis 6.0.14-150200.6.26.1 SUSE-SU-2023:3407-1
SUSE Manager Server 4.2 redis 6.0.14-150200.6.26.1 SUSE-SU-2023:3407-1
SUSE Manager Proxy 4.2 redis 6.0.14-150200.6.26.1 SUSE-SU-2023:3407-1
SUSE Enterprise Storage 7.1 redis 6.0.14-150200.6.26.1 SUSE-SU-2023:3407-1
SUSE Enterprise Storage 7 redis 6.0.14-150200.6.26.1 SUSE-SU-2023:3407-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed redis 7.0.12-1.1 openSUSE-SU-2024:13047-1
openSUSE Leap 15.5 redis 6.2.6-150400.3.22.1 SUSE-SU-2023:2924-1
openSUSE Leap 15.5 redis7 7.0.8-150500.3.3.1 SUSE-SU-2023:2925-1
openSUSE Leap 15.4 redis 6.2.6-150400.3.22.1 SUSE-SU-2023:2924-1
ReleasePackageFixed inAdvisory
Alpine v3.24 redis 7.0.12-r0 —
Alpine v3.23 redis 7.0.12-r0 —
Alpine v3.22 redis 7.0.12-r0 —
Alpine v3.21 redis 7.0.12-r0 —
Alpine v3.20 redis 7.0.12-r0 —
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 redis 7.0.12-r0 —
Alpine v3.18 redis 7.0.12-r0 —
Alpine v3.17 redis 7.0.12-r0 —
Alpine v3.16 redis 7.0.12-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 redis6 +2 6.2.13-1.amzn2023.0.1 ALAS2023-2023-291

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 2 (CBL-Mariner) redis 6.2.13-2 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 9 redis +2 6.2.17-1.el9_5 ELSA-2025-0693
Oracle Linux 8 redis +2 6.2.17-1.0.1.module+el8.10.0+90491+f9002f77 ELSA-2025-0595

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 2 repositories

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 20

References