VDB

CVE-2025-27151

CVE-2025-27151 PUBLISHED CVSS 4.7 MEDIUM

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.

PackageEcosystemFixed in
redisBitnami8.0.2, 7.4.4, 7.2.9
redis-7.2Chainguard7.2.12-r2
redictAlpine7.3.3-r1
redis-7.2Wolfi7.2.12-r2
valkeyBitnami8.1.2, 8.0.5, 7.2.10
valkeyBitnami8.1.2, 8.0.5, 7.2.10

Risk scores

CVSS 3.1
4.7
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H

Affected products

VendorProductVersions
redisredis>= 7.0.0, < 8.0.2
chainguardredis-7.20
alpineredict0
chainguardpy3-redis*
wolfiredis-7.20
redisredis7.0.0
wolfiredis-7.40
alpineredis0, 0, 0
alpinevalkey0, 0
chainguardredis-7.40

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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›