{"schemaVersion":3,"id":"CVE-2018-12326","aliases":["UBUNTU-CVE-2018-12326","DEBIAN-CVE-2018-12326"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2018-06-17T14:00:00.000Z","modified":"2024-08-05T08:30:59.784Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.4,"severity":"high","version":"3.0","versionLabel":"v3.0","source":"NVD","vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.0","versionLabel":"v3.0","source":"NVD","score":8.4,"severity":"high","vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":4.6,"severity":"medium","vector":"AV:L/AC:L/Au:N/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Ubuntu","score":8.4,"severity":"high","vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":6.4,"impact":9.8,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Debian","score":8.4,"severity":"high","vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":6.4,"impact":9.8,"computed":true}]},"epss":{"probability":0.02678,"percentile":0.85591,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.02678},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.02678,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.02678,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.02678,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.02678,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.02678,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.02678,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.02678,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01922,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02678,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02678,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02678,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02678,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02678,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02678,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02678,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02678,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02678,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02678,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02678,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02678,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02678,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02678,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02678,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02678,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02678,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02678,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02678,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02678,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02678,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02678,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02678,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02678,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02678,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02678,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02678,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02678,"percentile":0.85591}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.02678,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.02678,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01922,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02678,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02678,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02678,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02678,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02678,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02678,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02678,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02678,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02678,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02678,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02678,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02678,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02678,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02678,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02678,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02678,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02678,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02678,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02678,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02678,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02678,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02678,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02678,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02678,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02678,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02678,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02678,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02678,"percentile":0.85591}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"44904","name":"Redis-cli < 5.0 - Buffer Overflow (PoC)","source":"exploit-database","url":"https://www.exploit-db.com/exploits/44904","maturity":"poc","reliabilityScore":0.5,"verified":false,"type":"local","platforms":["linux"],"requiresAuth":null,"exploitdb":{"verified":false,"type":"local","platform":"linux","file":"exploits/linux/local/44904.py","codes":["CVE-2018-12326"]},"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-119","name":"Improper Restriction of Operations within the Bounds of a Memory Buffer","description":"The product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary. This may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data.","type":"weakness","status":"Stable","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/119.html"}],"affected":[{"vendor":"debian","product":"redis","name":"redis","label":"redis","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/redis","purlType":"deb","versions":[{"text":"< 5:4.0.10-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5:4.0.10-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"redis","name":"redis","label":"redis","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/redis","purlType":"deb","versions":[{"text":"< 2:2.8.4-2ubuntu0.2","noFixRecorded":false,"fixedIn":null},{"text":"< 2:3.0.6-1ubuntu0.2","noFixRecorded":false,"fixedIn":null},{"text":"< 5:4.0.9-1ubuntu0.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2:2.8.4-2ubuntu0.2 | < 2:3.0.6-1ubuntu0.2 | < 5:4.0.9-1ubuntu0.1","eol":null,"hubHref":null},{"vendor":"redislabs","product":"redis","name":"redis","label":"redis","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 4.0.10","noFixRecorded":false,"fixedIn":null},{"text":"5.0:rc1","noFixRecorded":false,"fixedIn":null},{"text":"5.0:rc2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.0.10 | 5.0:rc1 | 5.0:rc2","eol":null,"hubHref":"/vendor/redislabs/redis"}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://gist.github.com/fakhrizulkifli/f831f40ec6cde4f744c552503d8698f0","label":"gist.github.com/fakhrizulkifli/f831f40ec6cde4f744c552503d8698f0","hostname":"gist.github.com","tags":["X Refsource MISC","Third Party Advisory","REPORT"]},{"url":"https://www.exploit-db.com/exploits/44904/","label":"www.exploit-db.com/exploits/44904/","hostname":"www.exploit-db.com","tags":["Exploit","X Refsource EXPLOIT DB","Third Party Advisory","VDB Entry"]},{"url":"https://access.redhat.com/errata/RHSA-2019:0052","label":"access.redhat.com/errata/RHSA-2019:0052","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2019:0094","label":"access.redhat.com/errata/RHSA-2019:0094","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT"]},{"url":"https://github.com/antirez/redis/commit/9fdcc15962f9ff4baebe6fdd947816f43f730d50","label":"github.com/antirez/redis/commit/9fdcc15962f9ff4baebe6fdd947816f43f730d50","hostname":"github.com","tags":["X Refsource MISC","Patch","Third Party Advisory","REPORT"]},{"url":"https://raw.githubusercontent.com/antirez/redis/4.0/00-RELEASENOTES","label":"raw.githubusercontent.com/antirez/redis/4.0/00-RELEASENOTES","hostname":"raw.githubusercontent.com","tags":["X Refsource MISC","Patch","Third Party Advisory","REPORT"]},{"url":"https://raw.githubusercontent.com/antirez/redis/5.0/00-RELEASENOTES","label":"raw.githubusercontent.com/antirez/redis/5.0/00-RELEASENOTES","hostname":"raw.githubusercontent.com","tags":["X Refsource MISC","Patch","Third Party Advisory","REPORT"]},{"url":"https://access.redhat.com/errata/RHSA-2019:1860","label":"access.redhat.com/errata/RHSA-2019:1860","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT"]},{"url":"https://ubuntu.com/security/CVE-2018-12326","label":"ubuntu.com/security/CVE-2018-12326","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-12326","label":"www.cve.org/CVERecord?id=CVE-2018-12326","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2018-12326","label":"security-tracker.debian.org/tracker/CVE-2018-12326","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["DLA-1396-1","DSA-4230-1","RHSA-2019:0052","RHSA-2019:0094","RHSA-2019:1860"],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2018-06-17T14:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-05T08:30:59.784Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":44,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T07:04:33.996Z","stale":false,"partial":false}}