CVEfocus › CVE database › CVE-2025-27151

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

CVSS 4.7 MediumEPSS 1.1% (higher than 65% of CVEs)Published 2025-05-29Updated 2025-05-29Assigner: GitHub_M

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.

CWE-121CWE-20

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

34Fixed
1Fix pending
7Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04redisNot affected
vulnerable_code_not_present
Ubuntu 25.10redisNot affected
vulnerable_code_not_present
Ubuntu 24.04redisFix pendingUBUNTU-CVE-2025-27151
Debian 14redisFixed5:8.0.2-2DEBIAN-CVE-2025-27151
Debian 14valkeyFixed8.1.1+dfsg1-1.1DEBIAN-CVE-2025-27151
Debian 13redisFixed5:8.0.2-2DEBIAN-CVE-2025-27151
Debian 13valkeyFixed8.1.1+dfsg1-1.1DEBIAN-CVE-2025-27151
Debian 12redisFixed5:7.0.15-1~deb12u5DEBIAN-CVE-2025-27151
Red Hat Enterprise Linux 10valkeyFixed0:8.0.4-1.el10_0RHSA-2025:11401
Red Hat Enterprise Linux 10valkey-develFixed0:8.0.4-1.el10_0RHSA-2025:11401
Red Hat Enterprise Linux 9redisFixed
Fix deferred
0:7.2.10-1.module+el9.6.0+23332+115a3b01RHSA-2025:12008
Red Hat Enterprise Linux 9redis-develFixed
Fix deferred
0:7.2.10-1.module+el9.6.0+23332+115a3b01RHSA-2025:12008
Red Hat Enterprise Linux 9redis-docFixed
Fix deferred
0:7.2.10-1.module+el9.6.0+23332+115a3b01RHSA-2025:12008
Red Hat Enterprise Linux 9valkeyNot affected
Red Hat Enterprise Linux 9valkey-develNot affected
Red Hat Enterprise Linux 8redisNot affected
Red Hat Enterprise Linux 8redis-develNot affected
Red Hat Enterprise Linux 8redis-docNot affected
AlmaLinux 10valkeyFixed8.0.4-1.el10_0ALSA-2025:11401
AlmaLinux 10valkey-develFixed8.0.4-1.el10_0ALSA-2025:11401
AlmaLinux 9redisFixed7.2.10-1.module_el9.6.0+173+efaf9205ALSA-2025:12008
AlmaLinux 9redis-develFixed7.2.10-1.module_el9.6.0+173+efaf9205ALSA-2025:12008
AlmaLinux 9redis-docFixed7.2.10-1.module_el9.6.0+173+efaf9205ALSA-2025:12008
Rocky Linux 10valkeyFixed0:8.0.4-1.el10_0RLSA-2025:11401
Rocky Linux 9redisFixed0:7.2.10-1.module+el9.6.0+32323+e27e860aRLSA-2025:12008
Alpine Linux 3.24redictFixed7.3.3-r1ALPINE-CVE-2025-27151
Alpine Linux 3.24redisFixed8.0.2-r0ALPINE-CVE-2025-27151
Alpine Linux 3.24valkeyFixed8.1.1-r1ALPINE-CVE-2025-27151
Alpine Linux 3.23redictFixed7.3.3-r1ALPINE-CVE-2025-27151
Alpine Linux 3.23redisFixed8.0.2-r0ALPINE-CVE-2025-27151
Alpine Linux 3.23valkeyFixed8.1.1-r1ALPINE-CVE-2025-27151
Alpine Linux 3.22redictFixed7.3.3-r1ALPINE-CVE-2025-27151
Alpine Linux 3.22redisFixed8.0.2-r0ALPINE-CVE-2025-27151
Alpine Linux 3.22valkeyFixed8.1.1-r1ALPINE-CVE-2025-27151
Alpine Linux 3.21redictFixed7.3.3-r1ALPINE-CVE-2025-27151
Alpine Linux 3.21redisFixed7.2.9-r0ALPINE-CVE-2025-27151
Alpine Linux 3.21valkeyFixed7.2.9-r1ALPINE-CVE-2025-27151
Alpine Linux 3.20redictFixed7.3.3-r1ALPINE-CVE-2025-27151
Alpine Linux 3.20redisFixed7.2.9-r0ALPINE-CVE-2025-27151
Alpine Linux 3.20valkeyFixed7.2.9-r1ALPINE-CVE-2025-27151
Alpine Linux 3.19redisFixed7.2.9-r0ALPINE-CVE-2025-27151
Alpine Linux 3.18redisFixed7.0.15-r4ALPINE-CVE-2025-27151

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.