CVE-2025-27151
redis-check-aof may lead to stack overflow and potential RCE
9.8
CRITICAL
CVSS 3.1
EPSS 0.80%
Description
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.
How to fix CVE-2025-27151
To remediate CVE-2025-27151, upgrade the affected package to a fixed version below.
- —upgrade to 7.0.15-r4 or later
- —upgrade to 7.2.9-r1 or later
Is CVE-2025-27151 being exploited?
Low — EPSS is 0.8%, meaning exploitation activity has not been observed at scale.
Affected packages (2)
- >= 7.0.0, < 7.0.15-r4
- from 0, < 7.2.9-r1
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | CRITICAL9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |