CVE-2018-12326
published 2018-06-17CVE-2018-12326: 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…
PriorityP349high8.4CVSS 3.0
AVLACLPRNUINSUCHIHAH
EXPLOIT
EPSS
2.68%
83.9th percentile
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.
Affected
7 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | redis | < redis 5:4.0.10-1 (bookworm) | redis 5:4.0.10-1 (bookworm) |
| redis | redis | >= 0 < 5:4.0.10-1 | 5:4.0.10-1 |
| redis | redis | >= 0 < 5:4.0.10-1 | 5:4.0.10-1 |
| redis | redis | >= 0 < 5:4.0.10-1 | 5:4.0.10-1 |
| redis | redis | >= 0 < 5:4.0.10-1 | 5:4.0.10-1 |
| redislabs | redis | < 4.0.10 | 4.0.10 |
| redislabs | redis | — | — |
Detection & IOCsextracted from sources · hover to see the quote
- →Monitor process execution for redis-cli invocations where the -h argument is abnormally long (e.g., >255 characters), which is the attack vector for this CVE ↗
- →Audit any service or application that calls redis-cli and passes an externally-controlled or unfiltered host parameter, as this is the exploitation path for privilege escalation ↗
- ·Exploitation requires local access; the attacker must already have the ability to invoke redis-cli or control its arguments. The security impact is limited unless redis-cli is called by a higher-privileged service with unsanitized input. ↗
- ·Red Hat OpenStack components do not call redis-cli in a way that exposes the host parameter to manipulation, limiting practical exploitability in that environment. ↗
CVSS provenance
nvdv3.08.4HIGHCVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvdv2.04.6MEDIUMAV:L/AC:L/Au:N/C:P/I:P/A:P
osv8.4HIGH
vendor_debian8.4HIGH
vendor_redhat8.4HIGH
CVEs like this are exactly what “Exploited This Week” covers.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
GHSA-8829-5g6p-wqm9: Buffer overflow in redis-cli of Redis before 4
ghsa_unreviewed·2022-05-14
CVE-2018-12326 [HIGH] CWE-119 GHSA-8829-5g6p-wqm9: Buffer overflow in redis-cli of Redis before 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.
OSV
CVE-2018-12326: Buffer overflow in redis-cli of Redis before 4
osv·2018-06-17·CVSS 8.4
CVE-2018-12326 [HIGH] CVE-2018-12326: Buffer overflow in redis-cli of Redis before 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.
Red Hat
redis: Code execution in redis-cli via crafted command line arguments
vendor_redhat·2018-06-13·CVSS 8.4
CVE-2018-12326 [HIGH] CWE-121 redis: Code execution in redis-cli via crafted command line arguments
redis: Code execution in redis-cli via crafted command line arguments
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.
The Redis command line tool 'redis-cli' is vulnerable to a buffer overflow through the -h (host) command line parameter. The redis-cli may be used by other services; if these services do not adequately filter the host input it could lead to code execution with the privilege level of that service.
Package: grafana (Red Hat Ceph Storage 3) - Not affected
Package: redis (Red Hat Ente
Debian
CVE-2018-12326: redis - Buffer overflow in redis-cli of Redis before 4.0.10 and 5.x before 5.0 RC3 allow...
vendor_debian·2018·CVSS 8.4
CVE-2018-12326 [HIGH] CVE-2018-12326: redis - Buffer overflow in redis-cli of Redis before 4.0.10 and 5.x before 5.0 RC3 allow...
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.
Scope: local
bookworm: resolved (fixed in 5:4.0.10-1)
bullseye: resolved (fixed in 5:4.0.10-1)
forky: resolved (fixed in 5:4.0.10-1)
sid: resolved (fixed in 5:4.0.10-1)
trixie: resolved (fixed in 5:4.0.10-1)
No detection rules found.
Bugzilla
CVE-2018-12326 redis: code execution via a crafted command line [epel-all]
bugzilla·2018-06-22·CVSS 8.4
CVE-2018-12326 [HIGH] CVE-2018-12326 redis: code execution via a crafted command line [epel-all]
CVE-2018-12326 redis: code execution via a crafted command line [epel-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of epel-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue affects multiple supported versions of F
Bugzilla
CVE-2018-12326 redis: Code execution in redis-cli via crafted command line arguments
bugzilla·2018-06-22·CVSS 8.4
CVE-2018-12326 [HIGH] CVE-2018-12326 redis: Code execution in redis-cli via crafted command line arguments
CVE-2018-12326 redis: Code execution in redis-cli via crafted command line arguments
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
Discussion:
Created redis tracking bugs for this issue:
Affects: epel-all [bug 1594294]
---
The Redis command line tool "redis-cli" is vulnerable to a bu
https://access.redhat.com/errata/RHSA-2019:0052https://access.redhat.com/errata/RHSA-2019:0094https://access.redhat.com/errata/RHSA-2019:1860https://gist.github.com/fakhrizulkifli/f831f40ec6cde4f744c552503d8698f0https://github.com/antirez/redis/commit/9fdcc15962f9ff4baebe6fdd947816f43f730d50https://raw.githubusercontent.com/antirez/redis/4.0/00-RELEASENOTEShttps://raw.githubusercontent.com/antirez/redis/5.0/00-RELEASENOTEShttps://www.exploit-db.com/exploits/44904/https://access.redhat.com/errata/RHSA-2019:0052https://access.redhat.com/errata/RHSA-2019:0094https://access.redhat.com/errata/RHSA-2019:1860https://gist.github.com/fakhrizulkifli/f831f40ec6cde4f744c552503d8698f0https://github.com/antirez/redis/commit/9fdcc15962f9ff4baebe6fdd947816f43f730d50https://raw.githubusercontent.com/antirez/redis/4.0/00-RELEASENOTEShttps://raw.githubusercontent.com/antirez/redis/5.0/00-RELEASENOTEShttps://www.exploit-db.com/exploits/44904/
2018-06-17
Published