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?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « 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- 2025-05-2909:15CVE publishedNVD
Versions per branch
NVD · OSV| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 8.0 | ≥ 8.0.0, < 8.0.2 | 8.0.2 | NVD · OSV |
| 7.4 | ≥ 7.4.0, < 7.4.4 | 7.4.4 | NVD |
| 7.x | ≥ 7.3.0, < 7.4.4 | 7.4.4 | OSV |
| 7.x | ≥ 7.0.0, < 7.2.9 | 7.2.9 | NVD · OSV |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 8.1 | ≥ 8.1.0, < 8.1.2 | 8.1.2 | OSV |
| 8.0 | ≥ 7.3.0, < 8.0.5 | 8.0.5 | OSV |
| 7.2 | < 7.2.10 | 7.2.10 | OSV |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 7.0+ | ≥ 7.0.0 | no fix published | OSV |
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.
- redisAffected
- = >= 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
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
Red Hat Security Advisory: redis:7 security update
Red Hat Security Advisory: valkey security update
Fix
- Update Redis to 8.0.2 · 7.4.4 · 7.2.9
- 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
- No fix available, says the vendor Red Hat Product Security CVE-2025-27151 · 4 productsFix deferred
Advisories and patches
- github.comPatch
- github.comRelease Notes
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- PoC-in-GitHubno public repository identifiedread 2026-11-19
- 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
- AZL-63750same flawAzure Linux · MIT
- BIT-keydb-2025-27151same flawBitnami · Apache-2.0
- BIT-redis-2025-27151same flawBitnami · Apache-2.0
- BIT-valkey-2025-27151same flawBitnami · Apache-2.0
- CGA-2933-hhq3-4624same flawChainguard · CC-BY-NC-ND-4.0
- CGA-2x53-5287-fc98same flawChainguard · CC-BY-NC-ND-4.0
- CGA-43vv-8j8r-hrfqsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-47g3-6mxf-7h45same flawChainguard · CC-BY-NC-ND-4.0
- CGA-4g5p-cfmw-gwrcsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-54v6-r83f-cp2qsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-5cc2-rhhr-2p9hsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-63v2-w9wf-683rsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-797j-vhc9-w456same flawChainguard · CC-BY-NC-ND-4.0
- CGA-88pm-j684-grfwsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-9x6r-76rg-6hhcsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-f4p7-5c3g-6cfmsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-gpv4-qr3q-cvh3same flawChainguard · CC-BY-NC-ND-4.0
- CGA-h2h9-9fw4-3947same flawChainguard · CC-BY-NC-ND-4.0
- CGA-hg8h-vgh4-mjqcsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-jwqq-9q5g-rfcxsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-mwq5-pxm5-mpgxsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-qgfx-9rj6-vfjrsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-r2vc-4545-9593same flawChainguard · CC-BY-NC-ND-4.0
- CGA-rg4q-mwmr-5jrrsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-rphr-7cm2-f4qhsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-w7jj-6pjc-75w2same flawChainguard · CC-BY-NC-ND-4.0
- CGA-x7j8-c4cm-mg8psame flawChainguard · CC-BY-NC-ND-4.0
- CGA-xxpg-r626-fcfxsame flawChainguard · CC-BY-NC-ND-4.0
- EUVD-2025-16375same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-5453-q98w-cmvmsame flawGitHub Advisory Database · CC-BY-4.0
- MINI-j42r-qx9v-94xhsame flawMinimOS · LicenseRef-unstated
- MINI-j8pp-gc5x-866csame flawMinimOS · LicenseRef-unstated
- MINI-qxq9-qvrq-g3r9same flawMinimOS · LicenseRef-unstated
- ALSA-2025:11401advisory covering several CVEsAlmaLinux · MIT
- ALSA-2025:12008advisory covering several CVEsAlmaLinux · MIT
- DSA-5969-1advisory covering several CVEsDebian · LicenseRef-unstated
- MGASA-2025-0211advisory covering several CVEsMageia · LicenseRef-unstated
- OESA-2025-1630advisory covering several CVEsopenEuler · LicenseRef-unstated
- openSUSE-SU-2025:15293-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2025:15306-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- RHSA-2025:11401advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2025:12008advisory covering several CVEsRed Hat · CC-BY-4.0
- RLSA-2025:11401advisory covering several CVEsRocky Linux · BSD-3-Clause
- RLSA-2025:12008advisory covering several CVEsRocky Linux · BSD-3-Clause
- SUSE-SU-2025:01942-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2025:02190-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2025:02231-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2025:02679-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2025:02681-1advisory covering several CVEsSUSE · LicenseRef-unstated
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?
Is CVE-2025-27151 actively exploited?
What is the CVSS score for CVE-2025-27151?
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
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-5453-q98w-cmvm
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OpenCVE · OpenCVE terms of service · terms restrict redistribution
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- CISA Vulnrichment · CC0-1.0