Skip to main content
Mallory
HighPublic exploitVulnerability

CVE-2026-25243: Heap-based buffer overflow in Redis and Valkey RESTORE

Published May 5, 2026 · Updated 26 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS7.7High · v4
EPSS1.9%80th percentile
CISA KEVNoNot listed
In the wildReported4 exploitation records in Mallory
Vendor
Redis
IdentifiersCVE-2026-25243CWE-122 · Heap-based Buffer Overflow

CVE-2026-25243 is a heap-based buffer overflow in the processing of serialized values supplied to the Redis RESTORE command. Inconsistent validation and parsing of legacy hash-zipmap objects can cause an out-of-bounds heap write, potentially providing an arbitrary-write primitive and remote code execution. Exploitation requires an authenticated attacker authorized to execute RESTORE. The vulnerability also affects Valkey, with exploitation demonstrated against version 7.2.11.

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 can execute arbitrary code with the privileges of the Redis or Valkey server process, compromising database confidentiality and integrity and potentially exposing other resources accessible to that service account. Memory corruption can also crash the service and cause denial of service. Active exploitation was observed on October 16–17, 2026, including scripted attacks that wiped the Redis keyspace. Root access and broader infrastructure compromise are not inherent outcomes and require additional privileges, vulnerabilities, or deployment weaknesses.

Mitigation

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

Deny RESTORE through ACL rules for untrusted users and application accounts that do not strictly require data-restoration functionality. Restrict Redis and Valkey network access to trusted clients and enforce authentication and least-privilege ACLs. Network segmentation and service-process confinement can reduce exposure and post-exploitation impact, but do not replace patching.

Remediation

Patch, then assume compromise.

Install the latest vendor-supported security update for the deployed Redis or Valkey branch. Initial Redis fixes were released in versions 6.2.22, 7.2.14, 7.4.9, 8.2.6, 8.4.3, and 8.6.3. A subsequent incomplete-fix issue was assigned CVE-2026-66373, so use a current release incorporating both fixes rather than relying solely on these initial minimum versions. For Debian 13, comprehensive Redis fixes are available in version 5:8.0.2-3+deb13u3; the Valkey security update is available in version 8.1.1+dfsg1-3+deb13u3. Later security-fixed packages are also suitable.

Public exploits

Exploits

2 exploits validated by Mallory's analysis. Hidden: 3 rejected by Mallory's analysis as not a working exploit.

View more in app →
CVE-2026-25243Repository contains a full exploit research package for CVE-2026-25243, a Redis RESTORE deserialization flaw in legacy zipmap handling that yields a heap over-read and a Redis-only double-free. The repo is not just documentation: it includes multiple Python PoCs covering the full progression from crash/DoS (`exploits/poc_dos_overread.py`), to double-free trigger (`exploits/poc_doublefree.py`), to silent heap overlap/type confusion (`exploits/poc_typeconfusion.py`), and finally several remote code execution variants (`exploits/poc_rce_aslr.py`, `poc_rce_aslr_nodebug.py`, `poc_rce_aslr_off.py`, `poc_rce_aslr_pie_rop.py`, `poc_rce_aslr_selfcal.py`). Core capability: the exploit sends crafted Redis RESP commands over TCP, especially `RESTORE key 0 <payload>`, where the payload is a malformed but CRC-valid serialized `RDB_TYPE_HASH_ZIPMAP` object. The malformed zipmap uses an overlong 5-byte length encoding that passes validation but causes `zipmapNext()` to mis-stride, leading to an over-read and, in Redis, a double-free in the hash zipmap loader. Under default jemalloc this double-free is silent, enabling deterministic heap overlap. The exploit then forges internal Redis dictionary structures to obtain arbitrary heap read and ultimately code execution. The main RCE paths are: (1) a `system()` path that forges `dict->type->hashFunction = system` and triggers execution via `HGET hd <cmd>`, keeping the worker alive; and (2) a more self-contained PIE/JOP/ROP path in `poc_rce_aslr_pie_rop.py` that avoids libc offsets entirely, leaks runtime addresses via `EVAL 'return tostring(redis.call)'` and heap over-read, derives PIE base from leaked pointers, pivots the stack through a forged dictType, and calls `execve@plt` with `/bin/sh -c <cmd>`. The latter is the most advanced exploit in the repo and targets default Redis with DEBUG disabled and ASLR enabled. Repository structure: `Dockerfile` builds a vulnerable Redis lab environment from a specific upstream commit and also produces an ASan build for crash demonstrations. `demo.sh` launches Redis and demonstrates that the bug is not DoS-only by proving heap overlap. `README.md` and `WRITEUP.md` provide detailed vulnerability and exploitation analysis, affected versions, mitigations, and reliability notes. `evidence/` and `screenshots/` contain proof logs showing ASan traces, overlap confirmation, ASLR-on RCE success, and repeated reliability runs. Fingerprintable targets and behaviors are centered on Redis TCP port 6379 and Redis commands such as RESTORE, EVAL, DEBUG OBJECT, SETRANGE, SMEMBERS, HSET, SADD, HGET, and CONFIG SET. Default proof commands write to `/tmp/pwned*` files. Overall, this is a genuine operational exploit repository demonstrating remote code execution against vulnerable Redis instances, not merely a detector or theoretical PoC.dinosn · Disclosed Jun 13, 2026 · python · bash · network · webOperationalCVE-2026-25243-debugfreeThis repository is a compact exploit package for CVE-2026-25243, containing one Python PoC (exploit.py) plus README and a detailed technical writeup. The exploit is not part of a common framework. Its purpose is to achieve DEBUG-free remote code execution against vulnerable Redis by abusing a crafted RESTORE payload that triggers a silent jemalloc double-free during zipmap-to-listpack conversion. Repository structure: README.md gives scope, caveats, affected/fixed versions, and usage; WRITEUP.md explains the vulnerability, heap grooming, arbitrary-read primitive, deterministic offsets, and final control-flow redirection; exploit.py is the operational PoC using only Python stdlib. The Python script includes a build-specific PROFILE with offsets for luaRedisCallCommand, free@GOT, libc free/system, and two exploit-specific heap-relative offsets (OFF_FK and OFF_BLOBROBJ). It implements CRC64 and RDB payload generation for a valid RESTORE object, a minimal RESP client, retry logic, and the full exploit chain. Main exploit capability: remote command execution as the Redis process. The chain is: trigger double-free with RESTORE; groom allocator state so two class-64 allocations alias the same chunk; forge a set dictionary to create an arbitrary-read primitive via SMEMBERS; leak a Lua closure pointer using EVAL; derive PIE from clo+33, derive libc/system from free@GOT+1, and derive blob_base from blob_robj+11; place a fake dictType structure containing hashFunction=system into a large Redis blob; then forge a hash object's dict->type pointer so HGET h2 <cmd> becomes system(<cmd>). The exploit supports arbitrary shell commands via --cmd and retries multiple times because the author notes roughly 50-75% success per attempt. Fingerprintable targets/endpoints are primarily Redis network access on host:port (default 127.0.0.1:6379) and Redis command endpoints rather than HTTP URLs. The exploit requires command reachability to RESTORE, EVAL, SMEMBERS, HGET, CONFIG SET, SETRANGE, SADD, and SET. No external C2, download URL, or hardcoded remote IP/domain is present. The only explicit filesystem path observed is /tmp/pwned in the writeup as an example command redirection target. Overall, this is a real exploit PoC rather than a detector. It is operational but build-sensitive: the README explicitly warns that OFF_BLOBROBJ may require recalibration for the exact target build and allocation sequence. Despite that caveat, the code and documentation clearly implement an end-to-end Redis RCE technique for vulnerable pre-patch versions.dinosn · Disclosed Jul 2, 2026 · python · markdown · network · webOperational
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
RedisRedisapplication
FAQ

