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.

Severity (CVSS 3.1)7.0High
Exploit odds (30 days)3.2%top 11.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack tooling1Public PoC

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

EcosystemPackageFixed inAdvisory
Alpine:v3.20redis7.0.4-r0ALPINE-CVE-2022-31144
Alpine:v3.21redis7.0.4-r0ALPINE-CVE-2022-31144
Alpine:v3.22redis7.0.4-r0ALPINE-CVE-2022-31144
Alpine:v3.23redis7.0.4-r0ALPINE-CVE-2022-31144
Alpine:v3.24redis7.0.4-r0ALPINE-CVE-2022-31144
Debian:12redis5:7.0.4-1DEBIAN-CVE-2022-31144
Debian:13redis5:7.0.4-1DEBIAN-CVE-2022-31144
Debian:14redis5:7.0.4-1DEBIAN-CVE-2022-31144
Ubuntu:24.04:LTSredis5:7.0.12-1UBUNTU-CVE-2022-31144

Affected products (as reported)

VendorProductVersions
redis redis >= 7.0.0, < 7.0.4

Weakness: CWE-122 · Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

References