Heap overflow issue with the Lua cjson library used by Redis
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2022-24834
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 20:21 UTC · Revision 1
Source evidence
Heap overflow issue with the Lua cjson library used by Redis
core-osv · Original sourcePublished 13 Jul 2023, 14:35 UTC
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.
osv:CVE-2022-24834
Complete source record
{
"id": "2c44c30f69b7b3693808bf0f9a5711c5ab8f87b0099c45ea0fb1960e297c91f9",
"url": "https://osv.dev/vulnerability/CVE-2022-24834",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Heap overflow issue with the Lua cjson library used by Redis",
"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.",
"evidence": "osv:CVE-2022-24834",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2022-24834",
"aliases": [
"BIT-keydb-2022-24834",
"BIT-redis-2022-24834",
"BIT-valkey-2022-24834",
"CVE-2022-24834",
"GHSA-p8x2-9v9q-c838"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/redis/redis",
"type": "GIT",
"events": [
{
"introduced": "5eec376c2f56dbf617cc8bc19476fd5431cd664d"
},
{
"fixed": "de0d9632b52849d9b7ea52408b1d681d771c5b46"
},
{
"introduced": "445aa844b946a8f1bc21ac8554b44adb1ecb4018"
},
{
"fixed": "24c0bf5c5b17a9694286658b40ad410014a98939"
},
{
"introduced": "d375595d5e3ae2e5c29e6c00a2dc3d60578fd9fc"
},
{
"fixed": "8e73f9d34821a937165884f13a2981883f44a074"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:redis:redis:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "2.6.0"
},
{
"fixed": "6.0.20"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:redis:redis:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.2.13"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:redis:redis:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "7.0.0"
},
{
"fixed": "7.0.12"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"7.0.11",
"6.2.12",
"6.2.11",
"7.0.10",
"7.0.9",
"7.0.8",
"6.2.10",
"6.2.9",
"6.2.8",
"7.0.7",
"7.0.6",
"7.0.5",
"6.2.7",
"7.0.4",
"7.0.3",
"7.0.2",
"7.0.1",
"7.0.0",
"6.2.6",
"6.2.5",
"6.2.4",
"6.2.3",
"6.2.2",
"6.2.1",
"6.2.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-24834.json"
}
}
],
"modified": "2026-10-28T02:30:32.153776338Z",
"provider": "osv",
"references": [
"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MIF5MAGYARYUMRFK7PQI7HYXMK2HZE5T/",
"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TDNNH2ONMVNBQ6LUIAOAGDNFPKXNST5K/",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/24xxx/CVE-2022-24834.json",
"https://github.com/redis/redis/security/advisories/GHSA-p8x2-9v9q-c838",
"https://nvd.nist.gov/vuln/detail/CVE-2022-24834",
"https://security.netapp.com/advisory/ntap-20230814-0006/"
],
"provider_metadata": {
"cwe_ids": [
"CWE-122",
"CWE-680"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/24xxx/CVE-2022-24834.json"
}
},
"related_cves": [
{
"value": "CVE-2022-24834",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 498938,
"published_at": "2023-07-13T14:35:41.181+00:00"
}