CVE-2025-27151
redis-check-aof may lead to stack overflow and potential RCE
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.
INFO
Published Date :
May 29, 2025, 9:15 a.m.
Last Modified :
Aug. 21, 2025, 10:28 p.m.
Remotely Exploit :
Yes !
Source :
[email protected]
CVSS Scores
Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
---|---|---|---|---|---|---|
CVSS 3.1 | MEDIUM | [email protected] | ||||
CVSS 3.1 | CRITICAL | [email protected] |
Solution
- Update Redis to version 8.0.2 or later.
- Apply security patches provided by Redis.
- Review Redis configuration for hardening.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2025-27151
.
URL | Resource |
---|---|
https://github.com/redis/redis/commit/643b5db235cb82508e72f11c7b4bbfc7dc39be56 | Patch |
https://github.com/redis/redis/releases/tag/8.0.2 | Release Notes |
https://github.com/redis/redis/security/advisories/GHSA-5453-q98w-cmvm | Third Party Advisory |
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2025-27151
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2025-27151
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2025-27151
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2025-27151
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
Initial Analysis by [email protected]
Aug. 21, 2025
Action Type Old Value New Value Added CVSS V3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Added CPE Configuration OR *cpe:2.3:a:redis:redis:*:*:*:*:*:*:*:* versions from (including) 7.0.0 up to (excluding) 8.0.2 Added Reference Type GitHub, Inc.: https://github.com/redis/redis/commit/643b5db235cb82508e72f11c7b4bbfc7dc39be56 Types: Patch Added Reference Type GitHub, Inc.: https://github.com/redis/redis/releases/tag/8.0.2 Types: Release Notes Added Reference Type GitHub, Inc.: https://github.com/redis/redis/security/advisories/GHSA-5453-q98w-cmvm Types: Third Party Advisory -
New CVE Received by [email protected]
May. 29, 2025
Action Type Old Value New Value Added 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. Added CVSS V3.1 AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H Added CWE CWE-20 Added CWE CWE-121 Added Reference https://github.com/redis/redis/commit/643b5db235cb82508e72f11c7b4bbfc7dc39be56 Added Reference https://github.com/redis/redis/releases/tag/8.0.2 Added Reference https://github.com/redis/redis/security/advisories/GHSA-5453-q98w-cmvm