CVE-2025-27151 json
redis-check-aof may lead to stack overflow and potential RCE
published last yr. modified 2mo 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
Is CVE-2025-27151 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor 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 redisaffected: no fix available “Fix deferred”
-
Red Hat Enterprise Linux AppStream (v. 9) redis 7.2.10-1.module+el9.6.0+23332+115a3b01fixed: vendor fix RHSA-2025:12008
-
Red Hat Enterprise Linux AppStream (v. 10) valkey 8.0.4-1.el10_0fixed: 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 valkeynot affected: vulnerable code not present
+4 more productsfewer
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
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
- last yr.
Exploit prediction
1.06% chance of exploitation in the next 30 days, higher than 64% of all scored CVEs (FIRST EPSS, 2026-11-09).
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
- Technology feeds
References
-
github.com
/redis/redis/commit/643b5db235cb82508e72f11c7b4bbfc7dc39be56
patch
-
github.com
/redis/redis/security/advisories/GHSA-5453-q98w-cmvm
third-party-advisory, advisory
-
github.com
/redis/redis/releases/tag/8.0.2
release-notes, article
-
nvd.nist.gov
/vuln/detail/CVE-2025-27151
web
Sources
- CVE List CVE-2025-27151
- NVD CVE-2025-27151
- OSV BIT-keydb-2025-27151
- OSV BIT-redis-2025-27151
- OSV BIT-valkey-2025-27151
- Maintainer advisory GHSA-5453-q98w-cmvm
Fencer Intel 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.