Critical RCE Vulnerability in Redis HyperLogLog (CVE-2025–32023
An out-of-bounds write in Redis's HyperLogLog command handling lets an authenticated attacker send a crafted string to corrupt memory and potentially execute arbitrary system commands. A public proof-of-concept exists and default configurations are exploitable.
In July 2025, Redis patched a critical vulnerability in its HyperLogLog implementation. The flaw allows remote code execution (RCE) under certain conditions, and a public proof-of-concept (PoC) exploit is already available.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely an out-of-bounds write when parsing specially crafted strings in the HyperLogLog command handlers (PFADD, PFCOUNT, PFMERGE).
Impact
An attacker with Redis command access could execute arbitrary system commands, take full control of the Redis server, leak or destroy data, and compromise surrounding infrastructure if Redis runs with elevated privileges.
What the attacker needed
Authenticated Redis command access; vulnerable Redis version
The fix
Upgrade Redis to a patched version (8.0.3, 7.4.5, 7.2.10 or 6.2.19 and above); as a temporary measure, deny HyperLogLog commands via ACLs.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
Redis is a database often used for caching. Its HyperLogLog feature counts unique items using special commands. A bug in how those commands handle input lets someone who can already run Redis commands write past the end of a memory buffer, which can crash the server or let them run their own programs on it.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.