Skip to main content
EPSS 1.0%top 41%

redis-check-aof may lead to stack overflow and potential RCE (CVE-2025-27151)

0
Critical
Published: 05/31/2025 (05/31/2025, 05:59:53 UTC)
Source: GCVE Database
Product: redis

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

redhat/valkey
pkg:rpm/redhat/valkey
Affected versions
<10.2<10.3

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

AILast updated: 09/08/2026, 15:11:04 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses