VDB

CVE-2022-24834

CVE-2022-24834 PUBLISHED CVSS 7 HIGH

Heap overflow issue with the Lua cjson library used by Redis

Reported by github_m · Published July 13, 2023

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
redis6Amazon Linux6.2.13-1.amzn2023.0.1
redisAlpine7.0.12-r0
redis6-develAmazon Linux6.2.13-1.amzn2023.0.1
redisBitnami7.0.12, 6.2.13, 6.0.20
redis6-docAmazon Linux6.2.13-1.amzn2023.0.1
keydbBitnami7.0.12, 6.2.13, 6.0.20
valkeyBitnami7.0.12, 6.2.13, 6.0.20
keydbBitnami7.0.12, 6.2.13, 6.0.20
redisredis7.0.12, 6.2.13, 6.0.20
valkeyBitnami7.0.12, 6.2.13, 6.0.20
harbor-redisDHI7.0.12, 6.2.13, 6.0.20
redisBitnami7.0.12, 6.2.13, 6.0.20

Risk scores

CVSS 3.1
7
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
redisredis>= 7.0.0, < 7.0.12, >= 6.2.0, < 6.2.13, >= 6.0.0, < 6.0.20
amazon:2023redis60
alpineredis0
amazon:2023redis6-devel0
amazon:2023redis6-doc0
redisredis6.0.0, 7.0.0, 6.2.0
redisredis7.0.0, 6.2.0, 6.0.0

Timeline

  • Jul 10, 2023 CVE Published
  • Jul 14, 2023 EPSS Score (30 in total, the first dated here)
  • Jul 2, 2026 Coalition ESS Score
  • Nov 22, 2026 Distribution Patch (3 in total, the first dated here)
  • Nov 22, 2026 Security Advisory (4 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2022-24834
vulnetix vdb fixes CVE-2022-24834

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-24834/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›