{"id":"CVE-2025-27151","state":"PUBLISHED","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 patched in version 8.0.2.","publishedAt":"2025-05-29T09:07:34.779Z","updatedAt":"2025-05-29T13:43:09.725Z","severity":{"score":4.7,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["redis redis"],"affected":[{"vendor":"redis","product":"redis","versions":[{"version":">= 7.0.0, < 8.0.2","status":"affected"}]}],"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"],"weaknesses":["CWE-20","CWE-121"],"ingestedAt":"2026-10-29T20:08:47.682Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/27xxx/CVE-2025-27151.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2025-27151","state":"PUBLISHED","datePublished":"2025-05-29T09:07:34.779Z","dateUpdated":"2025-05-29T13:43:09.725Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2025-02-19T16:30:47.779Z"},"containers":{"cna":{"title":"redis-check-aof may lead to stack overflow and potential RCE","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"redis","product":"redis","versions":[{"version":">= 7.0.0, < 8.0.2","status":"affected"}]}],"references":[{"url":"https://github.com/redis/redis/security/advisories/GHSA-5453-q98w-cmvm","name":"https://github.com/redis/redis/security/advisories/GHSA-5453-q98w-cmvm","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/redis/redis/commit/643b5db235cb82508e72f11c7b4bbfc7dc39be56","name":"https://github.com/redis/redis/commit/643b5db235cb82508e72f11c7b4bbfc7dc39be56","tags":["x_refsource_MISC"]},{"url":"https://github.com/redis/redis/releases/tag/8.0.2","name":"https://github.com/redis/redis/releases/tag/8.0.2","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"LOCAL","availabilityImpact":"HIGH","baseScore":4.7,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-20","lang":"en","description":"CWE-20: Improper Input Validation","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-121","lang":"en","description":"CWE-121: Stack-based Buffer Overflow","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2025-05-29T09:07:34.779Z"},"source":{"advisory":"GHSA-5453-q98w-cmvm","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-05-29T13:42:48.855092Z","id":"CVE-2025-27151","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-05-29T13:43:09.725Z"}}]}}}