Heap-based buffer overflow in Redis - CVE-2019-10192

 

Heap-based buffer overflow in Redis - CVE-2019-10192

Published: July 14, 2019


Vulnerability identifier: #VU19167
CSH Severity: Medium
CVSS v4: 7.7 [CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2019-10192
CWE-ID: CWE-122
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error when processing Redis hyperloglog data structure. A remote attacker can carefully corrupt hyperloglog using the SETRANGE command, trigger heap-based buffer overflow and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

Redis
Gentoo Linux
Red Hat Enterprise Linux Server
redis (Debian package)
redis (Alpine package)
rh-redis32-redis (Red Hat package)
rh-redis5-redis (Red Hat package)
Red Hat OpenStack
Red Hat OpenStack for IBM Power
Red Hat OpenStack Director Deployment Tools

How to mitigate CVE-2019-10192

Install updates from vendor's website.

Redis - addressed in versions 3.2.13, 4.0.14, 5.0.4
redis (Debian package) - update to 3:3.2.6-3+deb9u3
redis (Alpine package) - update to 4.0.14-r0
rh-redis32-redis (Red Hat package) - addressed in versions 3.2.13-1.el6, 3.2.13-1.el7
rh-redis5-redis (Red Hat package) - update to 5.0.5-1.el7

External References

Related Security Bulletins