Buffer overflow in Redis
CVE-2022-24834
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.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.0 (High). Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.414, 98.7th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Redis — versions >= 7.0.0, < 7.0.12, >= 6.2.0, < 6.2.13, >= 6.0.0, < 6.0.20
- Fedoraproject Fedora — versions 37, 38
Weakness classification (CWE)
Public exploits and proof-of-concept code
3 public repositories with exploit or proof-of-concept code for this CVE:
- convisolabs/CVE-2022-24834 (22 stars, last pushed 2023-07-28)
- DukeSec97/CVE-2022-24834- (last pushed 2025-03-28)
- Nullx97/CVE-2022-24834- (last pushed 2025-03-28)
Also mentioned in 10 other repositories (0xor0ne/awesome-list, ARPSyndicate/cve-scores, bachkhoasoft/awesome-list-ks, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- https://github.com/redis/redis/security/advisories/GHSA-p8x2-9v9q-c838 (Vendor Advisory)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/… (Mailing List, Third Party Advisory)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/… (Mailing List, Third Party Advisory)
- security.netapp.com/advisory/ntap-20230814-0006/
This CVE has public exploit evidence. See the latest CVEs with public exploits.