Skip to content
OpenAdvisories
Unscored Public exploit CVE-2018-12326 EUVD-2018-4300GHSA-8829-5g6p-wqm9

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 hig…

Published Jun 17, 2018 · Updated Aug 5, 2024 · Assigned by mitre

Description

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 redis 5:4.0.10-1 —
Debian 13 redis 5:4.0.10-1 —
Debian 12 redis 5:4.0.10-1 —
Debian 9 redis 3:3.2.6-3+deb9u1 DSA-4230-1
Debian 8 redis 2:2.8.17-1+deb8u6 DLA-1396-1
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS redis 5:4.0.9-1ubuntu0.1 —
Ubuntu 16.04 LTS redis 2:3.0.6-1ubuntu0.2 —
Ubuntu 14.04 LTS redis 2:2.8.4-2ubuntu0.2 —
ReleasePackageFixed inAdvisory
RHEL 3 rh-redis32-redis 3.2.13-1.el6 RHSA-2019:1860
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat OpenStack 13 redis 3.2.8-3.el7ost RHSA-2019:0094
Red Hat OpenStack 10 redis 3.0.6-4.el7ost RHSA-2019:0052

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Exploit-DB 1

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 6

References