Vulnerability · Published May 29, 2025 · Assigned by GitHub_M

CVE-2025-27151redis-check-aof may lead to stack overflow and potential RCE

Medium 4.7

In plain English

A medium-severity improper input validation in redis from redis. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.1% (higher than 65% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)4.7Medium
Exploit odds (30 days)1.1%top 35.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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 & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:9redis7.2.10-1.module_el9.6.0+173+efaf9205ALSA-2025:12008
AlmaLinux:9redis-devel7.2.10-1.module_el9.6.0+173+efaf9205ALSA-2025:12008
AlmaLinux:9redis-doc7.2.10-1.module_el9.6.0+173+efaf9205ALSA-2025:12008
AlmaLinux:10valkey8.0.4-1.el10_0ALSA-2025:11401
AlmaLinux:10valkey-devel8.0.4-1.el10_0ALSA-2025:11401
Alpine:v3.20redict7.3.3-r1ALPINE-CVE-2025-27151
Alpine:v3.21redict7.3.3-r1ALPINE-CVE-2025-27151
Alpine:v3.22redict7.3.3-r1ALPINE-CVE-2025-27151
Alpine:v3.23redict7.3.3-r1ALPINE-CVE-2025-27151
Alpine:v3.24redict7.3.3-r1ALPINE-CVE-2025-27151
Alpine:v3.20redis7.2.9-r0ALPINE-CVE-2025-27151
Alpine:v3.21redis7.2.9-r0ALPINE-CVE-2025-27151
Alpine:v3.22redis8.0.2-r0ALPINE-CVE-2025-27151
Alpine:v3.23redis8.0.2-r0ALPINE-CVE-2025-27151
Alpine:v3.24redis8.0.2-r0ALPINE-CVE-2025-27151
Alpine:v3.20valkey7.2.9-r1ALPINE-CVE-2025-27151
Alpine:v3.21valkey7.2.9-r1ALPINE-CVE-2025-27151
Alpine:v3.22valkey8.1.1-r1ALPINE-CVE-2025-27151
Alpine:v3.23valkey8.1.1-r1ALPINE-CVE-2025-27151
Alpine:v3.24valkey8.1.1-r1ALPINE-CVE-2025-27151
Debian:14redict7.3.5+ds-1DEBIAN-CVE-2025-27151
Debian:12redis5:7.0.15-1~deb12u5DSA-5969-1
Debian:12redis5:7.0.15-1~deb12u5DEBIAN-CVE-2025-27151
Debian:13redis5:8.0.2-2DEBIAN-CVE-2025-27151
Debian:14redis5:8.0.2-2DEBIAN-CVE-2025-27151
Debian:13valkey8.1.1+dfsg1-1.1DEBIAN-CVE-2025-27151
Debian:14valkey8.1.1+dfsg1-1.1DEBIAN-CVE-2025-27151
Rocky Linux:9redis0:7.2.10-1.module+el9.6.0+32323+e27e860aRLSA-2025:12008
Rocky Linux:10valkey0:8.0.4-1.el10_0RLSA-2025:11401
Ubuntu:24.04:LTSredisno fix listedUBUNTU-CVE-2025-27151

Affected products (as reported)

VendorProductVersions
redis redis >= 7.0.0, < 8.0.2

Weakness: CWE-20, CWE-121 · Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H

References