Skip to content
Fencer Vulns
high 7.0

CVE-2022-24834 in the critical feed json

Heap overflow issue with the Lua cjson library used by Redis

published 2023-07-10 3 y ago modified 2026-09-08 2 mo ago also BIT-keydb-2022-24834 , BIT-redis-2022-24834 , BIT-valkey-2022-24834 , EUVD-2022-29620 , GHSA-p8x2-9v9q-c838

cvss
7.0
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
41.4%
EPSS 41.4% chance of exploitation in 30 days, percentile 98%
public exploits
0
none known

Summary

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.

Patch / fix

  • bitnami keydb 6.0.20, 6.2.13, 7.0.12
  • bitnami redis 6.0.20, 6.2.13, 7.0.12
  • bitnami valkey 6.0.20, 6.2.13, 7.0.12
  • redis redis 6.0.20, 6.2.13, 7.0.12
  • redis Debian 12 5:7.0.15-1~deb12u1
  • redis Debian 14, Debian 13 5:7.0.12-1

debian advisories DEBIAN-CVE-2022-24834

  • redis Ubuntu Pro 14.04 LTS 2:2.8.4-2ubuntu0.2+esm3
  • redis Ubuntu Pro 16.04 LTS 2:3.0.6-1ubuntu0.4+esm2
  • redis Ubuntu Pro 18.04 LTS 5:4.0.9-1ubuntu0.2+esm4
  • redis Ubuntu Pro 20.04 LTS 5:5.0.7-2ubuntu0.1+esm2
  • redis Ubuntu Pro 22.04 LTS 5:6.0.16-1ubuntu1+esm1
  • lua-cjson Ubuntu Pro 20.04 LTS 2.1.0+dfsg-2.1ubuntu0.20.04.1~esm2
  • lua-cjson Ubuntu Pro 22.04 LTS 2.1.0+dfsg-2.1ubuntu0.22.04.1~esm2

ubuntu advisories UBUNTU-CVE-2022-24834

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • redis RHEL 9 6.2.17-1.el9_5
  • redis RHEL 8 6.2.17-1.module+el8.10.0+22680+748527fd

red hat advisories RHSA-2025:0693RHSA-2025:0595

  • redis SLES for SAP 15 SP3, SLES for SAP 15 SP2, SLES 15 SP3-LTSS +9 more 6.0.14-150200.6.26.1
  • redis7 SLE Module for Server Applications 15 SP5, openSUSE Leap 15.5 7.0.8-150500.3.3.1
  • redis SLE Module for Server Applications 15 SP5, SLE Module for Server Applications 15 SP4, openSUSE Leap 15.5 +1 more 6.2.6-150400.3.22.1

suse advisories SUSE-SU-2023:3407-1SUSE-SU-2023:2925-1SUSE-SU-2023:2924-1

  • redis openSUSE Tumbleweed 7.0.12-1.1

opensuse advisories openSUSE-SU-2024:13047-1

  • redis AlmaLinux 9 6.2.17-1.el9_5
  • redis AlmaLinux 8 6.2.17-1.module_el8.10.0+3946+3de613d5

almalinux advisories ALSA-2025:0693ALSA-2025:0595

  • redis Rocky Linux 9 6.2.17-1.el9_5
  • redis Rocky Linux 8 6.2.17-1.module+el8.10.0+1923+5b85c6a7

rocky linux advisories RLSA-2025:0693RLSA-2025:0595

  • redis Alpine 3.24, Alpine 3.23, Alpine 3.22 +6 more 7.0.12-r0

alpine advisories ALPINE-CVE-2022-24834

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • redis CBL-Mariner 2.0 6.2.13-2

azure linux advisories AZL-27477

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2022-24834 updated cvss 7.0

