CVE-2022-24834
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| redis6 | Amazon Linux | 6.2.13-1.amzn2023.0.1 |
| redis | Alpine | 7.0.12-r0 |
| redis6-devel | Amazon Linux | 6.2.13-1.amzn2023.0.1 |
| redis | Bitnami | 7.0.12, 6.2.13, 6.0.20 |
| redis6-doc | Amazon Linux | 6.2.13-1.amzn2023.0.1 |
| keydb | Bitnami | 7.0.12, 6.2.13, 6.0.20 |
| valkey | Bitnami | 7.0.12, 6.2.13, 6.0.20 |
| keydb | Bitnami | 7.0.12, 6.2.13, 6.0.20 |
| redis | redis | 7.0.12, 6.2.13, 6.0.20 |
| valkey | Bitnami | 7.0.12, 6.2.13, 6.0.20 |
| harbor-redis | DHI | 7.0.12, 6.2.13, 6.0.20 |
| redis | Bitnami | 7.0.12, 6.2.13, 6.0.20 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| redis | redis | >= 7.0.0, < 7.0.12, >= 6.2.0, < 6.2.13, >= 6.0.0, < 6.0.20 |
| amazon:2023 | redis6 | 0 |
| alpine | redis | 0 |
| amazon:2023 | redis6-devel | 0 |
| amazon:2023 | redis6-doc | 0 |
| redis | redis | 6.0.0, 7.0.0, 6.2.0 |
| redis | redis | 7.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
References
- https://github.com/redis/redis/security/advisories/GHSA-p8x2-9v9q-c838 x_refsource_CONFIRM