Skip to content
Fencer Vulns
medium 4.7

CVE-2025-27151 json

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

published 2025-05-27 17 mo ago modified 2026-09-08 2 mo ago also BIT-keydb-2025-27151 , BIT-redis-2025-27151 , BIT-valkey-2025-27151 , EUVD-2025-16375 , GHSA-5453-q98w-cmvm

cvss
4.7
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
1.1%
EPSS 1.1% chance of exploitation in 30 days, percentile 64%
public exploits
0
none known

Summary

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.

Patch / fix

  • bitnami redis 7.2.9, 7.4.4, 8.0.2
  • bitnami valkey 7.2.10, 8.0.5, 8.1.2
  • redis redis 7.2.9, 7.4.4, 8.0.2
  • redislabs redis 7.2.9, 7.4.4, 8.0.2
  • lfprojects valkey 7.2.10, 8.0.5, 8.1.2
  • linuxfoundation valkey 7.2.10, 8.0.5, 8.1.2
  • valkey-io valkey 7.2.10, 8.0.5, 8.1.2
  • redis Debian 12 5:7.0.15-1~deb12u5
  • redis Debian 14, Debian 13 5:8.0.2-2
  • redict Debian 14 7.3.5+ds-1
  • valkey Debian 14, Debian 13 8.1.1+dfsg1-1.1

debian advisories DEBIAN-CVE-2025-27151

  • redis RHEL 9 7.2.10-1.module+el9.6.0+23332+115a3b01
  • valkey RHEL 10.0 8.0.4-1.el10_0

red hat advisories RHSA-2025:12008RHSA-2025:11401

  • redis7 SLES for SAP 15 SP5, SLES 15 SP5-LTSS, SLE High Performance Computing 15 SP5-LTSS +1 more 7.0.8-150500.3.21.1
  • redis7 SLE Module for Server Applications 15 SP6, openSUSE Leap 15.6 7.0.8-150600.8.16.1
  • valkey SLE Module for Server Applications 15 SP6, openSUSE Leap 15.6 8.0.2-150600.13.11.1
  • redis SLE Module for Server Applications 15 SP6, openSUSE Leap 15.6 7.2.4-150600.3.12.1
  • valkey SLE Module for Server Applications 15 SP7 8.0.2-150700.3.5.1

suse advisories SUSE-SU-2025:02681-1SUSE-SU-2025:02679-1SUSE-SU-2025:02231-1SUSE-SU-2025:02190-1SUSE-SU-2025:01942-1

  • redis openSUSE Tumbleweed 8.0.2-1.1
  • valkey openSUSE Tumbleweed 8.1.2-1.1

opensuse advisories openSUSE-SU-2025:15293-1openSUSE-SU-2025:15306-1

  • redis AlmaLinux 9 7.2.10-1.module_el9.6.0+173+efaf9205
  • valkey AlmaLinux 10 8.0.4-1.el10_0

almalinux advisories ALSA-2025:12008ALSA-2025:11401

  • redis Rocky Linux 9 7.2.10-1.module+el9.6.0+32323+e27e860a
  • valkey Rocky Linux 10 8.0.4-1.el10_0

rocky linux advisories RLSA-2025:12008RLSA-2025:11401

  • redis Alpine 3.18 7.0.15-r4
  • redis Alpine 3.21, Alpine 3.20, Alpine 3.19 7.2.9-r0
  • redis Alpine 3.24, Alpine 3.23, Alpine 3.22 8.0.2-r0
  • redict Alpine 3.24, Alpine 3.23, Alpine 3.22 +2 more 7.3.3-r1
  • valkey Alpine 3.21, Alpine 3.20 7.2.9-r1
  • valkey Alpine 3.24, Alpine 3.23, Alpine 3.22 8.1.1-r1

alpine advisories ALPINE-CVE-2025-27151

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • valkey Azure Linux 3.0 8.0.3-3

azure linux advisories AZL-63750

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2025-27151 updated cvss 2.5

redis: Redis Stack Buffer Overflow

  • Red Hat Enterprise Linux 9 redis
    affected: no fix available “Fix deferred”
  • Red Hat Enterprise Linux AppStream (v. 9) redis 7.2.10-1.module+el9.6.0+23332+115a3b01
    fixed: vendor fix RHSA-2025:12008
  • Red Hat Enterprise Linux AppStream (v. 10) valkey 8.0.4-1.el10_0
    fixed: vendor fix RHSA-2025:11401
  • Red Hat AI Inference Server rhaiis/vllm-cuda-rhel9, rhaiis/vllm-rocm-rhel9 Red Hat Ansible Automation Platform 2 automation-controller, aap-cloud-metrics-collector-container, ansible-automation-platform-24/de-minimal-rhel8, ansible-automation-platform-24/de-minimal-rhel9, ansible-automation-platform-24/lightspeed-rhel8, ansible-automation-platform-25/de-minimal-rhel8, +6 more Red Hat Developer Hub 1 rhdh/rhdh-hub-rhel9, rhdh/rhdh-rhel9-operator Red Hat Discovery 1 discovery/discovery-server-rhel9 Red Hat Enterprise Linux 8 redis Red Hat Enterprise Linux 9 valkey
    +4 more products
    Red Hat Enterprise Linux AI (RHEL AI) rhelai1/bootc-amd-rhel9, rhelai1/bootc-azure-amd-rhel9, rhelai1/instructlab-amd-rhel9 Red Hat OpenShift AI (RHOAI) rhoai/odh-feast-operator-rhel8, rhoai/odh-feature-server-rhel8 Red Hat Quay 3 quay/quay-rhel8 Red Hat Satellite 6 satellite/iop-advisor-engine-rhel9
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
partial
Assessed
17 mo ago

Exploit prediction

1.06% chance of exploitation in the next 30 days, higher than 64% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CNA 3.1 4.7 CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD 3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
OSV 3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected packages

ecosystem package affected fixed in
bitnami keydb
>=7.0.0
no fix listed
bitnami redis
>=7.0.0, <7.2.9
>=7.3.0, <7.4.4
>=8.0.0, <8.0.2
7.2.9
7.4.4
8.0.2
bitnami valkey
<7.2.10
>=7.3.0, <8.0.5
>=8.1.0, <8.1.2
7.2.10
8.0.5
8.1.2

Affected products

  • redis redis

Classification

Weakness
  • CWE-20 Improper Input Validation
  • CWE-121 Stack-based Buffer Overflow
Technology feeds

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.

The maintainers of redis/redis published their own advisory on GitHub. Reviewed sources take precedence over it.

CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.