{"id":"CVE-2025-27151","summary":"redis-check-aof may lead to stack overflow and potential RCE","details":"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.","aliases":["BIT-keydb-2025-27151","BIT-redis-2025-27151","BIT-valkey-2025-27151","GHSA-5453-q98w-cmvm"],"modified":"2026-04-02T12:46:07.210035Z","published":"2025-05-29T09:07:34.779Z","related":["ALSA-2025:11401","ALSA-2025:12008","CGA-7qfr-xcvm-qpjp","MGASA-2025-0211","SUSE-SU-2025:01942-1","SUSE-SU-2025:02190-1","SUSE-SU-2025:02231-1","SUSE-SU-2025:02679-1","SUSE-SU-2025:02681-1","openSUSE-SU-2025:15293-1","openSUSE-SU-2025:15306-1"],"database_specific":{"cwe_ids":["CWE-121","CWE-20"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/27xxx/CVE-2025-27151.json","cna_assigner":"GitHub_M"},"references":[{"type":"WEB","url":"https://github.com/redis/redis/releases/tag/8.0.2"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/27xxx/CVE-2025-27151.json"},{"type":"ADVISORY","url":"https://github.com/redis/redis/security/advisories/GHSA-5453-q98w-cmvm"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-27151"},{"type":"FIX","url":"https://github.com/redis/redis/commit/643b5db235cb82508e72f11c7b4bbfc7dc39be56"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/redis/redis","events":[{"introduced":"d375595d5e3ae2e5c29e6c00a2dc3d60578fd9fc"},{"fixed":"994bc96bb1744cb153392fc96bdba43eae56e17f"}]}],"versions":["7.0.0","7.0.1","7.0.10","7.0.11","7.0.12","7.0.13","7.0.14","7.0.15","7.0.2","7.0.3","7.0.4","7.0.5","7.0.6","7.0.7","7.0.8","7.0.9"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-27151.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}