Skip to main content
No exploitation reportedFix available

CVE-2025-27151

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

No exploitation reported by the sources we read.

  • Published2025-05-29
  • Fixed in8.0.2 · 7.4.4 · 7.2.9
  • WeaknessCWE-121 · CWE-20

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

Description

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.

Timeline

dates in UTC
  1. 2025-05-2909:15CVE publishedNVD

Versions per branch

NVD · OSV
Redis
BranchAffectedFixed in
8.0≥ 8.0.0, < 8.0.28.0.2
7.4≥ 7.4.0, < 7.4.47.4.4
7.x≥ 7.3.0, < 7.4.47.4.4
7.x≥ 7.0.0, < 7.2.97.2.9
valkey
BranchAffectedFixed in
8.1≥ 8.1.0, < 8.1.28.1.2
8.0≥ 7.3.0, < 8.0.58.0.5
7.2< 7.2.107.2.10
keydb
BranchAffectedFixed in
7.0+≥ 7.0.0no fix published

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As GitHub_M, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • redis
    Affected
    • = >= 7.0.0, < 8.0.2no fix stated

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2025-05-29

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • py3-redisChainguardall versions · fixed in 0and 4 other packages
  • redictDebian:14all versions · fixed in 7.3.5+ds-1
  • redictAlpine:v3.24all versions · fixed in 7.3.3-r1
  • redictAlpine:v3.23all versions · fixed in 7.3.3-r1
  • redictAlpine:v3.22all versions · fixed in 7.3.3-r1
  • redictAlpine:v3.21all versions · fixed in 7.3.3-r1
  • redictAlpine:v3.20all versions · fixed in 7.3.3-r1
  • redisUbuntu:24.04:LTSall versions · no fixed version listed

53 more package ranges on OSV.dev

Vendor advisories

  • CVE-2025-27151 Red Hat Product Security35 products fixed · 4 known affected

    redis: Redis Stack Buffer Overflow

    redis as a component of Red Hat Enterprise Linux 9 · redis-devel as a component of Red Hat Enterprise Linux 9 · redis-doc as a component of Red Hat Enterprise Linux 9 · +1 more

  • RHSA-2025:12008 Red Hat Product Security18 products fixed

    Red Hat Security Advisory: redis:7 security update

  • RHSA-2025:11401 Red Hat Product Security17 products fixed

    Red Hat Security Advisory: valkey security update

Full record on NVD

Fix

  1. Update Redis to 8.0.2 · 7.4.4 · 7.2.9
  2. Vendor fix Red Hat Product Security RHSA-2025:12008 · 18 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
  3. No fix available, says the vendor Red Hat Product Security CVE-2025-27151 · 4 productsFix deferred

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

  • CISA-ADPSSVC decisionnone2025-05-29
  • CNACVSS 3.14.7known since 2026-10-23
  • NVDCVSS 3.19.8read 2026-10-23
  • CNAweakness (CWE)CWE-121, CWE-20known since 2026-10-23
  • FIRST EPSSEPSS score1.1 %2026-11-18
  • OSVaffected packages—
  • GitHub Advisoriesadvisory—

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Published
2025-05-29
Last Modified
2026-06-17
NVD status
Analyzed
GitHub Advisory
GHSA-5453-q98w-cmvm

Frequently asked questions

What is CVE-2025-27151?

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.

Is CVE-2025-27151 actively exploited?

Active exploitation of CVE-2025-27151 has not been confirmed. Its EPSS score was 1.1% on 2026-11-18, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2025-27151?

CVE-2025-27151 has a CVSS v3 base score of 9.8 (CRITICAL severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.

Running Redis? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record