CVE-2025-27151
CRITICAL9.8EPSS 0.27%redis-check-aof may lead to stack overflow and potential RCE
Published: 5/29/2025Modified: 5/17/2026
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.
Affected packages (9)
- Alpine/redisfrom 0, < 7.0.15-r4
- Alpine/valkeyfrom 0, < 7.2.9-r1
- Bitnami/keydb>= 7.0.0
- Bitnami/redis>= 7.0.0, < 7.2.9, >= 7.3.0, < 7.4.4, >= 8.0.0, < 8.0.2
- Bitnami/valkeyfrom 0, < 7.2.10, >= 7.3.0, < 8.0.5, >= 8.1.0, < 8.1.2
- Debian/redictfrom 0, < 7.3.5+ds-1
- Debian/redisfrom 0, < 5:7.0.15-1~deb12u5
- Debian/redisfrom 0, < 5:7.0.15-1~deb12u5
- Debian/valkeyfrom 0, < 8.1.1+dfsg1-1.1
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | CRITICAL9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
References (6)
- ADVISORYhttps://security.alpinelinux.org/vuln/CVE-2025-27151
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2025-27151
- WEBhttps://github.com/redis/redis/commit/643b5db235cb82508e72f11c7b4bbfc7dc39be56
- WEBhttps://github.com/redis/redis/releases/tag/8.0.2
- WEBhttps://github.com/redis/redis/security/advisories/GHSA-5453-q98w-cmvm
- WEBhttps://nvd.nist.gov/vuln/detail/CVE-2025-27151