Vulnerabilities / CVE-2022-35951

critical

CVE-2022-35951

redis: heap overflow in XAUTOCLAIM command's COUNT argument

Published Modified CWE 190
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Bitnami9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Trivy's own label is CRITICAL. Rated critical by NVD, Bitnami, Photon OS. Rated lower by Red Hat (high).

Description

Redis is an in-memory database that persists on disk. Versions 7.0.0 and above, prior to 7.0.5 are vulnerable to an Integer Overflow. Executing an `XAUTOCLAIM` command on a stream key in a specific state, with a specially crafted `COUNT` argument may cause an integer overflow, a subsequent heap overflow, and potentially lead to remote code execution. This has been patched in Redis version 7.0.5. No known workarounds exist.

Affected packages and fixed versions

SourcePackageFixed in
bitnami::Bitnami Vulnerability Databasekeydb, redis, valkey7.0.5
Photon OS 4.0redis7.0.0-4.ph4
alpine 3.16redis7.0.5-r0
alpine 3.17redis7.0.5-r0
alpine 3.18redis7.0.5-r0
alpine 3.19redis7.0.5-r0
alpine 3.20redis7.0.5-r0
alpine 3.21redis7.0.5-r0
alpine 3.22redis7.0.5-r0
alpine 3.23redis7.0.5-r0
alpine 3.24redis7.0.5-r0
alpine edgeredis7.0.5-r0
Show all 18 entries from 16 sources
SourcePackageFixed in
bitnami::Bitnami Vulnerability Databasekeydb7.0.5
bitnami::Bitnami Vulnerability Databaseredis7.0.5
bitnami::Bitnami Vulnerability Databasevalkey7.0.5
Photon OS 4.0redis7.0.0-4.ph4
alpine 3.16redis7.0.5-r0
alpine 3.17redis7.0.5-r0
alpine 3.18redis7.0.5-r0
alpine 3.19redis7.0.5-r0
alpine 3.20redis7.0.5-r0
alpine 3.21redis7.0.5-r0
alpine 3.22redis7.0.5-r0
alpine 3.23redis7.0.5-r0
alpine 3.24redis7.0.5-r0
alpine edgeredis7.0.5-r0
debian 12redis5:7.0.5-1
debian 13redis5:7.0.5-1
debian 14redis5:7.0.5-1
echoredis5:7.0.5-1

References

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.