ALPINE-CVE-2025-27151
Record from OSV · 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 |
|---|---|---|
| valkey | Alpine:v3.24 | 8.1.1-r1 |
| valkey | Alpine:v3.23 | 8.1.1-r1 |
| valkey | Alpine:v3.20 | 7.2.9-r1 |
| valkey | Alpine:v3.21 | 7.2.9-r1 |
| redis | Alpine:v3.19 | 7.2.9-r0 |
| valkey | Alpine:v3.22 | 8.1.1-r1 |
| redis | Alpine:v3.18 | 7.0.15-r4 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Alpine:v3.24 | valkey | 0 |
| Alpine:v3.23 | valkey | 7.2.5-r0, 7.2.5-r1, 7.2.5-r2 |
| Alpine:v3.20 | valkey | 0, 7.2.9-r0, 7.2.8-r0 |
| Alpine:v3.21 | valkey | 0, 7.2.5-r0, 7.2.5-r2 |
| Alpine:v3.19 | redis | 6.0.9-r0, 2.4.14-r0, 2.4.14-r1 |
| Alpine:v3.22 | valkey | 7.2.9-r0, 7.2.8-r0, 7.2.7-r0 |
| Alpine:v3.18 | redis | 2.4.14-r0, 2.4.14-r1, 2.4.14-r2 |
Timeline
- May 29, 2025 CVE Published
- Jul 8, 2026 CVE Updated
- Aug 8, 2026 Distribution Patch
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln ALPINE-CVE-2025-27151
vulnetix vdb fixes ALPINE-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/ALPINE-CVE-2025-27151/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart