CVE-2025-27151: redis Improper Input Validation
Vulnerability summary
CVE-2025-27151 is a critical (CVSS 9.8) Improper Input Validation vulnerability in redis. EPSS estimates a 0.98% chance of exploitation in the next 30 days, higher than 61.5% of scored vulnerabilities.
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
0.98%
Chance of exploitation in the next 30 days
Percentile
62%
Versus all other CVEs
30-day change
+0.02 pp
From 0.95% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
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 OverflowA stack-based buffer overflow condition is a condition where the buffer being overwritten is allocated on the stack (i.e., is a local variable or, rarely, a parameter to a function).
Affected systems
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)
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
Alpine2 products
- redis≥ 7.0.0, < 7.0.15-r4 | ≥ 7.0.0, < 7.2.9-r0
- valkey< 7.2.9-r1 | < 8.1.1-r1
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 · 21 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