
Parts 6–8 named the pieces. This is the whole machine, end to end — the paths
by which "literally just a cache" becomes "the attacker owns the host".
Chain A — the classic file-write path (no bug required)
This is the oldest, most-repeated Redis takeover, and it works entirely with
legitimate commands:
- Reach port 6379. Internet-facing, VPN-jumped, or a compromised app
server that already had a client. - No password. Empty
requirepass— or the password from a.envin the
compromise that got you here. CONFIG SET dir— point persistence at something Redis can write:
a cron directory, an SSH key directory, a web root.CONFIG SET dbfilename— name the file you want created (e.g.rootin
cron.d).SAVE— Redis writes your payload as a "database dump" into that
directory, with the name you chose.- Execute — cron runs your file; SSH trusts your key; the web server
serves your script. Then harvest: sessions, tokens, queue contents, other
credentials Redis was trusted with.
No CVE. No memory corruption. Just an open door and a persistence feature
wearing a weapon. This is why the industry treats an exposed Redis as already
compromised.
Chain B — the 2026 memory-safety shortcut
The new batch compresses the chain:
- Reach the server as above.
- CVE-2026-25243 — a crafted
RESTORE key 0 <payload>deserializes with
insufficient validation → invalid memory access → possible RCE. - CVE-2026-23479 — block-then-evict a client → use-after-free → heap
groomed into code execution (7.7 High).
Where Chain A needs write permissions to a useful directory, the memory path
works against the process itself — and against every pre-6.2.19 install
(Part 8).
The blast radius, stated without drama
When Redis is taken, what dies with it?
- Sessions — every logged-in user, no application involvement needed.
- Cached credentials and tokens — API keys, short-lived tokens, cached
auth material. - Queues — jobs can be injected as easily as read.
- Locks and coordination — the exact primitives other services trust to
serialize work. - The host — via Chain A's file write, or Chain B's process compromise.
And because Redis sits in front of the real database (Part 4), the attacker
does not need the database. They stand on the fastest access layer in the
stack and harvest what flows through it.
Detection: mostly silence
The honest detection picture is grim:
- Visible: unusual
CONFIGcommands are sometimes logged in slow-log; a
spike inSAVE/BGSAVEcan show in monitoring — if anyone watches Redis
statistics, which almost nobody does. - Silent: memory-safety exploitation leaves no protocol artefact at all; an
RCE throughRESTORElooks like an ordinary write. The file-write chain
leaves new files on disk — visible only to host-level file monitoring, which
cache nodes rarely have.
The race is not detection vs attacker. The race is the attacker's scan vs
your upgrade — and the attacker's scan runs every day.
Next: Part 10 — the way out: the five lines that close the door, the upgrade
matrix, and the honest residual risk.


Comments (0)