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

- Severity: Medium 4.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.08%, higher than 66% of CVEs (2026-12-02)
- Published: 2025-05-29T09:07:34.779Z
- Modified: 2026-09-08T08:48:20.997Z
- Also known as: BIT-KEYDB-2025-27151, BIT-REDIS-2025-27151, BIT-VALKEY-2025-27151, GHSA-5453-q98w-cmvm
- Weaknesses: CWE-20, CWE-121
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- redis redis: >= 7.0.0, < 8.0.2; from 7.0.0 before 7.2.9; from 7.4.0 before 7.4.4; from 8.0.0 before 8.0.2
- keydb (Bitnami): from 7.0.0
- redis (Bitnami): from 7.0.0 before 7.2.9; from 7.3.0 before 7.4.4; from 8.0.0 before 8.0.2
- valkey (Bitnami): before 7.2.10; from 7.3.0 before 8.0.5; from 8.1.0 before 8.1.2

## Every score

- GitHub_M: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: 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`
- Bitnami Vulnerability Database: rating Critical

## References

- <https://github.com/redis/redis/security/advisories/GHSA-5453-q98w-cmvm> (advisory, third-party-advisory)
- <https://github.com/redis/redis/commit/643b5db235cb82508e72f11c7b4bbfc7dc39be56> (fix, patch)
- <https://github.com/redis/redis/releases/tag/8.0.2> (article, release-notes)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-27151> (web)

## Sources

- CVE List: [CVE-2025-27151](https://www.cve.org/CVERecord?id=CVE-2025-27151), CVE Terms of Use, modified 2025-05-29
- NVD: [CVE-2025-27151](https://nvd.nist.gov/vuln/detail/CVE-2025-27151), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-KEYDB-2025-27151](https://osv.dev/vulnerability/BIT-KEYDB-2025-27151), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-REDIS-2025-27151](https://osv.dev/vulnerability/BIT-REDIS-2025-27151), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-VALKEY-2025-27151](https://osv.dev/vulnerability/BIT-VALKEY-2025-27151), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2025-27151 · Whole record: https://cve.day/CVE-2025-27151.json · Rebuilt by cve.day 2026-11-25T22:58:58.549Z
