CVE-2021-41099
JSON

7.5high

Integer overflow issue with strings in Redis

Severity
7.5high CVSS:3.1 by GitHub_M
Exploit likelihood
3.50% (higher than 89% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
BIT-KEYDB-2021-41099BIT-REDIS-2021-41099BIT-VALKEY-2021-41099GHSA-j3cr-9h5g-6cph

Description

Redis is an open source, in-memory database that persists on disk. An integer overflow bug in the underlying string library can be used to corrupt the heap and potentially result with denial of service or remote code execution. The vulnerability involves changing the default proto-max-bulk-len configuration parameter to a very large value and constructing specially crafted network payloads or commands. 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 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 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_software_and_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:H/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD6.0medium CVSS:2.0AV:N/AC:M/Au:S/C:P/I:P/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. An integer overflow bug in the underlying string library can be used to corrupt the heap and potentially result with denial of service or remote code execution. The vulnerability involves changing the default proto-max-bulk-len configuration parameter to a very large value and constructing specially crafted network payloads or commands. 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 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. Un fallo de desbordamiento de enteros en la biblioteca de cadenas subyacente puede ser usado para corromper la pila y resultar potencialmente en una denegación de servicio o una ejecución de código remota. La vulnerabilidad implica cambiar el parámetro de configuración proto-max-bulk-len predeterminado a un valor muy grande y construir cargas útiles o comandos de red especialmente diseñados. 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 el problema sin necesidad de parchear el ejecutable de redis-server es prevenir que los usuarios modifiquen el parámetro de configuración proto-max-bulk-len. Esto puede hacerse usando ACL para restringir a usuarios no privilegiados el uso del comando CONFIG SET

References

https://github.com/redis/redis/security/advisories/GHSA-j3cr-9h5g-6cphadvisory, third-party-advisory, web
https://github.com/redis/redis/commit/c6ad876774f3cc11e32681ea02a2eead00f2c521advisory, 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.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-41099web

Sources

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