Frequently asked questions

Is CVE-2026-25243 exploited in the wild?
Yes. As of Nov 4, 2026, Mallory has reports of exploitation in the wild.
Is there a public exploit for CVE-2026-25243?
Yes. Mallory tracks 2 public exploits or proofs of concept for CVE-2026-25243, the earliest disclosed Jun 13, 2026.
Is there a patch for CVE-2026-25243?
Install the latest vendor-supported security update for the deployed Redis or Valkey branch. Initial Redis fixes were released in versions 6.2.22, 7.2.14, 7.4.9, 8.2.6, 8.4.3, and 8.6.3.
What products are affected by CVE-2026-25243?
Redis.
How severe is CVE-2026-25243?
CVE-2026-25243 has a CVSS v4 score of 7.7 (High) and an EPSS score of 1.9% (80th percentile) as of Nov 4, 2026.
Activity feed

Recent activity

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

View more in app →
malware newsNews · Oct 27, 2026An insecure neighbor: how a vulnerability chain led to an isolation bypass in cloud infrastructure - Malware News - Malware Analysis, News and IndicatorsA Valkey RESTORE vulnerability caused by inconsistent validation and parsing of legacy hash-zipmap RDB objects. The mismatch can produce an out-of-bounds heap write and potentially an arbitrary-write primitive. Researchers exploited the flaw against managed Valkey 7.2.11, obtained code execution despite systemd restrictions, and established SSH access to the host. This was authorized bug-bounty exploitation, not reported malicious exploitation in the wild. The article states that the provider fixed all identified security issues, but does not identify a patched Valkey release.Read more ↗securelist ruNews · Oct 27, 2026Как могут взломать ваше облако: разбор реальной цепочки уязвимостей | SecurelistA heap-overflow vulnerability in Valkey's RESTORE processing of serialized RDB objects using legacy hash-zipmap encoding. Inconsistent length interpretation between validation and parsing permits out-of-bounds memory access and adjacent heap corruption, potentially enabling arbitrary writes. The researcher exploited Valkey 7.2.11, bypassed execution restrictions, and established persistent SSH access during the authorized assessment.Read more ↗securelistNews · Oct 27, 2026How your cloud could get hacked: an analysis of a real-world vulnerability chain | SecurelistA heap-overflow vulnerability in Valkey's RESTORE handling of serialized RDB objects using legacy hash-zipmap encoding. Inconsistent length interpretation between validation and parsing can cause an out-of-bounds write into adjacent heap chunks. Researchers developed an exploit against managed Valkey 7.2.11, achieved code execution despite systemd sandbox restrictions, and established persistent host access. The exploitation described was authorized research, not evidence of malicious exploitation in the wild.Read more ↗tenable nessus pluginsNews · Oct 27, 2026Redis < 7.2.14 / 7.4.x < 7.4.9 / 8.2.x < 8.2.6 / 8.4.x < 8.4.3... | Tenable®One of three CVEs grouped under improper validation of serialized values in Redis RESTORE. The report describes authentication bypass and arbitrary command execution by an authenticated remote attacker, without distinguishing the individual CVEs' mechanics. Fixed versions listed are Redis 7.2.14, 7.4.9, 8.2.6, 8.4.3, 8.6.3, and 8.8-RC1 or later for the corresponding branches. Detection is version-based, not an exploitation test.Read more ↗
+15 more in the timeline. Sign up to see them
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 activity37Community discussion across Reddit, Mastodon, and other social sources.