{"id":"UBUNTU-CVE-2018-12326","details":"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.","modified":"2025-09-08T16:44:54Z","published":"2018-06-17T14:29:00Z","upstream":["CVE-2018-12326"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2018-12326"},{"type":"REPORT","url":"https://gist.github.com/fakhrizulkifli/f831f40ec6cde4f744c552503d8698f0"},{"type":"REPORT","url":"https://github.com/antirez/redis/commit/9fdcc15962f9ff4baebe6fdd947816f43f730d50"},{"type":"REPORT","url":"https://raw.githubusercontent.com/antirez/redis/4.0/00-RELEASENOTES"},{"type":"REPORT","url":"https://raw.githubusercontent.com/antirez/redis/5.0/00-RELEASENOTES"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2018-12326"}],"affected":[{"package":{"name":"redis","ecosystem":"Ubuntu:14.04:LTS","purl":"pkg:deb/ubuntu/redis@2:2.8.4-2ubuntu0.2?arch=source&distro=trusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2:2.8.4-2ubuntu0.2"}]}],"versions":["2:2.6.13-1","2:2.6.16-3","2:2.8.0-1","2:2.8.2-1","2:2.8.4-2"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_version":"2:2.8.4-2ubuntu0.2","binary_name":"redis-server"},{"binary_version":"2:2.8.4-2ubuntu0.2","binary_name":"redis-tools"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-12326.json"}},{"package":{"name":"redis","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/redis@2:3.0.6-1ubuntu0.2?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2:3.0.6-1ubuntu0.2"}]}],"versions":["2:3.0.3-3","2:3.0.5-1","2:3.0.5-2","2:3.0.5-3","2:3.0.5-4","2:3.0.6-1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_version":"2:3.0.6-1ubuntu0.2","binary_name":"redis-sentinel"},{"binary_version":"2:3.0.6-1ubuntu0.2","binary_name":"redis-server"},{"binary_version":"2:3.0.6-1ubuntu0.2","binary_name":"redis-tools"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-12326.json"}},{"package":{"name":"redis","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/redis@5:4.0.9-1ubuntu0.1?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5:4.0.9-1ubuntu0.1"}]}],"versions":["4:4.0.1-7","4:4.0.2-6","4:4.0.2-9","5:4.0.5-1","5:4.0.6-1","5:4.0.6-2","5:4.0.7-1","5:4.0.8-1","5:4.0.8-2","5:4.0.9-1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_version":"5:4.0.9-1ubuntu0.1","binary_name":"redis"},{"binary_version":"5:4.0.9-1ubuntu0.1","binary_name":"redis-sentinel"},{"binary_version":"5:4.0.9-1ubuntu0.1","binary_name":"redis-server"},{"binary_version":"5:4.0.9-1ubuntu0.1","binary_name":"redis-tools"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-12326.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}