{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-27151","id":"CVE-2025-27151","title":"redis-check-aof may lead to stack overflow and potential RCE","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 patc","descriptionLong":"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.","published":"2025-05-29T09:07:34.779Z","updated":"2026-10-28T10:51:34.923280142Z","reserved":"2025-02-19T16:30:47.779Z","status":"Analyzed","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":4.7,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"3.1","score":4.7,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"GitHub_M"},{"version":"3.1","score":4.7,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"github.com"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"NVD"},{"version":"3.1","score":4.7,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"OSV"}],"rating":"medium","products":["redis"],"affectedProducts":[{"vendor":"redis","product":"redis","defaultStatus":null,"versions":[{"version":">= 7.0.0, < 8.0.2","status":"affected"}],"platforms":[]}],"packages":[],"cwes":["CWE-20","CWE-121"],"aliases":["BIT-keydb-2025-27151","BIT-redis-2025-27151","BIT-valkey-2025-27151","GHSA-5453-q98w-cmvm"],"references":[{"url":"https://github.com/redis/redis/security/advisories/GHSA-5453-q98w-cmvm","tags":["x_refsource_CONFIRM","Third Party Advisory","advisory"]},{"url":"https://github.com/redis/redis/commit/643b5db235cb82508e72f11c7b4bbfc7dc39be56","tags":["x_refsource_MISC","Patch","fix"]},{"url":"https://github.com/redis/redis/releases/tag/8.0.2","tags":["x_refsource_MISC","Release Notes","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/27xxx/CVE-2025-27151.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-27151","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.01058,"epssPercentile":0.65157,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-27151","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-27151","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-27151","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-27151","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":["redis"],"critical":[],"attention":null}