7.5high
Integer overflow issue with Streams in Redis
- Severity
- 7.5high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 3.81% (higher than 90% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- BIT-KEYDB-2021-32627BIT-REDIS-2021-32627BIT-VALKEY-2021-32627GHSA-f434-69fm-g45v
Description
Redis is an open source, in-memory database that persists on disk. In affected versions an integer overflow bug in Redis can be exploited to corrupt the heap and potentially result with remote code execution. The vulnerability involves changing the default proto-max-bulk-len and client-query-buffer-limit configuration parameters to very large values and constructing specially crafted very large stream elements. The problem is fixed in Redis 6.2.6, 6.0.16 and 5.0.14. For users unable to upgrade 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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| redis redis | >= 5.0.0, < 5.0.14, >= 6.0.0, < 6.0.16, >= 6.2.0, < 6.2.6, from 5.0.0 before 5.0.14, from 6.0.0 before 6.0.16, from 6.2.0 before 6.2.6 | CVE List, NVD |
| fedoraproject fedora | 33, 34, 35 | NVD |
| debian debian_linux | 10.0, 11.0 | NVD |
| netapp management_services_for_element_software | Not specified | NVD |
| netapp management_services_for_netapp_hci | Not specified | NVD |
| oracle communications_operations_monitor | 4.3, 4.4, 5.0 | NVD |
| keydb (Bitnami) | from 5.0.0 before 5.0.14, from 6.0.0 before 6.0.16, from 6.2.0 before 6.2.6 | Bitnami Vulnerability Database |
| redis (Bitnami) | from 5.0.0 before 5.0.14, from 6.0.0 before 6.0.16, from 6.2.0 before 6.2.6 | Bitnami Vulnerability Database |
| valkey (Bitnami) | from 5.0.0 before 5.0.14, from 6.0.0 before 6.0.16, from 6.2.0 before 6.2.6 | Bitnami Vulnerability Database |
All scores
| GitHub_M | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 6.0medium CVSS:2.0 | AV:N/AC:M/Au:S/C:P/I:P/A:P |
| Bitnami Vulnerability Database | high rating |
Classification
What each source says
CVE List
Redis is an open source, in-memory database that persists on disk. In affected versions an integer overflow bug in Redis can be exploited to corrupt the heap and potentially result with remote code execution. The vulnerability involves changing the default proto-max-bulk-len and client-query-buffer-limit configuration parameters to very large values and constructing specially crafted very large stream elements. The problem is fixed in Redis 6.2.6, 6.0.16 and 5.0.14. For users unable to upgrade 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.
NVD (es)
Redis es una base de datos en memoria de código abierto que persiste en el disco. En las versiones afectadas, un bug de desbordamiento de enteros en Redis puede ser explotado para corromper la pila y resultar potencialmente en una ejecución de código remota . La vulnerabilidad consiste en cambiar los parámetros de configuración predeterminados proto-max-bulk-len y client-query-buffer-limit a valores muy grandes y construir elementos de flujo muy grandes especialmente diseñados. El problema es corregido en Redis 6.2.6, 6.0.16 y 5.0.14. Para usuarios que no puedan actualizar, una solución adicional para mitigar el problema sin parchear el ejecutable de redis-server es evitar que los usuarios modifiquen el parámetro de configuración proto-max-bulk-len. Esto puede hacerse usando ACL para restringir a usuarios sin privilegios el uso del comando CONFIG SET
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-32627 changed 2024-08-03 | CVE Terms of Use |
| NVD | CVE-2021-32627 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-KEYDB-2021-32627 changed 2026-09-08 | Apache-2.0 |
| Bitnami Vulnerability Database | BIT-REDIS-2021-32627 changed 2026-09-08 | Apache-2.0 |
| Bitnami Vulnerability Database | BIT-VALKEY-2021-32627 changed 2026-07-08 | Apache-2.0 |