CVE-2025-27151

MEDIUM
Published May 29, 2025 Modified Dec 23, 2025 CWE-20 CWE-121

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.

Is your site exposed to CVE-2025-27151?

Run a free security scan — no signup, results in seconds.

CVSS v3.1 Score

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

Weakness Type (CWE)

CWE-20 Improper Input Validation
CWE-121 CWE-121

Affected Products

Vendor Product
redis redis
redis redis
redis redis

References

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. It has a CVSS v3.1 base score of 4.7 (MEDIUM).
How severe is CVE-2025-27151? +
CVE-2025-27151 has a CVSS v3.1 score of 4.7 out of 10, rated MEDIUM. This is a medium-severity vulnerability that should be remediated as part of regular maintenance.
What products are affected by CVE-2025-27151? +
CVE-2025-27151 affects products from redis, specifically: redis. Check the affected products table above for specific version ranges.
How do I check if I'm vulnerable to CVE-2025-27151? +
You can use Secably's free Website Scanner to check your website for known vulnerabilities. For infrastructure scanning, use the Port Scanner to identify exposed services that may be affected. Check the vendor advisories linked above for specific patch and version information.

Related Vulnerabilities

Don't wait for an exploit

Scan your website for vulnerabilities like CVE-2025-27151 — free, no signup required.