cve.bz

CVE-2025-27151 redis redis: Stack-based Buffer Overflow

9.8 criticalEPSS 1.1%Fix available

Critical (9.8) in redis redis. EPSS 1.1% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
1.1% (unchanged from 1.1% a week ago; 1.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 65th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2025-05-29. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-20 Improper Input Validation
CWE-121 Stack-based Buffer Overflow
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-27151 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-27151?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-27151?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-27151 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
redis:redisfrom 7.0.0 before 7.2.9
redis:redisfrom 7.4.0 before 7.4.4
redis:redisfrom 8.0.0 before 8.0.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12redis5:7.0.15-1~deb12u5DEBIAN-CVE-2025-27151 DSA-5969-1
Debian13, 14redis5:8.0.2-2DEBIAN-CVE-2025-27151
Debian13, 14valkey8.1.1+dfsg1-1.1DEBIAN-CVE-2025-27151
Debian14redict7.3.5+ds-1DEBIAN-CVE-2025-27151
Ubuntu24.04:LTSredisno fix listedUBUNTU-CVE-2025-27151
Red Hatenterprise_linux:9::appstreamredis, redis-doc, redis-devel and 2 more0:7.2.10-1.module+el9.6.0+23332+115a3b01RHSA-2025:12008
Red Hatenterprise_linux:10.0valkey, valkey-devel, valkey-debuginfo and 1 more0:8.0.4-1.el10_0RHSA-2025:11401
SUSELinux Enterprise High Performance Computing 15 SP5-ESPOS, Linux Enterprise High Performance Computing 15 SP5-LTSS, Linux Enterprise Server 15 SP5-LTSS and 1 moreredis77.0.8-150500.3.21.1SUSE-SU-2025:02681-1
SUSELinux Enterprise Module for Server Applications 15 SP6redis7.2.4-150600.3.12.1SUSE-SU-2025:02190-1
SUSELinux Enterprise Module for Server Applications 15 SP6redis77.0.8-150600.8.16.1SUSE-SU-2025:02679-1
SUSELinux Enterprise Module for Server Applications 15 SP6valkey8.0.2-150600.13.11.1SUSE-SU-2025:02231-1
SUSELinux Enterprise Module for Server Applications 15 SP7valkey8.0.2-150700.3.5.1SUSE-SU-2025:01942-1
openSUSELeap 15.6redis7.2.4-150600.3.12.1SUSE-SU-2025:02190-1
openSUSELeap 15.6redis77.0.8-150600.8.16.1SUSE-SU-2025:02679-1
openSUSELeap 15.6valkey8.0.2-150600.13.11.1SUSE-SU-2025:02231-1
openSUSETumbleweedredis8.0.2-1.1openSUSE-SU-2025:15293-1
openSUSETumbleweedvalkey8.1.2-1.1openSUSE-SU-2025:15306-1
AlmaLinux9redis, redis-doc, redis-devel7.2.10-1.module_el9.6.0+173+efaf9205ALSA-2025:12008
AlmaLinux10valkey, valkey-devel8.0.4-1.el10_0ALSA-2025:11401
Rocky Linux9redis0:7.2.10-1.module+el9.6.0+32323+e27e860aRLSA-2025:12008
Rocky Linux10valkey0:8.0.4-1.el10_0RLSA-2025:11401
Alpinev3.18redis7.0.15-r4ALPINE-CVE-2025-27151
Alpinev3.19, v3.20, v3.21redis7.2.9-r0ALPINE-CVE-2025-27151
Alpinev3.20, v3.21valkey7.2.9-r1ALPINE-CVE-2025-27151
Alpinev3.20, v3.21, v3.22 and 2 moreredict7.3.3-r1ALPINE-CVE-2025-27151
Alpinev3.22, v3.23, v3.24redis8.0.2-r0ALPINE-CVE-2025-27151
Alpinev3.22, v3.23, v3.24valkey8.1.1-r1ALPINE-CVE-2025-27151
Azure Linux3valkey8.0.3-3AZL-63750
Alpaquita23redis7.0.15-r4BELL-CVE-2025-27151
Alpaquitastreamredis8.0.2-r0BELL-CVE-2025-27151

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

The availability impact is limited to the instance of Redis and not to the system as a whole.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10valkey-0:8.0.4-1.el10_0Fixed 2025-07-21RHSA-2025:11401
Red Hat Enterprise Linux 9redis:7-9060020250716081121.9Fixed 2025-07-28RHSA-2025:12008
Red Hat AI Inference Serverrhaiis/vllm-cuda-rhel9Not affected
Red Hat AI Inference Serverrhaiis/vllm-rocm-rhel9Not affected
Red Hat Ansible Automation Platform 2aap-cloud-metrics-collector-containerNot affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-24/de-minimal-rhel8Not affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-24/de-minimal-rhel9Not affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-24/lightspeed-rhel8Not affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-24/platform-resource-runner-rhel8Not affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-25/ansible-dev-tools-rhel8Not affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-25/de-minimal-rhel8Not affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-25/de-minimal-rhel9Not affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-25/lightspeed-chatbot-rhel8Not affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-25/lightspeed-rhel8Not affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-25/platform-resource-runner-rhel8Not affected
Red Hat Ansible Automation Platform 2automation-controllerNot affected
Red Hat Developer Hub 1rhdh/rhdh-hub-rhel9Not affected
Red Hat Developer Hub 1rhdh/rhdh-rhel9-operatorNot affected
Red Hat Discovery 1discovery/discovery-server-rhel9Not affected
Red Hat Enterprise Linux 8redis:6/redisNot affected
9 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-27151.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-20 (51).

References

Check your stackJSON