Skip to content
Noroxi
CVE-2025-27151· NVD / CVE Program· CNA GitHub_M

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

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.

CriticalCVSS 9.8 · v3.1—No exploit Fix available
Published
May 29, 2025
Updated
Jun 17, 2026
EPSS
1.0% · 60th percentile
Follow this CVE

Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.

Report tools

JSON

Action score

39

Monitor

Low priority for now.

CVSS
39 / 40 · 9.8 / 10
CISA KEV
0 / 30 · Not listed
EPSS
0 / 30 · 1.0%

CISA SSVC decision

Exploitation
none
Automatable
no
Technical impact
partial

Vulnrichment: CISA's decision-tree inputs.

CNA vs NVD score

NVD
9.8
CNA · GitHub_M
4.7
5.1 point gap

CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H

The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.

Affected systems

VendorProduct
redisredis

Using redis? Add it to your stack and be the first to know about CVEs like this one. (Redis)

Add to my stack

Affected versions

NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.

  • redis redis7.0.0 and later · before 7.2.9
  • redis redis7.4.0 and later · before 7.4.4
  • redis redis8.0.0 and later · before 8.0.2

Versions reported by the vendor

Affected version ranges reported by the assigning authority (GitHub_M). Independent of NVD's CPE analysis and usually ahead of it.

  • redis redis

    • >= 7.0.0, < 8.0.2affected

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
AlmaLinux:10valkeybefore 8.0.4-1.el10_08.0.4-1.el10_0
AlmaLinux:10valkey-develbefore 8.0.4-1.el10_08.0.4-1.el10_0
AlmaLinux:9redisbefore 7.2.10-1.module_el9.6.0+173+efaf92057.2.10-1.module_el9.6.0+173+efaf9205
AlmaLinux:9redis-develbefore 7.2.10-1.module_el9.6.0+173+efaf92057.2.10-1.module_el9.6.0+173+efaf9205
AlmaLinux:9redis-docbefore 7.2.10-1.module_el9.6.0+173+efaf92057.2.10-1.module_el9.6.0+173+efaf9205
Alpine:v3.18redisfrom 7.0.0 · before 7.0.15-r47.0.15-r4
Alpine:v3.19redisfrom 7.0.0 · before 7.2.9-r07.2.9-r0
Alpine:v3.20valkeybefore 7.2.9-r17.2.9-r1
Alpine:v3.22valkeybefore 8.1.1-r18.1.1-r1
Debian:12redisbefore 5:7.0.15-1~deb12u55:7.0.15-1~deb12u5
Debian:13redisbefore 5:8.0.2-25:8.0.2-2
Debian:13valkeybefore 8.1.1+dfsg1-1.18.1.1+dfsg1-1.1
Debian:14redictbefore 7.3.5+ds-17.3.5+ds-1
openSUSE:Tumbleweedredisbefore 8.0.2-1.18.0.2-1.1
openSUSE:Tumbleweedvalkeybefore 8.1.2-1.18.1.2-1.1
Red Hat:enterprise_linux:10.0valkeybefore 0:8.0.4-1.el10_00:8.0.4-1.el10_0
Red Hat:enterprise_linux:10.0valkey-debuginfobefore 0:8.0.4-1.el10_00:8.0.4-1.el10_0
Red Hat:enterprise_linux:10.0valkey-debugsourcebefore 0:8.0.4-1.el10_00:8.0.4-1.el10_0
Red Hat:enterprise_linux:10.0valkey-develbefore 0:8.0.4-1.el10_00:8.0.4-1.el10_0
Red Hat:enterprise_linux:9::appstreamredisbefore 0:7.2.10-1.module+el9.6.0+23332+115a3b010:7.2.10-1.module+el9.6.0+23332+115a3b01
Red Hat:enterprise_linux:9::appstreamredis-debuginfobefore 0:7.2.10-1.module+el9.6.0+23332+115a3b010:7.2.10-1.module+el9.6.0+23332+115a3b01
Red Hat:enterprise_linux:9::appstreamredis-debugsourcebefore 0:7.2.10-1.module+el9.6.0+23332+115a3b010:7.2.10-1.module+el9.6.0+23332+115a3b01
Red Hat:enterprise_linux:9::appstreamredis-develbefore 0:7.2.10-1.module+el9.6.0+23332+115a3b010:7.2.10-1.module+el9.6.0+23332+115a3b01
Red Hat:enterprise_linux:9::appstreamredis-docbefore 0:7.2.10-1.module+el9.6.0+23332+115a3b010:7.2.10-1.module+el9.6.0+23332+115a3b01

+10

