{"id":"CVE-2021-32687","details":"Redis is an open source, in-memory database that persists on disk. An integer overflow bug affecting all versions of Redis can be exploited to corrupt the heap and potentially be used to leak arbitrary contents of the heap or trigger remote code execution. The vulnerability involves changing the default set-max-intset-entries configuration parameter to a very large value and constructing specially crafted commands to manipulate sets. The problem is fixed in Redis versions 6.2.6, 6.0.16 and 5.0.14. An additional workaround to mitigate the problem without patching the redis-server executable is to prevent users from modifying the set-max-intset-entries configuration parameter. This can be done using ACL to restrict unprivileged users from using the CONFIG SET command.","aliases":["BIT-keydb-2021-32687","BIT-redis-2021-32687","BIT-valkey-2021-32687","GHSA-m3mf-8x9w-r27q"],"modified":"2026-10-24T13:58:44.624490783Z","published":"2021-10-04T18:15:08.980Z","related":["ALSA-2021:3918","ALSA-2021:3945","SUSE-SU-2021:3772-1","openSUSE-SU-2021:3772-1","openSUSE-SU-2024:11563-1"],"database_specific":{"unresolved_ranges":[{"cpes":["cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*"],"extracted_events":[{"range":[{"introduced":"10.0"},{"last_affected":"10.0"},{"introduced":"11.0"},{"last_affected":"11.0"}],"source":"CPE_STRING"}],"vendor_product":"debian:debian_linux"},{"cpes":["cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*","cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*","cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*"],"extracted_events":[{"range":[{"introduced":"33"},{"last_affected":"33"},{"introduced":"34"},{"last_affected":"34"},{"introduced":"35"},{"last_affected":"35"}],"source":"CPE_STRING"}],"vendor_product":"fedoraproject:fedora"},{"vendor_product":"oracle:communications_operations_monitor","cpes":["cpe:2.3:a:oracle:communications_operations_monitor:4.3:*:*:*:*:*:*:*","cpe:2.3:a:oracle:communications_operations_monitor:4.4:*:*:*:*:*:*:*","cpe:2.3:a:oracle:communications_operations_monitor:5.0:*:*:*:*:*:*:*"],"extracted_events":[{"source":"CPE_STRING","range":[{"introduced":"4.3"},{"last_affected":"4.3"},{"introduced":"4.4"},{"last_affected":"4.4"},{"introduced":"5.0"},{"last_affected":"5.0"}]}]}]},"references":[{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HTYQ5ZF37HNGTZWVNJD3VXP7I6MEEF42/"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VL5KXFN3ATM7IIM7Q4O4PWTSRGZ5744Z/"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WR5WKJWXD4D6S3DJCZ56V74ESLTDQRAB/"},{"type":"ADVISORY","url":"https://github.com/redis/redis/security/advisories/GHSA-m3mf-8x9w-r27q"},{"type":"ADVISORY","url":"https://security.gentoo.org/glsa/202209-17"},{"type":"ADVISORY","url":"https://security.netapp.com/advisory/ntap-20211104-0003/"},{"type":"ADVISORY","url":"https://www.debian.org/security/2021/dsa-5001"},{"type":"FIX","url":"https://github.com/redis/redis/commit/a30d367a71b7017581cf1ca104242a3c644dec0f"},{"type":"FIX","url":"https://www.oracle.com/security-alerts/cpuapr2022.html"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/redis/redis","events":[{"introduced":"882ca6962f4ca32683b0e8db831de1b425c27d3c"},{"fixed":"704ba5f5b22ae1ecafbcfb7a3258311c27ff94ff"},{"introduced":"17dfd7cabbf7954f92b7a1243d4bb27fee5d4500"},{"fixed":"5895d119b1c2825ff0394f30e246e036c3972bc5"},{"introduced":"445aa844b946a8f1bc21ac8554b44adb1ecb4018"},{"fixed":"4930d19e70c391750479951022e207e19111eb55"},{"fixed":"a30d367a71b7017581cf1ca104242a3c644dec0f"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"5.0.0"},{"fixed":"5.0.14"}],"source":"CPE_RANGE","cpe":"cpe:2.3:a:redis:redis:*:*:*:*:*:*:*:*"},{"cpe":"cpe:2.3:a:redis:redis:*:*:*:*:*:*:*:*","range":[{"introduced":"6.0.0"},{"fixed":"6.0.16"}],"source":"CPE_RANGE"},{"range":[{"introduced":"6.2.0"},{"fixed":"6.2.6"}],"source":"CPE_RANGE","cpe":"cpe:2.3:a:redis:redis:*:*:*:*:*:*:*:*"},{"source":"REFERENCES_COMMIT","range":[{"fixed":"a30d367a71b7017581cf1ca104242a3c644dec0f"}]}]}}],"versions":["6.2.5","6.0.15","5.0.13","5.0.12","6.0.14","6.2.4","6.2.3","6.0.13","6.2.2","6.0.12","6.2.1","6.2.0","6.0.11","5.0.11","5.0.10","6.0.10","6.0.9","6.0.8","6.0.7","6.0.6","6.0.5","6.0.4","6.0.3","6.0.2","6.0.1","6.0.0","5.0.9","5.0.8","5.0.7","5.0.6","5.0.5","5.0.4","5.0.3","5.0.2","5.0.1","5.0.0"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-32687.json","vanir_signatures":[{"digest":{"length":796,"function_hash":"163374385307919996169603807566722008298"},"id":"CVE-2021-32687-09ba254e","signature_type":"Function","signature_version":"v1","source":"https://github.com/redis/redis/commit/a30d367a71b7017581cf1ca104242a3c644dec0f","target":{"function":"setTypeAdd","file":"src/t_set.c"},"deprecated":false},{"signature_version":"v1","source":"https://github.com/redis/redis/commit/a30d367a71b7017581cf1ca104242a3c644dec0f","target":{"function":"intsetResize","file":"src/intset.c"},"deprecated":false,"digest":{"function_hash":"217063412695412142447083598775486453418","length":181},"id":"CVE-2021-32687-0e358c91","signature_type":"Function"},{"digest":{"line_hashes":["140849402641415107276920796326342243538","333118168896657835652472093189441187232","177324244873274311681210084292119202060","308065048512062839392776920498412187852","310703842695805511237573896521209319241","331168296259049404326064170252063855112","269902090033988468564013793944401229956","100237252929914813264200488194405682217"],"threshold":0.9},"id":"CVE-2021-32687-17de4435","signature_type":"Line","signature_version":"v1","source":"https://github.com/redis/redis/commit/a30d367a71b7017581cf1ca104242a3c644dec0f","target":{"file":"src/intset.c"},"deprecated":false},{"id":"CVE-2021-32687-77d15c7b","signature_type":"Function","signature_version":"v1","source":"https://github.com/redis/redis/commit/a30d367a71b7017581cf1ca104242a3c644dec0f","target":{"function":"rdbLoadObject","file":"src/rdb.c"},"deprecated":false,"digest":{"length":12233,"function_hash":"276374166453835116410816728935794231984"}},{"source":"https://github.com/redis/redis/commit/a30d367a71b7017581cf1ca104242a3c644dec0f","target":{"file":"src/rdb.c"},"deprecated":false,"digest":{"line_hashes":["106521085850135694835085511936269110113","199585812136464185892049582304248925649","283358587199406723104373641907616742524","310658462356237403657528470863930625417"],"threshold":0.9},"id":"CVE-2021-32687-aa835a9d","signature_type":"Line","signature_version":"v1"},{"digest":{"line_hashes":["42972112153381367478724153702700649638","122192708489737370840450715535837563512","46113033731694472795238659054787843228","313031480431835061739073001623099059075"],"threshold":0.9},"id":"CVE-2021-32687-e538c15f","signature_type":"Line","signature_version":"v1","source":"https://github.com/redis/redis/commit/a30d367a71b7017581cf1ca104242a3c644dec0f","target":{"file":"src/t_set.c"},"deprecated":false}],"vanir_signatures_modified":"2026-10-24T13:58:44Z"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}