redis: heap overflow in the lua cjson and cmsgpack libraries

  • Red Hat 3scale API Management Platform 2 3scale-amp2/system-rhel7, 3scale-amp2/backend-rhel8
    affected: workaround, no fix available, no fix planned “Prevent users from executing Lua scripts. This can be done using ACL to restrict EVAL and EVALSHA commands.”
  • Red Hat Software Collections rh-redis6-redis
    affected: workaround, no fix planned “Prevent users from executing Lua scripts. This can be done using ACL to restrict EVAL and EVALSHA commands.”
  • Red Hat Enterprise Linux AppStream (v. 8) redis 6.2.17-1.module+el8.10.0+22680+748527fd
    fixed: vendor fix “Prevent users from executing Lua scripts. This can be done using ACL to restrict EVAL and EVALSHA commands.” RHSA-2025:0595
  • Red Hat Enterprise Linux AppStream (v. 9) redis 6.2.17-1.el9_5
    fixed: vendor fix “Prevent users from executing Lua scripts. This can be done using ACL to restrict EVAL and EVALSHA commands.” RHSA-2025:0693
  • Red Hat Advanced Cluster Management for Kubernetes 2 rhacm2/search-api-rhel8 Red Hat Ansible Automation Platform 1.2 ansible-tower Red Hat Enterprise Linux 9 redis-6-container Red Hat Fuse 7 redis Red Hat OpenStack Platform 16.1 openstack-redis-container, openstack-redis-base-container Red Hat OpenStack Platform 16.2 openstack-redis-container
    +4 more products
    Red Hat OpenStack Platform 17.0 openstack-redis-container Red Hat OpenStack Platform 17.1 openstack-redis-container Red Hat OpenStack Platform 18.0 openstack-redis-container Red Hat Satellite 6 rubygem-gitlab-sidekiq-fetcher, tfm-rubygem-gitlab-sidekiq-fetcher
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

cisa ICSA-24-046-11 updated cvss 7.0

Siemens SCALANCE XCM-/XRM-300

  • Siemens SCALANCE XCH328 (6GK5328-4TS01-2EC2) <V2.4 Siemens SCALANCE XCM324 (6GK5324-8TS01-2AC2) <V2.4 Siemens SCALANCE XCM328 (6GK5328-4TS01-2AC2) <V2.4 Siemens SCALANCE XCM332 (6GK5332-0GA01-2AC2) <V2.4 Siemens SCALANCE XRH334 (24 V DC, 8xFO, CC) (6GK5334-2TS01-2ER3) <V2.4 Siemens SCALANCE XRM334 (2x230 V AC, 8xFO) (6GK5334-2TS01-4AR3) <V2.4
    +5 more products
    Siemens SCALANCE XRM334 (2x230 V AC, 12xFO) (6GK5334-3TS01-4AR3) <V2.4 Siemens SCALANCE XRM334 (24 V DC, 8xFO) (6GK5334-2TS01-2AR3) <V2.4 Siemens SCALANCE XRM334 (24 V DC, 12xFO) (6GK5334-3TS01-2AR3) <V2.4 Siemens SCALANCE XRM334 (230 V AC, 8xFO) (6GK5334-2TS01-3AR3) <V2.4 Siemens SCALANCE XRM334 (230 V AC, 12xFO) (6GK5334-3TS01-3AR3) <V2.4
    affected: fixed in V2.4 support.industry.siemens.com

Facts from CISA's republication of the vendor's own advisory (CSAF); the linked advisory is the authoritative source. CISA notification · csaf

CISA SSVC

Exploitation
Proof of concept is public
Automatable
no
Technical impact
total
Assessed
2 y ago

Exploit prediction

41.41% chance of exploitation in the next 30 days, higher than 98% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CNA 3.1 7.0 CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD 3.1 8.8 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
OSV 3.1 8.8 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected packages

ecosystem package affected fixed in
bitnami keydb
>=2.6.0, <6.0.20
>=6.2.0, <6.2.13
>=7.0.0, <7.0.12
6.0.20
6.2.13
7.0.12
bitnami redis
>=2.6.0, <6.0.20
>=6.2.0, <6.2.13
>=7.0.0, <7.0.12
6.0.20
6.2.13
7.0.12
bitnami valkey
>=2.6.0, <6.0.20
>=6.2.0, <6.2.13
>=7.0.0, <7.0.12
6.0.20
6.2.13
7.0.12

Affected products

  • redis redis

Classification

Weakness
  • CWE-122 Heap-based Buffer Overflow
  • CWE-680 Integer Overflow to Buffer Overflow
Technology feeds

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.

The maintainers of redis/redis published their own advisory on GitHub. Reviewed sources take precedence over it.