Skip to main content
CVE-2025-27151VulnerabilityPublished Updated

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

Affects redisSource GCVE Database

0
Authoritative record:CVE-2025-27151· Medium 4.7

Not known to be exploited · CVSS 4.7 Medium : upgrade to 10.3 or 10.2 when convenient.

Data as of 26 Oct 2026, 07:57 UTC

CVSS base score
4.7Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
1.0% chance of exploitation in 30 days – higher than 64% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 10.3, 10.2

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 29 May 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-26.

What to do

Upgrade redhat/valkey to 10.3 or 10.2.

Affected software

ProductAffectedFixed in
Red Hatredhat/valkeypkg:rpm/redhat/valkeyOther threatsAffected
  • <10.2
  • <10.3
Fixed in
  • 10.2
  • 10.3

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

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.

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.

References

Community reviews

Loading reviews…