Skip to content
OpenAdvisories
High · 7.0 CVE-2022-35951 EUVD-2022-38797

Redis subject to Integer Overflow leading to Remote Code Execution via Heap Overflow

Published Sep 23, 2022 · Updated Apr 23, 2025 · Assigned by GitHub_M

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 products

VendorProductAffectedFixed
redis redis >= 7.0.0, < 7.0.5 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 redis 5:7.0.5-1 —
Debian 13 redis 5:7.0.5-1 —
Debian 12 redis 5:7.0.5-1 —
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed redis 7.0.5-1.1 openSUSE-SU-2024:12361-1
ReleasePackageFixed inAdvisory
Alpine v3.24 redis 7.0.5-r0 —
Alpine v3.23 redis 7.0.5-r0 —
Alpine v3.22 redis 7.0.5-r0 —
Alpine v3.21 redis 7.0.5-r0 —
Alpine v3.20 redis 7.0.5-r0 —
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 redis 7.0.5-r0 —
Alpine v3.18 redis 7.0.5-r0 —
Alpine v3.17 redis 7.0.5-r0 —
Alpine v3.16 redis 7.0.5-r0 —

Advisories 1

References