CVE-2021-32675
JSON

7.5high

DoS vulnerability in Redis

Severity
7.5high CVSS:3.1 by GitHub_M
Exploit likelihood
16.1% (higher than 96% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
BIT-KEYDB-2021-32675BIT-REDIS-2021-32675BIT-VALKEY-2021-32675GHSA-f6pw-v9gw-v64p

Description

Redis is an open source, in-memory database that persists on disk. When parsing an incoming Redis Standard Protocol (RESP) request, Redis allocates memory according to user-specified values which determine the number of elements (in the multi-bulk header) and size of each element (in the bulk header). An attacker delivering specially crafted requests over multiple connections can cause the server to allocate significant amount of memory. Because the same parsing mechanism is used to handle authentication requests, this vulnerability can also be exploited by unauthenticated users. The problem is fixed in Redis versions 6.2.6, 6.0.16 and 5.0.14. An additional workaround to mitigate this problem without patching the redis-server executable is to block access to prevent unauthenticated users from connecting to Redis. This can be done in different ways: Using network access control tools like firewalls, iptables, security groups, etc. or Enabling TLS and requiring users to authenticate using client side certificates.

Affected

Product or packageVersionsReported by
redis redis< 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.6CVE List, NVD
fedoraproject fedora33, 34, 35NVD
debian debian_linux10.0, 11.0NVD
netapp management_services_for_element_softwareNot specifiedNVD
netapp management_services_for_netapp_hciNot specifiedNVD
oracle communications_operations_monitor4.3, 4.4, 5.0NVD
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.6Bitnami 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.6Bitnami 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.6Bitnami Vulnerability Database

All scores

GitHub_M7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD5.0medium CVSS:2.0AV:N/AC:L/Au:N/C:N/I:N/A:P
Bitnami Vulnerability Databasehigh rating

Classification

What each source says

CVE List

Redis is an open source, in-memory database that persists on disk. When parsing an incoming Redis Standard Protocol (RESP) request, Redis allocates memory according to user-specified values which determine the number of elements (in the multi-bulk header) and size of each element (in the bulk header). An attacker delivering specially crafted requests over multiple connections can cause the server to allocate significant amount of memory. Because the same parsing mechanism is used to handle authentication requests, this vulnerability can also be exploited by unauthenticated users. The problem is fixed in Redis versions 6.2.6, 6.0.16 and 5.0.14. An additional workaround to mitigate this problem without patching the redis-server executable is to block access to prevent unauthenticated users from connecting to Redis. This can be done in different ways: Using network access control tools like firewalls, iptables, security groups, etc. or Enabling TLS and requiring users to authenticate using client side certificates.

NVD (es)

Redis es una base de datos en memoria de código abierto que persiste en el disco. Cuando es analizada una petición entrante del Protocolo Estándar de Redis (RESP), Redis asigna la memoria de acuerdo con los valores especificados por el usuario, que determinan el número de elementos (en el encabezado multi-bulk) y el tamaño de cada elemento (en el encabezado bulk). Un atacante que envíe peticiones especialmente diseñadas a través de múltiples conexiones puede causar que el servidor asigne una cantidad significativa de memoria. Debido a que el mismo mecanismo de análisis es usado para manejar las peticiones de autenticación, esta vulnerabilidad también puede ser explotada por usuarios no autenticados. El problema se ha corregido en las versiones de Redis 6.2.6, 6.0.16 y 5.0.14. Una solución adicional para mitigar este problema sin necesidad de parchear el ejecutable del servidor Redis es bloquear el acceso para evitar que los usuarios no autentificados se conecten a Redis. Esto puede hacerse de diferentes maneras: Usando herramientas de control de acceso a la red como firewalls, iptables, grupos de seguridad, etc. o Habilitando TLS y requiriendo que los usuarios se autentiquen usando certificados del lado del cliente

References

https://github.com/redis/redis/security/advisories/GHSA-f6pw-v9gw-v64padvisory, third-party-advisory, web
https://github.com/redis/redis/commit/5674b0057ff2903d43eaff802017eddf37c360f8advisory, patch, third-party-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VL5KXFN3ATM7IIM7Q4O4PWTSRGZ5744Z/vendor-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HTYQ5ZF37HNGTZWVNJD3VXP7I6MEEF42/vendor-advisory, web
https://lists.apache.org/thread.html/ra603ff6e04549d7f290f61f9b11e2d2e4dba693b05ff053f4ec6bc47%40%3Cnotifications.geode.apache.org%3Emailing-list, web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WR5WKJWXD4D6S3DJCZ56V74ESLTDQRAB/vendor-advisory, web
https://www.debian.org/security/2021/dsa-5001advisory, third-party-advisory, vendor-advisory, web
https://www.oracle.com/security-alerts/cpuapr2022.htmladvisory, patch, third-party-advisory, web
https://security.netapp.com/advisory/ntap-20211104-0003/advisory, third-party-advisory, web
https://security.gentoo.org/glsa/202209-17advisory, third-party-advisory, vendor-advisory, web
https://nvd.nist.gov/vuln/detail/CVE-2021-32675web

Sources

SourceRecordLicence
CVE ListCVE-2021-32675 changed 2024-08-03CVE Terms of Use
NVDCVE-2021-32675 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-KEYDB-2021-32675 changed 2026-09-08Apache-2.0
Bitnami Vulnerability DatabaseBIT-REDIS-2021-32675 changed 2026-09-08Apache-2.0
Bitnami Vulnerability DatabaseBIT-VALKEY-2021-32675 changed 2026-07-08Apache-2.0