Out-of-bounds Read Affecting antirez/redis package, versions [2.2.0,5.0.13)[6.0,6.0.15)[6.2.0,6.2.5)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
1.43% (87th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-ANTIREZREDIS-2365161
  • published26 Jan 2022
  • disclosed21 Jul 2021
  • creditUnknown

Introduced: 21 Jul 2021

CVE-2021-32761  (opens in a new tab)
CWE-125  (opens in a new tab)
CWE-680  (opens in a new tab)

How to fix?

Upgrade antirez/redis to version 5.0.13, 6.0.15, 6.2.5 or higher.

Overview

Affected versions of this package are vulnerable to Out-of-bounds Read. Redis is an in-memory database that persists on disk. A vulnerability involving out-of-bounds read and integer overflow to buffer overflow exists starting with version 2.2 and prior to versions 5.0.13, 6.0.15, and 6.2.5. On 32-bit systems, Redis *BIT* command are vulnerable to integer overflow that can potentially be exploited to corrupt the heap, leak arbitrary heap contents or trigger remote code execution. The vulnerability involves changing the default proto-max-bulk-len configuration parameter to a very large value and constructing specially crafted commands bit commands. This problem only affects Redis on 32-bit platforms, or compiled as a 32-bit binary. Redis versions 5.0.3m 6.0.15, and 6.2.5 contain patches for this issue. An additional workaround to mitigate the problem without patching the redis-serverexecutable is to prevent users from modifying theproto-max-bulk-len` configuration parameter. This can be done using ACL to restrict unprivileged users from using the CONFIG SET command.

References

CVSS Scores

version 3.1