CVE-2025-27151: redis-check-aof may lead to stack overflow and potential RCE

CVE-2025-27151 affects 46 listed versions of Redis in the Dawnsentry catalogue.

9.8CVSS critical
None knownexploitation
1%EPSS (next 30 days)
29 May 2025published

Affected products and versions

The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.

Redis

46 of 183 listed versions are affected. Fixed in 8.0.2. The newest release, 8.12.0, is not affected.

8.0.1 8.0.0 8.0 7.4.12 7.4.11 7.4.10 7.4.9 7.4.8 7.4.7 7.4.6 7.4.5 7.4.3 7.4.2 7.4.1 7.4.0 7.4.0-rc2 7.4.0-rc1 7.2.17 7.2.16 7.2.15 7.2.14 7.2.13 7.2.12 7.2.11 7.2.10 7.2.8 7.2.7 7.2.6 7.2.5 7.2.4 7.2.3 7.0.15 7.0.14 7.0.13 7.0.12 7.0.11 7.0.10 7.0.9 7.0.8 7.0.7 7.0.6 7.0.5 7.0.4 7.0.3 7.0.2 7.0.1

What it is

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.

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

Published by GitHub on 29 May 2025. Last changed 17 June 2026.

Sources

Check one version you run: look CVE-2025-27151 up, or pick a product and version in the quick lookup.

Updated 2 December 2026.