CVE-2025-27151: redis-check-aof may lead to stack overflow and potential RCE
Noroxi assessment
Priority: Monitor (action score 39/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 1% (FIRST EPSS); higher than 65% of all records.
- Anyone who can reach it over the internet can trigger it. No account or password is required. No user action is required. No special conditions are required; it is repeatable.
- Fixed version: redis redis 8.0.2; azl3 valkey 8.0.3-3 on Azure Linux 3.0 8.0.3-3.
- Severity is disputed: the assigning authority (CNA) scores it 4.7, NVD 9.8.
Low priority for now. Upgrade to redis redis 8.0.2; azl3 valkey 8.0.3-3 on Azure Linux 3.0 8.0.3-3 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
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.
- Published
- May 29, 2025
- Updated
- Jun 17, 2026
- EPSS
- 1.0% · 65th percentile
- CWE
- CWE-20
Report tools
Action score
39
Low priority for now.
- CVSS
- 39 / 40 · 9.8 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 0 / 30 · 1.0%
CISA SSVC decision
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
Vulnrichment: CISA's decision-tree inputs.
CNA vs NVD score
- NVD
- 9.8
- CNA · GitHub_M
- 4.7
- 5.1 point gap
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Is Redis on your server exposed to the internet?Run a port scan
Is your version affected? Check itNoroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| redis | redis | cpe:2.3:a:redis:redis |
Using redis? Add it to your stack and be the first to know about CVEs like this one. (Redis)
Is Redis on your server exposed to the internet?
The free port scanner finds the open ports on your server and matches the service versions it can read against known vulnerabilities. No account needed.
Run a port scanVersions reported by the vendor
Affected version ranges reported by the assigning authority (GitHub_M). Independent of NVD's CPE analysis and usually ahead of it.
redis redis
- >= 7.0.0, < 8.0.2affected
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- redis redis7.0.0 and later · before 7.2.9
- redis redis7.4.0 and later · before 7.4.4
- redis redis8.0.0 and later · before 8.0.2
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| AlmaLinux:10 | valkey | before 8.0.4-1.el10_0 | 8.0.4-1.el10_0 |
| AlmaLinux:10 | valkey-devel | before 8.0.4-1.el10_0 | 8.0.4-1.el10_0 |
| AlmaLinux:9 | redis | before 7.2.10-1.module_el9.6.0+173+efaf9205 | 7.2.10-1.module_el9.6.0+173+efaf9205 |
| AlmaLinux:9 | redis-devel | before 7.2.10-1.module_el9.6.0+173+efaf9205 | 7.2.10-1.module_el9.6.0+173+efaf9205 |
| AlmaLinux:9 | redis-doc | before 7.2.10-1.module_el9.6.0+173+efaf9205 | 7.2.10-1.module_el9.6.0+173+efaf9205 |
| Alpine:v3.18 | redis | from 7.0.0 · before 7.0.15-r4 | 7.0.15-r4 |
| Alpine:v3.19 | redis | from 7.0.0 · before 7.2.9-r0 | 7.2.9-r0 |
| Alpine:v3.20 | redict | before 7.3.3-r1 | 7.3.3-r1 |
| Alpine:v3.20 | valkey | before 7.2.9-r1 | 7.2.9-r1 |
| Alpine:v3.22 | redis | from 7.0.0 · before 8.0.2-r0 | 8.0.2-r0 |
| Alpine:v3.22 | valkey | before 8.1.1-r1 | 8.1.1-r1 |
| Debian:12 | redis | before 5:7.0.15-1~deb12u5 | 5:7.0.15-1~deb12u5 |
| Debian:13 | redis | before 5:8.0.2-2 | 5:8.0.2-2 |
| Debian:13 | valkey | before 8.1.1+dfsg1-1.1 | 8.1.1+dfsg1-1.1 |
| Debian:14 | redict | before 7.3.5+ds-1 | 7.3.5+ds-1 |
| openSUSE:Leap 15.6 | redis | before 7.2.4-150600.3.12.1 | 7.2.4-150600.3.12.1 |
| openSUSE:Leap 15.6 | redis7 | before 7.0.8-150600.8.16.1 | 7.0.8-150600.8.16.1 |
| openSUSE:Leap 15.6 | valkey | before 8.0.2-150600.13.11.1 | 8.0.2-150600.13.11.1 |
| openSUSE:Tumbleweed | redis | before 8.0.2-1.1 | 8.0.2-1.1 |
| openSUSE:Tumbleweed | valkey | before 8.1.2-1.1 | 8.1.2-1.1 |
| Red Hat:enterprise_linux:10.0 | valkey | before 0:8.0.4-1.el10_0 | 0:8.0.4-1.el10_0 |
| Red Hat:enterprise_linux:10.0 | valkey-debuginfo | before 0:8.0.4-1.el10_0 | 0:8.0.4-1.el10_0 |
| Red Hat:enterprise_linux:10.0 | valkey-debugsource | before 0:8.0.4-1.el10_0 | 0:8.0.4-1.el10_0 |
| Red Hat:enterprise_linux:10.0 | valkey-devel | before 0:8.0.4-1.el10_0 | 0:8.0.4-1.el10_0 |
+12
Same product
redis: all recordsOther highest-scoring records for the same primary product.
- CVE-2022-0543It was discovered, that redis, a persistent key-value database, due to a packaging issue, is prone to a (Debian-specific) Lua sandbox…KEV100Now
- CVE-2025-49844Redis Lua Use-After-Free may lead to remote code execution64This week
- CVE-2023-36824Heap overflow in COMMAND GETKEYS and ACL evaluation in Redis58Plan
Published before and after this one in the same product
- ← EarlierCVE-2024-51741Jan 6, 2025 · Redis allows denial-of-service due to malformed ACL selectors17Monitor
- ← EarlierCVE-2025-21605Apr 23, 2025 · Redis DoS Vulnerability due to unlimited growth of output buffers abused by unauthenticated client30Monitor
- Later →CVE-2025-32023Jul 7, 2025 · Redis allows out of bounds writes in hyperloglog commands leading to RCE33Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| redis redis | 8.0.2 · description | Vendor (CNA) |
| azl3 valkey 8.0.3-3 on Azure Linux 3.0 | 8.0.3-3 · CBL-Mariner Releases | Microsoft (MSRC) |
| almalinux:redis | 7.2.10-1.module_el9.6.0+173+efaf9205 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:redis-devel | 7.2.10-1.module_el9.6.0+173+efaf9205 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:redis-doc | 7.2.10-1.module_el9.6.0+173+efaf9205 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:valkey | 8.0.4-1.el10_0 · AlmaLinux:10 | Package registry (OSV) |
| almalinux:valkey-devel | 8.0.4-1.el10_0 · AlmaLinux:10 | Package registry (OSV) |
| alpine:redict | 7.3.3-r1 · Alpine:v3.20 | Package registry (OSV) |
| alpine:redis | 7.0.15-r4 · Alpine:v3.18 | Package registry (OSV) |
| alpine:valkey | 7.2.9-r1 · Alpine:v3.20 | Package registry (OSV) |
| debian:redict | 7.3.5+ds-1 · Debian:14 | Package registry (OSV) |
| debian:redis | 5:7.0.15-1~deb12u5 · Debian:12 | Package registry (OSV) |
| debian:valkey | 8.1.1+dfsg1-1.1 · Debian:13 | Package registry (OSV) |
| opensuse:redis | 7.2.4-150600.3.12.1 · openSUSE:Leap 15.6 | Package registry (OSV) |
| opensuse:redis7 | 7.0.8-150600.8.16.1 · openSUSE:Leap 15.6 | Package registry (OSV) |
| opensuse:valkey | 8.0.2-150600.13.11.1 · openSUSE:Leap 15.6 | Package registry (OSV) |
| red hat:redis | 0:7.2.10-1.module+el9.6.0+23332+115a3b01 · Red Hat:enterprise_linux:9::appstream | Package registry (OSV) |
| red hat:redis-debuginfo | 0:7.2.10-1.module+el9.6.0+23332+115a3b01 · Red Hat:enterprise_linux:9::appstream | Package registry (OSV) |
| red hat:redis-debugsource | 0:7.2.10-1.module+el9.6.0+23332+115a3b01 · Red Hat:enterprise_linux:9::appstream | Package registry (OSV) |
| red hat:redis-devel | 0:7.2.10-1.module+el9.6.0+23332+115a3b01 · Red Hat:enterprise_linux:9::appstream | Package registry (OSV) |
| red hat:redis-doc | 0:7.2.10-1.module+el9.6.0+23332+115a3b01 · Red Hat:enterprise_linux:9::appstream | Package registry (OSV) |
| red hat:valkey | 0:8.0.4-1.el10_0 · Red Hat:enterprise_linux:10.0 | Package registry (OSV) |
| red hat:valkey-debuginfo | 0:8.0.4-1.el10_0 · Red Hat:enterprise_linux:10.0 | Package registry (OSV) |
| red hat:valkey-debugsource | 0:8.0.4-1.el10_0 · Red Hat:enterprise_linux:10.0 | Package registry (OSV) |
| red hat:valkey-devel | 0:8.0.4-1.el10_0 · Red Hat:enterprise_linux:10.0 | Package registry (OSV) |
| rocky linux:redis | 0:7.2.10-1.module+el9.6.0+32323+e27e860a · Rocky Linux:9 | Package registry (OSV) |
| rocky linux:valkey | 0:8.0.4-1.el10_0 · Rocky Linux:10 | Package registry (OSV) |
| suse:redis | 7.2.4-150600.3.12.1 · SUSE:Linux Enterprise Module for Server Applications 15 SP6 | Package registry (OSV) |
| suse:redis7 | 7.0.8-150600.8.16.1 · SUSE:Linux Enterprise Module for Server Applications 15 SP6 | Package registry (OSV) |
| suse:valkey | 8.0.2-150600.13.11.1 · SUSE:Linux Enterprise Module for Server Applications 15 SP6 | Package registry (OSV) |
+1
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
- CVE-2024-31449234 days apartLua library commands may lead to stack overflow and RCE in Redis36Monitor
- CVE-2025-62507159 days apartRedis: Bug in XACKDEL may lead to stack overflow and potential RCE32Monitor
- CVE-2024-51741143 days apartRedis allows denial-of-service due to malformed ACL selectors17Monitor
- CVE-2024-31227234 days apartDenial-of-service due to malformed ACL selectors in Redis17Monitor
Bug bounty scope
The product’s vendor appears in a public program. Matched by name; verify the scope text in the program.
Not on record for this CVE: EPSS history · researcher credit.
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- No account or password is required.
- No user action is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- high · data can be read
- Integrity
- high · data or configuration can be modified
- Availability
- high · the service can be disrupted
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- High
- Integrity impact
- High
- Availability impact
- High
Weakness class (CWE)
CWE-20 · Improper Input ValidationCVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
- Buffer Overflow via Environment VariablesCAPEC-10likelihood: High · High
- Server Side Include (SSI) InjectionCAPEC-101likelihood: High · High
- Cross Zone ScriptingCAPEC-104likelihood: Medium · High
- Command Line Execution through SQL InjectionCAPEC-108likelihood: Low · Very High
- Object Relational Mapping InjectionCAPEC-109likelihood: Low · High
- SQL Injection through SOAP Parameter TamperingCAPEC-110likelihood: High · Very High
- Double EncodingCAPEC-120likelihood: Low · Medium
- Subverting Environment Variable ValuesCAPEC-13likelihood: High · Very High
ATT&CK techniques
- Obfuscated Files or InformationT1027
- Masquerading: Invalid Code SignatureT1036.001
- Steal Web Session CookieT1539
- Subvert Trust Controls: Code SigningT1553.002
- Impair Defenses:Impair Command History LoggingT1562.003
- Hijack Execution Flow:Dynamic Linker HijackingT1574.006
- Hijack Execution Flow:Path Interception by PATH Environment VariableT1574.007
Change log (1)
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (2 more)Show less
Vendor advisories and official records. Exploit/PoC links are deliberately left out.