# CVE-2025-27151: redis-check-aof may lead to stack overflow and potential RCE

- Priority: **Routine**
- Reason: Not severe (CVSS 4.7, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-05-29 · Modified: 2025-05-29
- Aliases: ALPINE-CVE-2025-27151, SUSE-SU-2025:02190-1, UBUNTU-CVE-2025-27151, DEBIAN-CVE-2025-27151, CGA-2933-hhq3-4624, CGA-2x53-5287-fc98, CGA-43vv-8j8r-hrfq, CGA-47g3-6mxf-7h45, CGA-4g5p-cfmw-gwrc, CGA-54v6-r83f-cp2q, CGA-5cc2-rhhr-2p9h, CGA-63v2-w9wf-683r, CGA-797j-vhc9-w456, CGA-88pm-j684-grfw, CGA-9x6r-76rg-6hhc, CGA-f4p7-5c3g-6cfm, CGA-gpv4-qr3q-cvh3, CGA-h2h9-9fw4-3947, CGA-hg8h-vgh4-mjqc, CGA-jwqq-9q5g-rfcx, CGA-mwq5-pxm5-mpgx, CGA-qgfx-9rj6-vfjr, CGA-r2vc-4545-9593, CGA-rg4q-mwmr-5jrr, CGA-rphr-7cm2-f4qh, CGA-w7jj-6pjc-75w2, CGA-x7j8-c4cm-mg8p, CGA-xxpg-r626-fcfx
- Record: https://cvemate.com/vulnerability/CVE-2025-27151 · JSON: https://cvemate.com/vulnerability/CVE-2025-27151/json

## Description

```text
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.
```

## Signals

- CVSS: 9.8 critical (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 1.077%, percentile 66.173%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 22)

- alpine redict (Alpine Linux): \< 7.3.3-r1
- alpine redis (Alpine Linux): ≥ 7.0.0, \< 8.0.2-r0 \| ≥ 7.0.0, \< 7.0.15-r4 \| ≥ 7.0.0, \< 7.2.9-r0 \| ≥ 8.0.0, \< 8.0.2-r0
- alpine valkey (Alpine Linux): \< 7.2.9-r1 \| \< 8.1.1-r1
- chainguard py3-redis (Chainguard): All versions (No fix recorded)
- chainguard py3.10-redis (Chainguard): All versions (No fix recorded)
- chainguard py3.11-redis (Chainguard): All versions (No fix recorded)
- chainguard py3.12-redis (Chainguard): All versions (No fix recorded)
- chainguard py3.13-redis (Chainguard): All versions (No fix recorded)
- chainguard redis-7.2 (Chainguard): \< 7.2.9-r1
- chainguard redis-7.2-iamguarded-compat (Chainguard): \< 7.2.12-r2
- chainguard redis-7.4 (Chainguard): \< 7.4.4-r1
- chainguard redis-benchmark-7.2 (Chainguard): \< 7.2.12-r2
- chainguard redis-cli-7.2 (Chainguard): \< 7.2.12-r2
- chainguard redis-cluster-7.2-iamguarded-compat (Chainguard): \< 7.2.12-r2
- chainguard redis-sentinel-7.2-iamguarded-compat (Chainguard): \< 7.2.12-r2
- debian redict (Debian): \< 7.3.5+ds-1
- debian redis (Debian): \< 5:7.0.15-1~deb12u5 \| \< 5:8.0.2-2
- debian valkey (Debian): \< 8.1.1+dfsg1-1.1
- ubuntu redis (Ubuntu): All versions (No fix recorded)
- redis redis: ≥ 7.0.0, \< 8.0.2 \| ≥ 7.0.0, \< 7.2.9 \| ≥ 7.4.0, \< 7.4.4 \| ≥ 8.0.0, \< 8.0.2

## References

- <https://github.com/redis/redis/security/advisories/GHSA-5453-q98w-cmvm>
- <https://github.com/redis/redis/commit/643b5db235cb82508e72f11c7b4bbfc7dc39be56>
- <https://github.com/redis/redis/releases/tag/8.0.2>
- <https://security.alpinelinux.org/vuln/CVE-2025-27151>
- <https://www.suse.com/support/update/announcement/2025/suse-su-202502190-1/>
- <https://bugzilla.suse.com/1243804>
- <https://www.suse.com/security/cve/CVE-2025-27151>
- <https://ubuntu.com/security/CVE-2025-27151>
- <https://www.cve.org/CVERecord?id=CVE-2025-27151>
- <https://security-tracker.debian.org/tracker/CVE-2025-27151>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/27xxx/CVE-2025-27151.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-27151>

---

Data as of 2026-12-05T03:32:25.955Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
