Buffer overflow in redis-cli of Redis before 4.0.10 and 5.x before 5.0 RC3 allows an…
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 9 fixed, 7 without a fix
Attack profile from CVSS 3.0 · NVD. Fix status from CNA and Red Hat. Impact type from CWE-119 and the CVSS impact.
Summary
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
CPE configurations NVD · 3
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:redislabs:redis:*:*:*:*:*:*:*:* | before 4.0.10 | Vulnerable | Redis Labs |
| cpe:2.3:a:redislabs:redis:5.0:rc1:*:*:*:*:*:* | 5.0 rc1 | Vulnerable | Redis Labs |
| cpe:2.3:a:redislabs:redis:5.0:rc2:*:*:*:*:*:* | 5.0 rc2 | Vulnerable | Redis Labs |
- cpe:2.3:a:redislabs:redis:*:*:*:*:*:*:*:* Versions before 4.0.10 Vulnerable ·Redis Labs
- cpe:2.3:a:redislabs:redis:5.0:rc1:*:*:*:*:*:* Versions 5.0 rc1 Vulnerable ·Redis Labs
- cpe:2.3:a:redislabs:redis:5.0:rc2:*:*:*:*:*:* Versions 5.0 rc2 Vulnerable ·Redis Labs
Remediation
Red Hat 3 advisories
- RHSA-2019:1860 Released 2019-07-25 · Red Hat rating Importantrh-redis32-redis security update
- Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6) rh-redis32-redis-3.2.13-1.el6
- Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) rh-redis32-redis-3.2.13-1.el7
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.4) rh-redis32-redis-3.2.13-1.el7
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.5) rh-redis32-redis-3.2.13-1.el7
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.6) rh-redis32-redis-3.2.13-1.el7
- Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6) rh-redis32-redis-3.2.13-1.el6
- Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) rh-redis32-redis-3.2.13-1.el7
- RHSA-2019:0094 Released 2019-01-16 · Red Hat rating Moderateredis security update
- Red Hat OpenStack Platform 13.0 redis-3.2.8-3.el7ost
- RHSA-2019:0052 Released 2019-01-16 · Red Hat rating Moderateredis security update
- Red Hat OpenStack Platform 10.0 redis-3.0.6-4.el7ost
Vendor assessments
Red Hat
Red Hat rating: Low. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux OpenStack Platform 7 (Kilo) | Affected | No fix planned: Will not fix |
| Red Hat Enterprise Linux OpenStack Platform 7 (Kilo) Operational Tools | Affected | No fix planned: Will not fix |
| Red Hat OpenStack Platform 12 (Pike) | Affected | No fix yet: Fix deferred |
| Red Hat OpenStack Platform 8 (Liberty) | Affected | No fix yet: Fix deferred |
| Red Hat OpenStack Platform 8 (Liberty) Operational Tools | Affected | No fix yet: Fix deferred |
| Red Hat OpenStack Platform 9 (Mitaka) | Affected | No fix yet: Fix deferred |
| Red Hat OpenStack Platform 9 (Mitaka) Operational Tools | Affected | No fix yet: Fix deferred |
| Red Hat OpenStack Platform 10.0 | Fixed | RHSA-2019:0052 |
| Red Hat OpenStack Platform 13.0 | Fixed | RHSA-2019:0094 |
| Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6) | Fixed | RHSA-2019:1860 |
| Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) | Fixed | RHSA-2019:1860 |
| Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.4) | Fixed | RHSA-2019:1860 |
| Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.5) | Fixed | RHSA-2019:1860 |
| Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.6) | Fixed | RHSA-2019:1860 |
| Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6) | Fixed | RHSA-2019:1860 |
| Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) | Fixed | RHSA-2019:1860 |
Not affected: 3 products
- Red Hat Ceph Storage 3
- Red Hat Enterprise Linux 8
- Red Hat Mobile Application Platform 4
Timeline
- 2026-10-02 Threatist record created from CVE-2018-12326
- 2026-10-03 Alias added: GHSA-8829-5g6p-wqm9
References
Exploit 1
Patch 3
More Redis Labs Redis vulnerabilities
- TI-2018-07980 Memory Corruption was discovered in the cmsgpack library in the Lua subsystem in Redis… CVSS 3.0CRITICAL 9.8
- TI-2016-06853 Out-of-bounds write in Redis CVSS 3.1CRITICAL 9.8
- TI-2021-12428 Integer overflow issues with *BIT commands on 32-bit systems CVSS 3.1HIGH 7.5
- TI-2015-03637 Redis before 2.8.21 and 3.x before 3.0.2 allows remote attackers to execute arbitrary Lua bytecode via the eval command. CVSS 2.0HIGH 10.0
- TI-2019-07513 Heap-based buffer overflow in redis CVSS 3.1HIGH 7.2
- TI-2018-08939 Type confusion in the xgroupCommand function in t_stream.c in redis-server in Redis… CVSS 3.0HIGH 7.5
Sources
- CVE-2018-12326 · CVE Program
- CVE-2018-12326 · NVD
- FIRST EPSS
- GHSA-8829-5g6p-wqm9 · GitHub Advisory Database · CC BY 4.0
- CVE-2018-12326 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences