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)

EPSS: 0.008 (52.8th percentile) — read the EPSS interpretation.

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.

Affected products

  • Redis — versions >= 7.0.0, < 8.0.2

Weakness classification (CWE)

Public proof-of-concept exploits

References

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.