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

- Severity: High 7.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 41.4%, higher than 98% of CVEs (2026-12-01)
- Published: 2023-07-13T14:35:41.181Z
- Modified: 2026-09-08T08:48:19.213Z
- Also known as: BIT-KEYDB-2022-24834, BIT-REDIS-2022-24834, BIT-VALKEY-2022-24834, GHSA-p8x2-9v9q-c838
- Weaknesses: CWE-122, CWE-680
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- 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.

(As written by CVE List.)

## Affected

- redis redis: >= 7.0.0, < 7.0.12; >= 6.2.0, < 6.2.13; >= 6.0.0, < 6.0.20; from 7.0.0 before 7.0.12; from 6.2.0 before 6.2.13; from 6.0.0 before 6.0.20; from 2.6.0 before 6.0.20
- fedoraproject fedora: 37; 38
- keydb (Bitnami): from 2.6.0 before 6.0.20; from 6.2.0 before 6.2.13; from 7.0.0 before 7.0.12
- redis (Bitnami): from 2.6.0 before 6.0.20; from 6.2.0 before 6.2.13; from 7.0.0 before 7.0.12
- valkey (Bitnami): from 2.6.0 before 6.0.20; from 6.2.0 before 6.2.13; from 7.0.0 before 7.0.12

## Every score

- GitHub_M: CVSS:3.1 7.0 High `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Bitnami Vulnerability Database: rating High

## References

- <https://github.com/redis/redis/security/advisories/GHSA-p8x2-9v9q-c838> (advisory, vendor-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TDNNH2ONMVNBQ6LUIAOAGDNFPKXNST5K/> (advisory, mailing-list, third-party-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MIF5MAGYARYUMRFK7PQI7HYXMK2HZE5T/> (advisory, mailing-list, third-party-advisory, web)
- <https://security.netapp.com/advisory/ntap-20230814-0006/> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-24834> (web)

## Sources

- CVE List: [CVE-2022-24834](https://www.cve.org/CVERecord?id=CVE-2022-24834), CVE Terms of Use, modified 2025-02-13
- NVD: [CVE-2022-24834](https://nvd.nist.gov/vuln/detail/CVE-2022-24834), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-KEYDB-2022-24834](https://osv.dev/vulnerability/BIT-KEYDB-2022-24834), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-REDIS-2022-24834](https://osv.dev/vulnerability/BIT-REDIS-2022-24834), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-VALKEY-2022-24834](https://osv.dev/vulnerability/BIT-VALKEY-2022-24834), Apache-2.0, modified 2025-10-14

---

Page: https://cve.day/CVE-2022-24834 · Whole record: https://cve.day/CVE-2022-24834.json · Rebuilt by cve.day 2026-11-25T22:58:19.465Z
