CVE-2025-27151: Redis is an open source, in-memory database that persists on disk.
Critical CVSS 9.8
- CVE id
- CVE-2025-27151
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| Redis Runtimes and servers |
>= 7.0.0, < 7.2.9 >= 7.4.0, < 7.4.4 >= 8.0.0, < 8.0.2 |
7.2.9, 7.4.4, 8.0.2 |
How to fix it
Upgrade Redis to the fixed release of the line you run: 7.2.9, 7.4.4, 8.0.2.
redis-server --version
- Install the patched Redis release of your series (the redis image tag or your packages) and restart it; on a managed service, apply the provider's maintenance update.
A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.
Details
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.
References
Am I affected?
Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.
About this data
Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.