# CVE-2022-24834: Heap overflow issue with the Lua cjson library used by Redis

- Priority: **Routine**
- Reason: Not severe (CVSS 7, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2023-07-13 · Modified: 2025-02-13
- Aliases: ALPINE-CVE-2022-24834, MGASA-2023-0246, SUSE-SU-2023:2924-1, UBUNTU-CVE-2022-24834, DEBIAN-CVE-2022-24834
- Record: https://cvemate.com/vulnerability/CVE-2022-24834 · JSON: https://cvemate.com/vulnerability/CVE-2022-24834/json

## Description

```text
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.
```

## Signals

- CVSS: 8.8 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 52.468%, percentile 98.988%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine redis (Alpine Linux): ≥ 2.6.0, \< 7.0.12-r0 \| ≥ 7.0.0, \< 7.0.12-r0
- debian redis (Debian): \< 5:7.0.15-1~deb12u1 \| \< 5:7.0.12-1
- ubuntu lua-cjson (Ubuntu): All versions (No fix recorded) \| \< 2.1.0+dfsg-2.1ubuntu0.20.04.1~esm2 \| \< 2.1.0+dfsg-2.1ubuntu0.22.04.1~esm2
- ubuntu lua-cmsgpack (Ubuntu): All versions (No fix recorded)
- ubuntu redis (Ubuntu): \< 2:2.8.4-2ubuntu0.2+esm3 \| \< 2:3.0.6-1ubuntu0.4+esm2 \| \< 5:4.0.9-1ubuntu0.2+esm4 \| \< 5:5.0.7-2ubuntu0.1+esm2 \| \< 5:6.0.16-1ubuntu1+esm1
- fedoraproject fedora: 37 \| 38
- mageia redis (Mageia): \< 6.0.20-1.mga8
- redis redis: ≥ 6.0.0, \< 6.0.20 \| ≥ 2.6.0, \< 6.0.20 \| ≥ 6.2.0, \< 6.2.13 \| ≥ 7.0.0, \< 7.0.12
- opensuse redis&distro=openSUSE Leap 15.4 (openSUSE): \< 6.2.6-150400.3.22.1
- opensuse redis&distro=openSUSE Leap 15.5 (openSUSE): \< 6.2.6-150400.3.22.1
- suse redis&distro=SUSE Linux Enterprise Module for Server Applications 15 SP4 (SUSE Linux Enterprise): \< 6.2.6-150400.3.22.1
- suse redis&distro=SUSE Linux Enterprise Module for Server Applications 15 SP5 (SUSE Linux Enterprise): \< 6.2.6-150400.3.22.1

## References (first 20 of 22)

- <https://github.com/redis/redis/security/advisories/GHSA-p8x2-9v9q-c838>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TDNNH2ONMVNBQ6LUIAOAGDNFPKXNST5K/>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MIF5MAGYARYUMRFK7PQI7HYXMK2HZE5T/>
- <https://security.netapp.com/advisory/ntap-20230814-0006/>
- <https://security.alpinelinux.org/vuln/CVE-2022-24834>
- <https://advisories.mageia.org/MGASA-2023-0246.html>
- <https://bugs.mageia.org/show_bug.cgi?id=32103>
- <https://github.com/redis/redis/releases/tag/6.0.20>
- <https://www.suse.com/support/update/announcement/2023/suse-su-20232924-1/>
- <https://bugzilla.suse.com/1213193>
- <https://www.suse.com/security/cve/CVE-2022-24834>
- <https://ubuntu.com/security/CVE-2022-24834>
- <https://raw.githubusercontent.com/redis/redis/7.0/00-RELEASENOTES>
- <https://github.com/redis/redis/commit/936cfa464f371666c46bff59f7c4247d48973ec6>
- <https://github.com/redis/redis/commit/f6a7c9f9ec9354702cc3143310a24bf3d1507b03>
- <https://github.com/redis/redis/pull/12398>
- <https://access.redhat.com/security/cve/CVE-2022-24834>
- <https://ubuntu.com/security/notices/USN-6531-1>
- <https://www.cve.org/CVERecord?id=CVE-2022-24834>
- <https://ubuntu.com/security/notices/USN-8169-1>

---

Data as of 2026-12-05T04:58:46.500Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
