CVE-2022-24834

Heap overflow issue with the Lua cjson library used by Redis

State
Published
Severity
7.0 High
Published
Jul 13, 2023
Updated
Feb 13, 2025
Reserved
Feb 10, 2022

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.0 HighCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:HGitHub_M

Weaknesses

  • CWE-122 Heap-based Buffer Overflow
  • CWE-680 Integer Overflow to Buffer Overflow

Affected Products

ProductVersions
redisredis
  • >= 7.0.0, < 7.0.12Affected
  • >= 6.2.0, < 6.2.13Affected
  • >= 6.0.0, < 6.0.20Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.