
Everything so far was groundwork. This is the flaw — the first entry in the
corpus file, and the most fundamental: a use-after-free that becomes remote code
execution, with no fix ever coming for older versions.
The corpus file, first entry
From /mnt/d/k/internetworking/c2-c3-bugs/06-redis-pre-6.2.19-cves.md — the
first CVE in its advisory table:
CVE-2026-23479 — Use-after-free in the unblock client flow — a
blocked client evicted while re-executing a blocked command — may lead to
remote code execution. Severity 7.7 High.
What a use-after-free actually is
Redis implements blocking commands (BLPOP, BRPOP, WAIT and friends): a
client asks for something that isn't there yet, and Redis parks that client —
saves a pointer to it in a waiting list — until the data arrives.
Resuming is a pointer lookup. And here is the bug: the unblock path can evict
a blocked client while its command is being re-executed. Eviction frees the
client's memory back to the allocator. The re-execution path still holds the
old pointer and writes through it.
The freed memory has been rented to someone else — another connection, another
buffer, another key. A write through a freed pointer is a use-after-free:
the exact bug class that heap-grooms from "corrupted memory" into arbitrary
code execution in any process that parses attacker-influenced input. Redis
parses attacker-influenced input all day.
Why it is the first, and why it is the most fundamental
It is the first entry in the 06 file's CVE table — but "first" is
accidental. What the file makes unavoidable is this line:
"Older releases (pre-6.2.19) remain vulnerable. There is no patch for 5.x,
and none for any 6.x before 6.2.19."
That is what makes it fundamental: a remote-code-execution vulnerability in
the #8 database on Earth, in every version published before mid-2022's 6.2.19
line — with no fix in existence, and none planned. The versions that can be
patched will be patched. The versions that already lost the support race are
just... there. Running. Being discovered in shodan scans, internal audits and
ransomware playbooks.
The exploitation chain, step by step
- Obtain the "authenticated" position the CVE requires. Remember Part 6:
"authenticated" often means emptyrequirepass, a shared password in a
.env, or a compromised app server that already had a Redis client. - Arrange the block/evict timing (CVE-2026-23479) or craft a payload
for the RESTORE de-serializer (CVE-2026-25243, same batch, also High). - A parser mis-computes an offset or length; heap memory is corrupted.
- With heap grooming, control flow is redirected — code execution in the
Redis process. - From inside: read other users' cached sessions (account takeover with no
application involvement at all), inject commands into queues, or write a
file to disk and take the host.
Why the design allowed it
Three reasons, each traced back to earlier parts:
- The trusted-network assumption was never revisited (Part 6) — the flaw's
"authenticated" requirement was never a real barrier. - C with manual memory management (Part 5) — every variable-length parser is
a potential UAF. Five memory-safety bugs in one advisory cycle is the density
evidence. - The support model — 5.x and pre-6.2.19 6.x are abandoned by the patch
pipeline by definition. There is no "wait for the fix".
The score reality
The corpus scores Redis 6.28 (rank 14 of 26) because every CVE in the batch
requires an authenticated user — the scoring model rewards severity and
reach. But reality rewards being the easiest thing to reach, and an
unpatched Redis behind an open door is exactly that. On the classic calculus,
a mid-table bug; on the probability calculus, the highest-likelihood
real-world breach in the corpus.
Next: Part 8 — the version sprawl that leaves the flaw alive, and the license
fork that split the update path.

Comments (0)