CVE-2025-27151
redis-check-aof may lead to stack overflow and potential RCE
Reported by github_m · Published May 29, 2025
Redis is an open source, in-memory database that persists on disk. In versions starting from 7.0.0 to before 8.0.2, a stack-based buffer overflow exists in redis-check-aof due to the use of memcpy with strlen(filepath) when copying a user-supplied file path into a fixed-size stack buffer. This allows an attacker to overflow the stack and potentially achieve code execution. This issue has been patched in version 8.0.2.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| redis | Bitnami | 8.0.2, 7.4.4, 7.2.9 |
| redis-7.2 | Chainguard | 7.2.12-r2 |
| redict | Alpine | 7.3.3-r1 |
| redis-7.2 | Wolfi | 7.2.12-r2 |
| valkey | Bitnami | 8.1.2, 8.0.5, 7.2.10 |
| valkey | Bitnami | 8.1.2, 8.0.5, 7.2.10 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| redis | redis | >= 7.0.0, < 8.0.2 |
| chainguard | redis-7.2 | 0 |
| alpine | redict | 0 |
| chainguard | py3-redis | * |
| wolfi | redis-7.2 | 0 |
| redis | redis | 7.0.0 |
| wolfi | redis-7.4 | 0 |
| alpine | redis | 0, 0, 0 |
| alpine | valkey | 0, 0 |
| chainguard | redis-7.4 | 0 |
Timeline
- May 27, 2025 CVE Published
- May 29, 2025 EPSS Score (30 in total, the first dated here)
- May 29, 2025 Coalition ESS Score (13 in total, the first dated here)
- May 29, 2025 CVE Updated
- Dec 19, 2025 Security Advisory (7 in total, the first dated here)
- Aug 10, 2026 Distribution Patch (2 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-27151
vulnetix vdb fixes CVE-2025-27151
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-27151/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/redis/redis/security/advisories/GHSA-5453-q98w-cmvm x_refsource_CONFIRM
- https://github.com/redis/redis/commit/643b5db235cb82508e72f11c7b4bbfc7dc39be56 x_refsource_MISC
- https://github.com/redis/redis/releases/tag/8.0.2 x_refsource_MISC