CVE-2018-12326
Buffer overflow in redis-cli of Redis before 4.0.10 and 5.x before 5.0 RC3 allows an attacker to...
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.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
8.4
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.
- Record
CVE-2018-12326- CVSS 3.0
- 8.4 High
CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - CVSS 2.0
- 4.6 Medium
AV:L/AC:L/Au:N/C:P/I:P/A:P - Weakness
- CWE-119
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2018-12326- Updated
- 2026-11-02
EUVDEUVD-2018-4300 No score
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.
- Record
EUVD-2018-4300- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-8829-5g6p-wqm9
8.4
Buffer overflow in redis-cli of Redis before 4.0.10 and 5.x before 5.0 RC3 allows an attacker to...
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.
- Record
GHSA-8829-5g6p-wqm9- CVSS 3.0
- 8.4 High
CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-119
- Updated
- 2026-11-02
OSV
8.4
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.
- Record
CVE-2018-12326- CVSS 3.0
- 8.4 High
CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2018-12326
8.4
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.
- Record
DEBIAN-CVE-2018-12326- CVSS 3.0
- 8.4 High
CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
Show 4 moreShow less
OSVRHSA-2019:0052
6.3
Red Hat Security Advisory: redis security update
- Record
RHSA-2019:0052- CVSS 3.0
- 6.3 Medium
CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L - Updated
- 2026-11-02
OSVRHSA-2019:0094
6.3
Red Hat Security Advisory: redis security update
- Record
RHSA-2019:0094- CVSS 3.0
- 6.3 Medium
CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L - Updated
- 2026-11-02
OSVRHSA-2019:1860
7.2
Red Hat Security Advisory: rh-redis32-redis security update
- Record
RHSA-2019:1860- CVSS 3.0
- 7.2 High
CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2018-12326
8.4
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.
- Record
UBUNTU-CVE-2018-12326- CVSS 3.0
- 8.4 High
CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
redisDebian:12 |
before 5:4.0.10-1 | 5:4.0.10-1 |
redisDebian:13 |
before 5:4.0.10-1 | 5:4.0.10-1 |
redisDebian:14 |
before 5:4.0.10-1 | 5:4.0.10-1 |
redisDebian:8 |
before 2:2.8.17-1+deb8u6, plus listed versions 2:2.8.17-12:2.8.17-1+deb8u12:2.8.17-1+deb8u22:2.8.17-1+deb8u32:2.8.17-1+deb8u42:2.8.17-1+deb8u5 |
2:2.8.17-1+deb8u6 |
redisDebian:9 |
before 3:3.2.6-3+deb9u1, plus listed versions 3:3.2.6-13:3.2.6-23:3.2.6-3 |
3:3.2.6-3+deb9u1 |
redisRed Hat:openstack:10::el7 |
before 0:3.0.6-4.el7ost | 0:3.0.6-4.el7ost |
redis-debuginfoRed Hat:openstack:10::el7 |
before 0:3.0.6-4.el7ost | 0:3.0.6-4.el7ost |
redisRed Hat:openstack:13::el7 |
before 0:3.2.8-3.el7ost | 0:3.2.8-3.el7ost |
redis-debuginfoRed Hat:openstack:13::el7 |
before 0:3.2.8-3.el7ost | 0:3.2.8-3.el7ost |
rh-redis32-redisRed Hat:rhel_software_collections:3::el6 |
before 0:3.2.13-1.el6 | 0:3.2.13-1.el6 |
Show 6 moreShow less
| Package | Affected | Fixed |
|---|---|---|
rh-redis32-redis-debuginfoRed Hat:rhel_software_collections:3::el6 |
before 0:3.2.13-1.el6 | 0:3.2.13-1.el6 |
rh-redis32-redisRed Hat:rhel_software_collections:3::el7 |
before 0:3.2.13-1.el7 | 0:3.2.13-1.el7 |
rh-redis32-redis-debuginfoRed Hat:rhel_software_collections:3::el7 |
before 0:3.2.13-1.el7 | 0:3.2.13-1.el7 |
redisUbuntu:14.04:LTS |
before 2:2.8.4-2ubuntu0.2, plus listed versions 2:2.6.13-12:2.6.16-32:2.8.0-12:2.8.2-12:2.8.4-2 |
2:2.8.4-2ubuntu0.2 |
redisUbuntu:16.04:LTS |
before 2:3.0.6-1ubuntu0.2, plus listed versions 2:3.0.3-32:3.0.5-12:3.0.5-22:3.0.5-32:3.0.5-42:3.0.6-1 |
2:3.0.6-1ubuntu0.2 |
redisUbuntu:18.04:LTS |
before 5:4.0.9-1ubuntu0.1, plus listed versions 4:4.0.1-74:4.0.2-64:4.0.2-95:4.0.5-15:4.0.6-1 Show 5 moreShow less5:4.0.6-25:4.0.7-15:4.0.8-15:4.0.8-25:4.0.9-1 |
5:4.0.9-1ubuntu0.1 |
Public exploits
Links only. Every CVE stores no exploit code.
| Source | Link | Date |
|---|---|---|
| Exploit-DB | Redis-cli < 5.0 - Buffer Overflow (PoC) | 2018-06-18 |
| PoC in GitHub | spasm5/CVE-2018-12326 | 2022-03-25 |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE List, Exploit-DB, GitHub Advisories, NVD, OSV, PoC in GitHub |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2018-12326 is a high vulnerability (CVSS 8.4) in Redislabs Redis, published June 17, 2018. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 2.58%, the 85th percentile. Fixed in redis 5:4.0.10-1.
References
gist.github.com/fakhrizulkifli/f831f40ec6cde4f744c552503d8698f0
exploit-db.com/exploits/44904
access.redhat.com/errata/RHSA-2019:0052
access.redhat.com/errata/RHSA-2019:0094
github.com/antirez/redis/commit/9fdcc15962f9ff4baebe6fdd947816f43f730d50
raw.githubusercontent.com/antirez/redis/4.0/00-RELEASENOTES
Show 27 moreShow less
raw.githubusercontent.com/antirez/redis/5.0/00-RELEASENOTES
access.redhat.com/errata/RHSA-2019:1860
nvd.nist.gov/vuln/detail/CVE-2018-12326
github.com/advisories/GHSA-8829-5g6p-wqm9
security-tracker.debian.org/tracker/CVE-2018-12326
access.redhat.com/security/updates/classification
bugzilla.redhat.com/show_bug.cgi?id=1590062
bugzilla.redhat.com/show_bug.cgi?id=1590067
bugzilla.redhat.com/show_bug.cgi?id=1594291
security.access.redhat.com/data/csaf/v2/advisories/2019/rhsa-2019_0052.json
access.redhat.com/security/cve/CVE-2018-11218
cve.org/CVERecord?id=CVE-2018-11218
nvd.nist.gov/vuln/detail/CVE-2018-11218
antirez.com/news/119
access.redhat.com/security/cve/CVE-2018-11219
cve.org/CVERecord?id=CVE-2018-11219
nvd.nist.gov/vuln/detail/CVE-2018-11219
access.redhat.com/security/cve/CVE-2018-12326
cve.org/CVERecord?id=CVE-2018-12326
security.access.redhat.com/data/csaf/v2/advisories/2019/rhsa-2019_0094.json
bugzilla.redhat.com/show_bug.cgi?id=1723918
security.access.redhat.com/data/csaf/v2/advisories/2019/rhsa-2019_1860.json
access.redhat.com/security/cve/CVE-2019-10192
cve.org/CVERecord?id=CVE-2019-10192
nvd.nist.gov/vuln/detail/CVE-2019-10192
raw.githubusercontent.com/antirez/redis/3.2/00-RELEASENOTES
ubuntu.com/security/CVE-2018-12326