Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2025-49844 PoC — Redis Lua Use-After-Free may lead to remote code execution

Source
Associated Vulnerability
Title:Redis Lua Use-After-Free may lead to remote code execution (CVE-2025-49844)
Description:Redis is an open source, in-memory database that persists on disk. Versions 8.2.1 and below allow an authenticated user to use a specially crafted Lua script to manipulate the garbage collector, trigger a use-after-free and potentially lead to remote code execution. The problem exists in all versions of Redis with Lua scripting. This issue is fixed in version 8.2.2. To workaround this issue without patching the redis-server executable is to prevent users from executing Lua scripts. This can be done using ACL to restrict EVAL and EVALSHA commands.
Readme
# ElastiCache Redis/Valkey Network Analysis Tools

Scripts to audit AWS ElastiCache Redis and Valkey clusters for network exposure.

## Prerequisites

- AWS CLI configured with appropriate credentials
- `jq` installed: `brew install jq`

## Scripts

### list-elasticache-clusters.sh
Lists all Redis/Valkey clusters across specified regions.

```bash
./list-elasticache-clusters.sh
```

### check-elasticache-network.sh
Analyzes network configuration for Redis/Valkey clusters in a single AWS account.

```bash
./check-elasticache-network.sh
```

**Output columns:**
- Region, ClusterName, Version, ARN, VPC, Subnet, Has_IGW_Route

### check-elasticache-network-multi-account.sh
Same analysis across multiple AWS accounts.

```bash
./check-elasticache-network-multi-account.sh accounts.txt
```

**accounts.txt format:** One AWS account ID per line. Requires AWS profiles configured matching account IDs.

### check-elasticache-network-by-arn.sh
Analyzes specific clusters by ARN.

```bash
./check-elasticache-network-by-arn.sh arns.txt
```

**arns.txt format:** One ElastiCache ARN per line. Non-Redis/Valkey engines flagged in Notes column.

## Configuration

**Regions checked:** ap-southeast-2, eu-central-1, eu-west-1, us-east-1, us-west-1, us-west-2

Edit the `regions` variable in scripts to modify.

## Output

All scripts output pipe-delimited tables. For better formatting:

```bash
./check-elasticache-network.sh | column -t -s '|'
```
File Snapshot

[4.0K] /data/pocs/fc76099e15d745f98f834c7d15406d7bbb576fe6 ├── [ 222] accounts.txt.example ├── [5.2K] check-elasticache-network-by-arn.sh ├── [8.7K] check-elasticache-network-multi-account.sh ├── [7.4K] check-elasticache-network.sh ├── [2.2K] list-elasticache-clusters.sh ├── [2.2K] list-elasticache-clusters.txt ├── [3.5K] list-elasticache-with-vpc.sh ├── [1.4K] README.md └── [ 256] test-arns.txt 1 directory, 9 files
Shenlong Bot has cached this for you
Remarks
    1. It is advised to access via the original source first.
    2. Local POC snapshots are reserved for subscribers — if the original source is unavailable, the local mirror is part of the paid plan.
    3. Mirroring, verifying, and maintaining this POC archive takes ongoing effort, so local snapshots are a paid feature. Your subscription keeps the archive online — thank you for the support. View subscription plans →