CVE-2025-27151

CRITICALCVSS 9.8/10EPSS 0.80%

Last modified

CVE-2025-27151 is a critical-severity vulnerability rated 9.8/10 on the CVSS scale. 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. EPSS estimates a 0.80% chance of exploitation in the next 30 days.

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.

Metrics

CVSS 3.1
9.8/10

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

EPSS Probability
0.80%

52.0th percentile

Probability of exploitation in the next 30 days. Learn more

Weakness Enumeration

Affected Software

VendorProductVersions
RedisRedis>= 7.0.0, < 7.2.9
RedisRedis>= 7.4.0, < 7.4.4
RedisRedis>= 8.0.0, < 8.0.2

References

Timeline

Published
Last Modified
Status
Analyzed

Frequently Asked Questions

What is 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.
How severe is CVE-2025-27151?
CVE-2025-27151 has a CVSS score of 9.8/10 (CRITICAL severity). The EPSS model estimates a 0.80% probability of exploitation in the next 30 days.
How do I fix CVE-2025-27151?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2025-27151?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST