CVE-2025-27151: redis-check-aof may lead to stack overflow and potential RCE
Vulnerability summary
CVE-2025-27151 is a critical (CVSS 9.8) Improper Input Validation vulnerability in redis. EPSS estimates a 1.08% chance of exploitation in the next 30 days, higher than 66.1% of scored vulnerabilities.
Not severe (CVSS 4.7, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 10 · Related 7Timeline
- 29-05-2025PublishedVulnerability first disclosed.
- 29-05-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
6 scores · 6 sources · 1 version- CVE.orgCNA4.7MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:HDiffers
- OSV · AlpineEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · UbuntuEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · ChainguardEcosystem advisory · calculated4.7MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:HDiffers
EPSS trend
Probability
1.08%
Chance of exploitation in the next 30 days
Percentile
66%
Versus all other CVEs
30-day change
Increase +0.02 pp
From 1.06% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-20Improper Input ValidationThe product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.
- CWE-121Stack-based Buffer OverflowThe product writes past the end of a buffer that was allocated on the stack.
Affected systems
Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard12 products
- py3-redisAll versions (No fix recorded)
- py3.10-redisAll versions (No fix recorded)
- py3.11-redisAll versions (No fix recorded)
- py3.12-redisAll versions (No fix recorded)
- py3.13-redisAll versions (No fix recorded)
Alpine3 products
- redict< 7.3.3-r1
- redis≥ 7.0.0, < 8.0.2-r0 | ≥ 7.0.0, < 7.0.15-r4 | ≥ 7.0.0, < 7.2.9-r0 | ≥ 8.0.0, < 8.0.2-r0
- valkey< 7.2.9-r1 | < 8.1.1-r1
Debian3 products
- redict< 7.3.5+ds-1
- redis< 5:7.0.15-1~deb12u5 | < 5:8.0.2-2
- valkey< 8.1.1+dfsg1-1.1
Opensuse1 product
- redis&distro=openSUSE Leap 15.6< 7.2.4-150600.3.12.1
Redis1 product
- redis≥ 7.0.0, < 8.0.2 | ≥ 7.0.0, < 7.2.9 | ≥ 7.4.0, < 7.4.4 | ≥ 8.0.0, < 8.0.2
Suse1 product
- redis&distro=SUSE Linux Enterprise Module for Server Applications 15 SP6< 7.2.4-150600.3.12.1
Ubuntu1 product
- redisAll versions (No fix recorded)
7 vendors · 22 products
References
12 links- github.com/redis/redis/security/advisories/GHSA-5453-q98w-cmvmX Refsource CONFIRMREPORTAdvisoryThird Party Advisory
- github.com/redis/redis/commit/643b5db235cb82508e72f11c7b4bbfc7dc39be56X Refsource MISCREPORTFIXPatch