redis-check-aof may lead to stack overflow and potential RCE (CVE-2025-27151)
A stack-based buffer overflow vulnerability exists in redis-check-aof component of Valkey (an advanced key-value store) in versions from 7.0.0 up to but not including 8.0.2. The flaw arises from unsafe use of memcpy with strlen(filepath) on a user-supplied file path, allowing potential stack overflow and code execution. This vulnerability is identified as CVE-2025-27151 and has been patched in version 8.0.2. Red Hat has issued an important security advisory with updates available for affected Red Hat Enterprise Linux 10 variants.
AI Analysis
Technical Summary
Redis versions starting from 7.0.0 to before 8.0.2 contain a stack-based buffer overflow vulnerability in the redis-check-aof utility. The vulnerability arises from the use of memcpy with strlen(filepath) to copy a user-supplied file path into a fixed-size stack buffer, which can overflow the stack. This overflow could allow an attacker to execute arbitrary code. The vulnerability is tracked as CVE-2025-27151 and has been patched in Redis version 8.0.2. Red Hat Product Security has released advisories and updates addressing this issue in their valkey package for Red Hat Enterprise Linux 10 and related variants. No known exploits in the wild have been reported.
Potential Impact
The vulnerability allows an attacker to cause a stack overflow in redis-check-aof, which may lead to remote code execution. This could compromise the affected system by allowing arbitrary code execution with the privileges of the redis-check-aof process. The issue affects Redis installations using vulnerable versions and could impact systems relying on redis-check-aof for AOF file checking and repair.
Mitigation Recommendations
An official patch is available and has been released in Redis version 8.0.2. Users should upgrade to version 8.0.2 or later to remediate this vulnerability. Red Hat has provided updated valkey packages for Red Hat Enterprise Linux 10 and related distributions; applying these updates will mitigate the issue. No additional mitigation steps are required beyond applying the official updates.
redis-check-aof may lead to stack overflow and potential RCE (CVE-2025-27151)
Description
A stack-based buffer overflow vulnerability exists in redis-check-aof component of Valkey (an advanced key-value store) in versions from 7.0.0 up to but not including 8.0.2. The flaw arises from unsafe use of memcpy with strlen(filepath) on a user-supplied file path, allowing potential stack overflow and code execution. This vulnerability is identified as CVE-2025-27151 and has been patched in version 8.0.2. Red Hat has issued an important security advisory with updates available for affected Red Hat Enterprise Linux 10 variants.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Redis versions starting from 7.0.0 to before 8.0.2 contain a stack-based buffer overflow vulnerability in the redis-check-aof utility. The vulnerability arises from the use of memcpy with strlen(filepath) to copy a user-supplied file path into a fixed-size stack buffer, which can overflow the stack. This overflow could allow an attacker to execute arbitrary code. The vulnerability is tracked as CVE-2025-27151 and has been patched in Redis version 8.0.2. Red Hat Product Security has released advisories and updates addressing this issue in their valkey package for Red Hat Enterprise Linux 10 and related variants. No known exploits in the wild have been reported.
Potential Impact
The vulnerability allows an attacker to cause a stack overflow in redis-check-aof, which may lead to remote code execution. This could compromise the affected system by allowing arbitrary code execution with the privileges of the redis-check-aof process. The issue affects Redis installations using vulnerable versions and could impact systems relying on redis-check-aof for AOF file checking and repair.
Mitigation Recommendations
An official patch is available and has been released in Redis version 8.0.2. Users should upgrade to version 8.0.2 or later to remediate this vulnerability. Red Hat has provided updated valkey packages for Red Hat Enterprise Linux 10 and related distributions; applying these updates will mitigate the issue. No additional mitigation steps are required beyond applying the official updates.
Technical Details
- Gcve Source
- db.gcve.eu
- Csaf Category
- csaf_security_advisory
- Csaf Version
- 2.0
- Publisher
- Red Hat Product Security
- Advisory Id
- RHSA-2025:11401
- Cve Count
- 3
- Additional Cves
- ["CVE-2025-32023","CVE-2025-48367"]
Threat ID: 6a419cb927e9c79719abe386
Added to database: 06/28/2026, 22:14:17 UTC
Last enriched: 09/08/2026, 15:11:04 UTC
Last updated: 09/10/2026, 19:36:49 UTC
Views: 23
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.