CVE-2025-27151

CVE-2025-27151 is a medium-severity vulnerability in Redis with a CVSS 3.x base score of 4.7. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-20.

Key facts

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.

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 3.x base score of 4.7, rated medium severity. It is exploitable over local access with high attack complexity, requires low privileges and no user interaction. Impact on confidentiality is none, integrity none, and availability high.
Is CVE-2025-27151 being actively exploited?
It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 1% (52nd percentile), an estimate of the probability of exploitation in the next 30 days.
What products are affected by CVE-2025-27151?
CVE-2025-27151 affects Redis. See the affected-products list for the exact vulnerable versions.
How do I fix CVE-2025-27151?
Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
Does CVE-2025-27151 have an EU (EUVD) identifier?
Yes. CVE-2025-27151 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2025-16375.
When was CVE-2025-27151 published?
CVE-2025-27151 was published on 2025-05-29 and last updated on 2026-06-17.

References

Affected products (1)

More vulnerabilities in Redis

All CVEs affecting Redis →

Other CWE-20 (Improper Input Validation) vulnerabilities

Browse all CWE-20 (Improper Input Validation) vulnerabilities →