SecurityContext

CVE-2018-12326: Redis - Buffer Overflow

  • Cve: CVE-2018-12326
  • Name: Redis - Buffer Overflow
  • 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.
  • Impact: Attackers can execute arbitrary code and escalate privileges on the system, potentially leading to full system compromise.
  • Remediation: Update Redis to version 4.0.10 or later, or 5.0 RC3 or later.
  • Vulnerability type: buffer_overflow
  • Vulnerability impact: remote_code_execution, privilege_escalation
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 8.4
  • Cvss vector: CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.02582
  • Epss percentile: 0.85622
  • Assignee: [email protected]
  • Published at: 2018-06-17T14:29:00Z
  • Age in days: 3082
  • Modified at: 2026-06-17T01:37:33Z
  • Patch available: yes
  • Public exploits total: 2
  • References total: 8
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2018-12326
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-119Improper Restriction of Operations within the Bounds of a Memory Buffer

Public exploits

UrlSourceAdded date
https://www.exploit-db.com/exploits/44904/nvd2018-06-17
https://github.com/spasm5/CVE-2018-12326poc-in-github2022-03-25

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/antirez/redis/commit/9fdcc15962f9ff4baebe6fdd947816f43f730d50Patch, Third Party Advisory
https://raw.githubusercontent.com/antirez/redis/4.0/00-RELEASENOTESPatch, Third Party Advisory
https://raw.githubusercontent.com/antirez/redis/5.0/00-RELEASENOTESPatch, Third Party Advisory
https://www.exploit-db.com/exploits/44904/Exploit, Third Party Advisory, VDB Entry
https://gist.github.com/fakhrizulkifli/f831f40ec6cde4f744c552503d8698f0Third Party Advisory
https://access.redhat.com/errata/RHSA-2019:0052
https://access.redhat.com/errata/RHSA-2019:0094
https://access.redhat.com/errata/RHSA-2019:1860

Products

ProductAffectedPlatform boundSourcesUrl
redislabs:redis= 5.0 rc1, = 5.0 rc2, < 4.0.10nonvd/v1/products/redislabs/redis

Projects

RepositoryLink kindsIndexedUrl
antirez/rediscommityes/v1/repositories/antirez/redis

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Exploitation seen: yes
  • Public exploit: yes
  • Public exploit count: 2
  • Public exploit first date: 2018-06-17
  • Exposed hosts: 186444
  • Checked, none or zero: known exploited, known exploited by, initial access, remote, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports