Skip to main content
Mallory
HighPublic exploitVulnerability

CVE-2022-24834: Redis Lua cjson Heap Overflow

Published Jul 13, 2023 · Updated 1 month ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS8.8High · v3.1
EPSS41.4%99th percentile
CISA KEVNoNot listed
In the wildNonePublic exploit, no exploitation reported
Vendors
Fedora ProjectRedis
IdentifiersCVE-2022-24834CWE-122 · Heap-based Buffer Overflow

CVE-2022-24834 is a heap-based buffer overflow in the cjson library used by Redis Lua scripting. A specially crafted Lua script can corrupt heap memory and may potentially lead to remote code execution. The issue affects Redis versions with Lua scripting support from version 2.6 onward and is limited to authenticated, authorized users.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation causes heap corruption and may potentially permit remote code execution in the Redis server process.

Mitigation

If you can’t patch tonight, do this now.

Restrict access to Redis so that only trusted administrators and applications can authenticate and execute Lua scripts. Review and minimize user permissions, disable or avoid untrusted Lua script execution where operationally feasible, and limit network exposure of Redis instances until patched. Monitoring for abnormal crashes or misuse of Lua scripting can help reduce exposure, but patching is the primary mitigation.

Remediation

Patch, then assume compromise.

Upgrade Redis to version 7.0.12, 6.2.13, 6.0.20, or a later fixed release.

Public exploits

Exploits

2 exploits validated by Mallory's analysis.

View more in app →
CVE-2022-24834-This repository contains a Python exploit script (exploit.py) targeting Redis servers vulnerable to CVE-2022-24834. The exploit works by sending a malicious Lua script to the target Redis server using the EVAL command, which executes a bash reverse shell payload. The attacker must provide the Redis host and port, their own listening host and port, and a Lua script file containing the payload (with a [CMD] placeholder for the shell command). The script sets up a netcat listener on the attacker's machine to receive the reverse shell. The exploit leverages the pwn library for network communication and expects the target Redis server to be accessible and vulnerable. The repository also includes a minimal README and a GitHub Actions workflow for Python package testing, but the core functionality is in exploit.py.DukeSec97 · Disclosed Aug 18, 2024 · python · networkOperationalCVE-2022-24834This repository contains an operational exploit for CVE-2022-24834, a heap overflow vulnerability in the cjson library of the Lua interpreter embedded in Redis. The exploit consists of two main files: 'exploit.lua', which is a Lua script that leverages the vulnerability to achieve arbitrary code execution, and 'redis_cve-2022-24834.py', a Python script that automates the exploitation process. The Python script connects to a target Redis server (default port 6379), starts a reverse shell listener (default port 4444), and sends the malicious Lua script via the EVAL command. The Lua script is dynamically patched with a reverse shell payload that connects back to the attacker's machine. The exploit has been tested successfully against Redis versions 6.2.12 and 7.0.11 on Ubuntu 20.04 and Debian 11. The attack vector is network-based, requiring access to the Redis command interface. The exploit provides remote code execution capabilities, resulting in a reverse shell on the target system.convisolabs · Disclosed Jul 28, 2023 · lua · python · networkPoC
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
Fedora ProjectFedoraoperating_system
RedisRedisapplication
FAQ

Frequently asked questions

Is CVE-2022-24834 exploited in the wild?
As of Oct 16, 2026, Mallory has no reports of CVE-2022-24834 being exploited in the wild. It is not listed in CISA KEV.
Is there a public exploit for CVE-2022-24834?
Yes. Mallory tracks 2 public exploits or proofs of concept for CVE-2022-24834, the earliest disclosed Jul 28, 2023.
Is there a patch for CVE-2022-24834?
Upgrade Redis to version 7.0.12, 6.2.13, 6.0.20, or a later fixed release.
What products are affected by CVE-2022-24834?
Redis and Fedora Project Fedora.
How severe is CVE-2022-24834?
CVE-2022-24834 has a CVSS v3.1 score of 8.8 (High) and an EPSS score of 41.4% (99th percentile) as of Oct 16, 2026.
Activity feed

Recent activity

1 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activityCommunity discussion across Reddit, Mastodon, and other social sources.