Other highest-scoring records for the same primary product.

  • CVE-2022-0543It was discovered, that redis, a persistent key-value database, due to a packaging issue, is prone to a (Debian-specific) Lua sandbox escapeKEV
    100Now
  • CVE-2025-49844Redis Lua Use-After-Free may lead to remote code execution
    64This week
  • CVE-2023-36824Heap overflow in COMMAND GETKEYS and ACL evaluation in Redis
    58Plan
  • CVE-2022-24834Heap overflow issue with the Lua cjson library used by Redis
    47Plan
  • CVE-2023-22458Integer overflow in multiple Redis commands can lead to denial-of-service
    44Plan
  • CVE-2024-46981Redis' Lua library commands may lead to remote code execution
    41Plan

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
redis redis8.0.2 · descriptionVendor (CNA)
AlmaLinux:redis7.2.10-1.module_el9.6.0+173+efaf9205 · AlmaLinux:9Package registry (OSV)
AlmaLinux:redis-devel7.2.10-1.module_el9.6.0+173+efaf9205 · AlmaLinux:9Package registry (OSV)
AlmaLinux:redis-doc7.2.10-1.module_el9.6.0+173+efaf9205 · AlmaLinux:9Package registry (OSV)
AlmaLinux:valkey8.0.4-1.el10_0 · AlmaLinux:10Package registry (OSV)
AlmaLinux:valkey-devel8.0.4-1.el10_0 · AlmaLinux:10Package registry (OSV)
Alpine:redis7.0.15-r4 · Alpine:v3.18Package registry (OSV)
Alpine:valkey7.2.9-r1 · Alpine:v3.20Package registry (OSV)
Debian:redict7.3.5+ds-1 · Debian:14Package registry (OSV)
Debian:redis5:7.0.15-1~deb12u5 · Debian:12Package registry (OSV)
Debian:valkey8.1.1+dfsg1-1.1 · Debian:13Package registry (OSV)
openSUSE:redis7.2.4-150600.3.12.1 · openSUSE:Leap 15.6Package registry (OSV)
openSUSE:redis77.0.8-150600.8.16.1 · openSUSE:Leap 15.6Package registry (OSV)
openSUSE:valkey8.0.2-150600.13.11.1 · openSUSE:Leap 15.6Package registry (OSV)
Red Hat:redis0:7.2.10-1.module+el9.6.0+23332+115a3b01 · Red Hat:enterprise_linux:9::appstreamPackage registry (OSV)
Red Hat:redis-debuginfo0:7.2.10-1.module+el9.6.0+23332+115a3b01 · Red Hat:enterprise_linux:9::appstreamPackage registry (OSV)
Red Hat:redis-debugsource0:7.2.10-1.module+el9.6.0+23332+115a3b01 · Red Hat:enterprise_linux:9::appstreamPackage registry (OSV)
Red Hat:redis-devel0:7.2.10-1.module+el9.6.0+23332+115a3b01 · Red Hat:enterprise_linux:9::appstreamPackage registry (OSV)
Red Hat:redis-doc0:7.2.10-1.module+el9.6.0+23332+115a3b01 · Red Hat:enterprise_linux:9::appstreamPackage registry (OSV)
Red Hat:valkey0:8.0.4-1.el10_0 · Red Hat:enterprise_linux:10.0Package registry (OSV)
Red Hat:valkey-debuginfo0:8.0.4-1.el10_0 · Red Hat:enterprise_linux:10.0Package registry (OSV)
Red Hat:valkey-debugsource0:8.0.4-1.el10_0 · Red Hat:enterprise_linux:10.0Package registry (OSV)
Red Hat:valkey-devel0:8.0.4-1.el10_0 · Red Hat:enterprise_linux:10.0Package registry (OSV)
Rocky Linux:redis0:7.2.10-1.module+el9.6.0+32323+e27e860a · Rocky Linux:9Package registry (OSV)
Rocky Linux:valkey0:8.0.4-1.el10_0 · Rocky Linux:10Package registry (OSV)
SUSE:redis7.2.4-150600.3.12.1 · SUSE:Linux Enterprise Module for Server Applications 15 SP6Package registry (OSV)
SUSE:redis77.0.8-150600.8.16.1 · SUSE:Linux Enterprise Module for Server Applications 15 SP6Package registry (OSV)
SUSE:valkey8.0.2-150600.13.11.1 · SUSE:Linux Enterprise Module for Server Applications 15 SP6Package registry (OSV)
SUSE:valkey8.0.2-150700.3.5.1 · SUSE:Linux Enterprise Module for Server Applications 15 SP7Package registry (OSV)

Exploit status

No known public exploit

No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

No dated events beyond publication.

EPSS, last 120 days

FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).

Patch and commit links

Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.

Finders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.

No credits in the CNA record.

Variant candidates

Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.

  • CVE-2024-31449234 days apartLua library commands may lead to stack overflow and RCE in Redis
    36Monitor
  • CVE-2025-62507159 days apartRedis: Bug in XACKDEL may lead to stack overflow and potential RCE
    32Monitor
  • CVE-2024-51741143 days apartRedis allows denial-of-service due to malformed ACL selectors
    17Monitor
  • CVE-2024-31227234 days apartDenial-of-service due to malformed ACL selectors in Redis
    17Monitor

Chain candidates

An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.

—

Bug bounty scope

The product’s vendor appears in a public program. Matched by name; verify the scope text in the program.

Technical details

Attack conditions

  • Anyone who can reach it over the internet can trigger it.
  • No account or password is required.
  • No user action is required.
  • No special conditions are required; it is repeatable.

If successful

Confidentiality
high · data can be read
Integrity
high · data or configuration can be modified
Availability
high · the service can be disrupted
Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality impact
High
Integrity impact
High
Availability impact
High

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

nvd-primary

Noroxi analysis

No Noroxi analysis for this record yet

We don't hand-write analysis for all 385,000+ vulnerabilities; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.

We use this product, ask for help

Change log

  1. Fix✗ → ✓

For records you follow, these changes also arrive as notifications. →

References

All records