CVE-2025-27151: redis-check-aof may lead to stack overflow and potential RCE

Published May 29, 2025
·
Updated

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.

Affected Software

4 affected components
Redis redis>=7.0.0<8.0.2
Redis redis>=7.0.0<7.2.9
Redis redis>=7.4.0<7.4.4
Redis redis>=8.0.0<8.0.2

Event History

May 29, 2025
CVE Published
via MITRE·09:07 AM
Data Sourced
via MITRE·09:07 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·09:15 AM
RemedyDescriptionSeverityWeaknessAffected Software
Data Sourced
via Red Hat·10:01 AM
DescriptionSeverityAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-27151?

CVE-2025-27151 has been classified as a high severity vulnerability due to the potential for stack-based buffer overflow.

2

How do I fix CVE-2025-27151?

To mitigate CVE-2025-27151, upgrade Redis to version 8.0.2 or later, where the vulnerability has been resolved.

3

Which versions of Redis are affected by CVE-2025-27151?

CVE-2025-27151 affects Redis versions from 7.0.0 to before 8.0.2.

4

What is the impact of CVE-2025-27151 on Redis users?

The impact of CVE-2025-27151 can lead to potential exploitation, allowing attackers to execute arbitrary code on the system.

5

Is there a workaround for CVE-2025-27151 if I can't upgrade Redis?

There are no known workarounds for CVE-2025-27151, and upgrading to a secure version is strongly recommended.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203