CVE-2021-31294: Redis before 6cbea7d allows a replica to cause an assertion failure in a primary server by sending a non-administrative command (specifically, a SET command).
Medium CVSS 5.9
- CVE id
- CVE-2021-31294
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| Redis Runtimes and servers |
< 6.2.0 | 6.2.0 |
How to fix it
Upgrade Redis to 6.2.0 or later.
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 before 6cbea7d allows a replica to cause an assertion failure in a primary server by sending a non-administrative command (specifically, a SET command). NOTE: this was fixed for Redis 6.2.x and 7.x in 2021. Versions before 6.2 were not intended to have safety guarantees related to this.
References
- CVE-2021-31294 on the NVD
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2021-31294
- Web: https://github.com/redis/redis/commit/46f4ebbe842620f0976a36741a72482620aa4b48
- Web: https://github.com/redis/redis/commit/6cbea7d29b5285692843bc1c351abba1a7ef326f
- Web: https://github.com/redis/redis/issues/8712
- Web: https://security.netapp.com/advisory/ntap-20230814-0007/
- Web: https://github.com/redis/redis/commit/46f4ebbe842620f0976a36741a72482620aa4b48
- Web: https://github.com/redis/redis/commit/6cbea7d29b5285692843bc1c351abba1a7ef326f
- Web: https://github.com/redis/redis/issues/8712
- Web: https://security.netapp.com/advisory/ntap-20230814-0007/
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.