Vulnerability · Published Jul 19, 2022 · Assigned by GitHub_M
CVE-2022-31144Potential heap overflow in Redis
High 7.0
In plain English
A high-severity heap buffer overflow in redis from redis. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 3.2% (higher than 88% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official description
Redis is an in-memory database that persists on disk. A specially crafted `XAUTOCLAIM` command on a stream key in a specific state may result with heap overflow, and potentially remote code execution. This problem affects versions on the 7.x branch prior to 7.0.4. The patch is released in version 7.0.4.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | redis | 7.0.4-r0 | ALPINE-CVE-2022-31144 |
| Alpine:v3.21 | redis | 7.0.4-r0 | ALPINE-CVE-2022-31144 |
| Alpine:v3.22 | redis | 7.0.4-r0 | ALPINE-CVE-2022-31144 |
| Alpine:v3.23 | redis | 7.0.4-r0 | ALPINE-CVE-2022-31144 |
| Alpine:v3.24 | redis | 7.0.4-r0 | ALPINE-CVE-2022-31144 |
| Debian:12 | redis | 5:7.0.4-1 | DEBIAN-CVE-2022-31144 |
| Debian:13 | redis | 5:7.0.4-1 | DEBIAN-CVE-2022-31144 |
| Debian:14 | redis | 5:7.0.4-1 | DEBIAN-CVE-2022-31144 |
| Ubuntu:24.04:LTS | redis | 5:7.0.12-1 | UBUNTU-CVE-2022-31144 |
Affected products (as reported)
Weakness: CWE-122 · Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
References
- https://github.com/redis/redis/security/advisories/GHSA-96f7-42fg-2jrh x_refsource_CONFIRM
- https://github.com/redis/redis/releases/tag/7.0.4 x_refsource_MISC
- https://security.netapp.com/advisory/ntap-20220909-0002/ x_refsource_CONFIRM
- GLSA-202209-17 vendor-advisory, x_refsource_GENTOO