Buffer overflow in Redis
CVE-2025-27151
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.
Vulnerability class: Drupalgeddon 2 (CVE-2018-7600)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 4.7 (Medium). Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H.
EPSS exploit prediction
EPSS: 0.010 (59.8th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 60th percentile — 59.8% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.010 · newest: 0.010 · change: 0.000
Affected products
- Redis — versions >= 7.0.0, < 8.0.2
Weakness classification (CWE)
Public proof-of-concept exploits
References
- github.com/redis/redis/security/advisories/GHSA-5453-q98w-cmvm (Third Party Advisory)
- github.com/redis/redis/commit/643b5db235cb82508e72f11c7b4bbfc7dc39be56 (Patch)
- github.com/redis/redis/releases/tag/8.0.2 (Release Notes)
Frequently asked questions
- What is CVE-2025-27151?
- CVE-2025-27151 is a medium-severity vulnerability in Redis, classified under Improper Input Validation. CVSS score: 4.7/10. Published 2025-05-29.
- How severe is CVE-2025-27151?
- Medium severity. CVSS v3 base score is 4.7 out of 10.
- Is CVE-2025-27151 known to be exploited?
- 1 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.