{"id":"CVE-2021-32761","published":"2021-07-21T20:50:09Z","modified":"2024-08-03T23:33:55Z","title":"Integer overflow issues with *BIT commands on 32-bit systems","vendor":"redis","product":"redis","tier":"tail","description":{"text":"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-server` executable is to prevent users from modifying the `proto-max-bulk-len` configuration parameter. This can be done using ACL to restrict unprivileged users from using the CONFIG SET command.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.30103,"percentile":0.98256,"provenance":"source"},"cwes":[{"id":"CWE-125","name":"Out-of-bounds Read"},{"id":"CWE-680","name":"Integer Overflow to Buffer Overflow"}],"references":[{"url":"https://github.com/redis/redis/security/advisories/GHSA-8wxq-j7rp-g8wj","tags":["x_refsource_CONFIRM"]},{"url":"https://lists.debian.org/debian-lts-announce/2021/07/msg00017.html","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VGX7RRAWGXWXEAKJTQYSDSBO2BC3SAHD/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6O7AUOROBYGP5IMGJPC5HZ3R2RB6GZ5X/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://security.netapp.com/advisory/ntap-20210827-0004/","tags":["x_refsource_CONFIRM"]},{"url":"https://lists.debian.org/debian-lts-announce/2021/08/msg00026.html","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://www.debian.org/security/2021/dsa-5001","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"https://security.gentoo.org/glsa/202209-17","tags":["vendor-advisory","x_refsource_GENTOO"]}],"priority":{"score":24.9,"factors":[{"name":"EPSS percentile","points":19.65},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"redis","affectedVersions":[{"vendor":"redis","product":"redis","versions":[">= 2.2, < 5.0.13",">= 6.0.0, < 6.0.15",">= 6.2.0, < 6.2.5"]}],"summary":{"text":"The flaw is an integer overflow in the *BIT* commands of Redis, the in-memory database, affecting versions from 2.2 up to (but not including) 5.0.13, 6.0.15 and 6.2.5, and only on 32-bit systems or 32-bit builds. An attacker who can send network commands to a vulnerable Redis server, with low privileges and the proto-max-bulk-len parameter raised to a very large value, can use specially crafted bit commands to corrupt the heap, leak heap contents, or potentially execute code remotely.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:35:45Z"},"euvd":{"id":"EUVD-2021-19529","exploited":false,"provenance":"source"}}