CVE-2018-12326: Buffer Overflow
A flaw was found in Redis before 4.0.10 and 5.x before 5.0 RC2. A buffer overflow in redis-cli allows an attacker to achieve code execution and escalate to higher privileges via a crafted command line.
References: https://raw.githubusercontent.com/antirez/redis/4.0/00-RELEASENOTES https://raw.githubusercontent.com/antirez/redis/5.0/00-RELEASENOTES https://gist.github.com/fakhrizulkifli/f831f40ec6cde4f744c552503d8698f0 https://www.exploit-db.com/exploits/44904/
Patch: https://github.com/antirez/redis/commit/9fdcc15962f9ff4baebe6fdd947816f43f730d50
Other sources
Buffer overflow in redis-cli of Redis before 4.0.10 and 5.x before 5.0 RC3 allows an attacker to achieve code execution and escalate to higher privileges via a crafted command line. NOTE: It is unclear whether there are any common situations in which redis-cli is used with, for example, a -h (aka hostname) argument from an untrusted source.
— MITRE
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the vulnerability ID?
The vulnerability ID is CVE-2018-12326.
What is the severity of CVE-2018-12326?
The severity of CVE-2018-12326 is high with a CVSS score of 8.4.
Which software versions are affected by CVE-2018-12326?
CVE-2018-12326 affects Redis versions before 4.0.10 and 5.x before 5.0 RC3.
How can an attacker exploit CVE-2018-12326?
An attacker can exploit CVE-2018-12326 by using a crafted command line in the redis-cli tool, allowing code execution and privilege escalation.
Where can I find more information about CVE-2018-12326?
More information about CVE-2018-12326 can be found at the following references: [Reference 1](https://access.redhat.com/errata/RHSA-2019:0052), [Reference 2](https://access.redhat.com/errata/RHSA-2019:0094), [Reference 3](https://access.redhat.com/errata/RHSA-2019:1860).