redis-check-aof may lead to stack overflow and potential RCE
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 2 fixed, 1 without a fix
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and Red Hat. Impact type from CWE-121 and the CVSS impact.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
- Fix · CNA redis (redis) Fixed in 8.0.2
Red Hat 2 advisories
- RHSA-2025:12008 Released 2025-07-28 · Red Hat rating Importantredis:7 security update
- Red Hat Enterprise Linux AppStream (v. 9) redis-7.2.10-1.module+el9.6.0+23332+115a3b01.aarch64::redis:7, redis-7.2.10-1.module+el9.6.0+23332+115a3b01.ppc64le::redis:7, redis-7.2.10-1.module+el9.6.0+23332+115a3b01.s390x::redis:7 +7
- RHSA-2025:11401 Released 2025-07-21 · Red Hat rating Importantvalkey security update
- Red Hat Enterprise Linux AppStream (v. 10) valkey-8.0.4-1.el10_0, valkey-devel-8.0.4-1.el10_0
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 9 | Affected | No fix yet: Fix deferred |
| Red Hat Enterprise Linux AppStream (v. 10) | Fixed | RHSA-2025:11401 |
| Red Hat Enterprise Linux AppStream (v. 9) | Fixed | RHSA-2025:12008 |
Not affected: 10 products
- Red Hat AI Inference Server
- Red Hat Ansible Automation Platform 2
- Red Hat Developer Hub 1
- Red Hat Discovery 1
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- Red Hat Enterprise Linux AI (RHEL AI)
- Red Hat OpenShift AI (RHOAI)
- Red Hat Quay 3
- Red Hat Satellite 6
Timeline
- 2026-10-02 Threatist record created from CVE-2025-27151
- 2026-10-27 Affected versions changed · Red Hat
References
More Redis vulnerabilities
- TI-2022-00463 Missing authorization in Debian redis KEVCVSS 3.1CRITICAL 10.0
- TI-2025-31759 Redis Lua Use-After-Free may lead to remote code execution CVSS 3.1CRITICAL 10.0
- TI-2023-18618 Heap overflow in COMMAND GETKEYS and ACL evaluation in Redis CVSS 3.1HIGH 8.8
- TI-2024-20813 Lua library commands may lead to stack overflow and RCE in Redis CVSS 3.1HIGH 8.8
- TI-2022-08647 Heap overflow issue with the Lua cjson library used by Redis CVSS 3.1HIGH 8.8
- TI-2022-08549 Lua scripts can be manipulated to overcome ACL rules in Redis CVSS 3.1HIGH 7.8
Sources
- CVE-2025-27151 · CVE Program
- CVE-2025-27151 · NVD
- FIRST EPSS
- CVE-2025-27151 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences