Stack-based buffer overflow in Redis - CVE-2025-27151
Published: May 27, 2025
Vulnerability details
The vulnerability allows a remote attacker to execute arbitrary code on the target system.
The vulnerability exists due to a boundary error when parsing file names. A remote attacker can trick the victim into passing an overly long file path to the redis-check-aof cli, trigger a stack-based buffer overflow and execute arbitrary code on the target system.
Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.
Affected software
SUSE Linux Enterprise Server 15 SP5
Debian Linux
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise High Performance Computing LTSS 15
SUSE Linux Enterprise High Performance Computing ESPOS 15
SUSE Linux Enterprise High Performance Computing 15
SUSE Linux Enterprise Real Time 15
Fedora
Red Hat Enterprise Linux for ARM 64
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for Power, little endian
Server Applications Module
openSUSE Leap
openEuler
Anolis OS
redis7-debugsource
redis7
redis7-debuginfo
redis (Debian package)
redis
redis-debuginfo
redis-debugsource
redis-devel
redis-doc
valkey-devel
valkey-debugsource
valkey-debuginfo
valkey
valkey-compat-redis
valkey (Red Hat package)
How to mitigate CVE-2025-27151
redis7-debugsource - addressed in versions 7.0.8-150500.3.21.1, 7.0.8-150600.8.16.1
redis7 - addressed in versions 7.0.8-150500.3.21.1, 7.0.8-150600.8.16.1
redis7-debuginfo - addressed in versions 7.0.8-150500.3.21.1, 7.0.8-150600.8.16.1
redis (Debian package) - update to 5:7.0.15-1~deb12u5
redis - update to 7.2.9-2
redis-debuginfo - update to 7.2.9-2
redis-debugsource - update to 7.2.9-2
redis - update to 7.2.10-1
redis-devel - update to 7.2.10-1
redis-doc - update to 7.2.10-1
valkey-devel - update to 8.0.2-150700.3.5.1
valkey-debugsource - update to 8.0.2-150700.3.5.1
valkey-debuginfo - update to 8.0.2-150700.3.5.1
valkey - update to 8.0.2-150700.3.5.1
valkey-compat-redis - update to 8.0.2-150700.3.5.1
valkey - addressed in versions 8.0.4-1.el8, 8.0.4-1.el9, 8.0.4-1.fc41, 8.0.4-1.fc42, 8.0.6-1.el8, 8.0.6-1.el9, 8.0.6-1.fc41, 8.0.6-1.fc42
valkey (Red Hat package) - update to 8.0.4-1.el10_0
External References
Related Security Bulletins
- Stack-based buffer overflow in Redis
- Fedora EPEL 8 update for valkey
- Fedora 42 update for valkey
- Fedora EPEL 9 update for valkey
- Fedora 41 update for valkey
- Red Hat Enterprise Linux 10 update for valkey
- Red Hat Enterprise Linux 9 update for the redis:7 module
- Debian update for redis
- SUSE update for redis
- SUSE update for redis
- Anolis OS update for redis
- Fedora 42 update for valkey
- Fedora 41 update for valkey
- Fedora EPEL 8 update for valkey
- Fedora EPEL 9 update for valkey
- openEuler update for redis
- SUSE update for valkey