CVE-2025-27151
published 2025-05-29CVE-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…
PriorityP356critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
EPSS
0.80%
52.7th percentile
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
13 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | redict | < redict 7.3.5+ds-1 (forky) | redict 7.3.5+ds-1 (forky) |
| debian | redis | < redict 7.3.5+ds-1 (forky) | redict 7.3.5+ds-1 (forky) |
| debian | valkey | < redict 7.3.5+ds-1 (forky) | redict 7.3.5+ds-1 (forky) |
| lfprojects | valkey | >= 0 < 8.1.1+dfsg1-1.1 | 8.1.1+dfsg1-1.1 |
| lfprojects | valkey | >= 0 < 8.1.1+dfsg1-1.1 | 8.1.1+dfsg1-1.1 |
| msrc | azl3_valkey_8.0.3-3_on_azure_linux_3.0 | — | — |
| redis | redis | — | — |
| redis | redis | >= 0 < 5:7.0.15-1~deb12u5 | 5:7.0.15-1~deb12u5 |
| redis | redis | >= 0 < 5:8.0.2-2 | 5:8.0.2-2 |
| redis | redis | >= 0 < 5:8.0.2-2 | 5:8.0.2-2 |
| redis | redis | >= 7.0.0 < 7.2.9 | 7.2.9 |
| redis | redis | >= 7.4.0 < 7.4.4 | 7.4.4 |
| redis | redis | >= 8.0.0 < 8.0.2 | 8.0.2 |
CVSS provenance
nvdv3.19.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
osv9.8CRITICAL
vendor_debian4.7MEDIUM
vendor_msrc4.7MEDIUM
vendor_redhat4.7MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
CVE-2025-27151: Redis is an open source, in-memory database that persists on disk
osv·2025-05-29·CVSS 9.8
CVE-2025-27151 [CRITICAL] CVE-2025-27151: Redis is an open source, in-memory database that persists on disk
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.
Red Hat
redis: Redis Stack Buffer Overflow
vendor_redhat·2025-05-29·CVSS 4.7
CVE-2025-27151 [MEDIUM] CWE-121 redis: Redis Stack Buffer Overflow
redis: Redis Stack Buffer Overflow
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.
A flaw was found in Redis. Using memcpy with the strlen filepath when copying a user-supplied file path into a fixed-size stack buffer in redis-check-aof results in a stack-based buffer overflow. This flaw allows a local attacker to trigger the overflow by providing a specially crafted file path, allowing potential code execution. The prim
Microsoft
redis-check-aof may lead to stack overflow and potential RCE
vendor_msrc·2025-05-13·CVSS 4.7
CVE-2025-27151 [MEDIUM] CWE-20 redis-check-aof may lead to stack overflow and potential RCE
redis-check-aof may lead to stack overflow and potential RCE
FAQ: Is Azure Linux the only Microsoft product that includes this open-source library and is therefore potentially affected by this vulnerability?
One of the main benefits to our customers who choose to use the Azure Linux distro is the commitment to keep it up to date with the most recent and most secure versions of the open source libraries with which the distro is composed. Microsoft is committed to transparency in this work which is why we began publishing CSAF/VEX in October 2025. See this blog post for more information. If impact to additional products is identified, we will update the CVE to reflect this.
Mariner: Mariner
GitHub_M: GitHub_M
Customer Action Required: Yes
Remediation: CBL-Mariner Releases
Reference: ht
Debian
CVE-2025-27151: redict - Redis is an open source, in-memory database that persists on disk. In versions s...
vendor_debian·2025·CVSS 4.7
CVE-2025-27151 [MEDIUM] CVE-2025-27151: redict - Redis is an open source, in-memory database that persists on disk. In versions s...
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.
Scope: local
forky: resolved (fixed in 7.3.5+ds-1)
sid: resolved (fixed in 7.3.5+ds-1)
No detection rules found.
No public exploits indexed.
2025-05-29
Published