{"schemaVersion":3,"id":"CVE-2018-1071","aliases":["ALPINE-CVE-2018-1071","UBUNTU-CVE-2018-1071","DEBIAN-CVE-2018-1071"],"status":"published","duplicateOf":null,"title":null,"description":"zsh through version 5.4.2 is vulnerable to a stack-based buffer overflow in the exec.c:hashcmd() function. A local attacker could exploit this to cause a denial of service.","dates":{"published":"2018-03-09T15:00:00.000Z","modified":"2024-08-05T03:51:48.907Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":5.5,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":5.5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":2.1,"severity":"low","vector":"AV:L/AC:L/Au:N/C:N/I:N/A:P","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Alpine","score":5.5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","exploitability":4.6,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":5.5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","exploitability":4.6,"impact":6,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Ubuntu","score":5.5,"severity":"medium","vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","exploitability":4.6,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":5.5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","exploitability":4.6,"impact":6,"computed":true}]},"epss":{"probability":0.00428,"percentile":0.35914,"severity":"low","asOf":"2026-10-21T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-21T00:00:00.000Z","baselineScore":0.00428},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00428,"percentile":0.35914}],"last30":[{"date":"2026-09-21T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00428,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00428,"percentile":0.35914}]},"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":[],"exploitCount":0,"weaknesses":[{"id":"CWE-121","name":"Stack-based Buffer Overflow","description":"A stack-based buffer overflow condition is a condition where the buffer being overwritten is allocated on the stack (i.e., is a local variable or, rarely, a parameter to a function).","type":"weakness","status":"Draft","abstraction":"Variant","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/121.html"},{"id":"CWE-787","name":"Out-of-bounds Write","description":"The product writes data past the end, or before the beginning, of the intended buffer.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/787.html"}],"affected":[{"vendor":"alpine","product":"zsh","name":"zsh","label":"zsh","ecosystem":"Alpine Linux","cpePart":null,"purl":"pkg:apk/alpine/zsh","purlType":"apk","versions":[{"text":"< 5.4.2-r1","noFixRecorded":false,"fixedIn":null},{"text":"< 5.2-r2","noFixRecorded":false,"fixedIn":null},{"text":"< 5.2-r4","noFixRecorded":false,"fixedIn":null},{"text":"< 5.3.1-r1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.4.2-r1 | < 5.2-r2 | < 5.2-r4 | < 5.3.1-r1","eol":null,"hubHref":null},{"vendor":"canonical","product":"ubuntu_linux","name":"ubuntu linux","label":"ubuntu_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"14.04","noFixRecorded":false,"fixedIn":null},{"text":"16.04","noFixRecorded":false,"fixedIn":null},{"text":"17.10","noFixRecorded":false,"fixedIn":null}],"versionsText":"14.04 | 16.04 | 17.10","eol":{"isEol":true,"eolDate":"2019-04-02T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"14.04","label":"14.04 'Trusty Tahr' (LTS)","eolFrom":"2019-04-02T00:00:00.000Z","isLts":true,"isMaintained":false,"latestVersion":"14.04.6"},"product":{"name":"ubuntu","label":"Ubuntu","category":"os"}},"hubHref":"/vendor/canonical/ubuntu_linux"},{"vendor":"debian","product":"zsh","name":"zsh","label":"zsh","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/zsh","purlType":"deb","versions":[{"text":"< 5.4.2-4","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.4.2-4","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"zsh","name":"zsh","label":"zsh","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/zsh","purlType":"deb","versions":[{"text":"< 5.0.2-3ubuntu6.2","noFixRecorded":false,"fixedIn":null},{"text":"< 5.1.1-1ubuntu2.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.0.2-3ubuntu6.2 | < 5.1.1-1ubuntu2.2","eol":null,"hubHref":null},{"vendor":"debian","product":"debian_linux","name":"debian linux","label":"debian_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"7.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"7.0","eol":{"isEol":true,"eolDate":"2018-05-31T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"7","label":"7 (Wheezy)","eolFrom":"2018-05-31T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":"7.11"},"product":{"name":"debian","label":"Debian","category":"os"}},"hubHref":"/vendor/debian/debian_linux"},{"vendor":"redhat","product":"enterprise_linux_desktop","name":"enterprise linux desktop","label":"enterprise_linux_desktop","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"7.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"7.0","eol":null,"hubHref":"/vendor/redhat/enterprise_linux_desktop"},{"vendor":"redhat","product":"enterprise_linux_server","name":"enterprise linux server","label":"enterprise_linux_server","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"7.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"7.0","eol":null,"hubHref":"/vendor/redhat/enterprise_linux_server"},{"vendor":"redhat","product":"enterprise_linux_workstation","name":"enterprise linux workstation","label":"enterprise_linux_workstation","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"7.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"7.0","eol":null,"hubHref":"/vendor/redhat/enterprise_linux_workstation"},{"vendor":"zsh","product":"zsh","name":"zsh","label":"zsh","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"5.4.2","noFixRecorded":false,"fixedIn":null},{"text":"≤ 5.4.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"5.4.2 | ≤ 5.4.2","eol":null,"hubHref":"/vendor/zsh/zsh"}],"affectedCount":9,"eol":{"hasEol":true,"count":2},"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1553531","label":"bugzilla.redhat.com/show_bug.cgi?id=1553531","hostname":"bugzilla.redhat.com","tags":["X Refsource CONFIRM","Issue Tracking","Third Party Advisory"]},{"url":"https://usn.ubuntu.com/3608-1/","label":"usn.ubuntu.com/3608-1/","hostname":"usn.ubuntu.com","tags":["Vendor Advisory","X Refsource UBUNTU","Third Party Advisory"]},{"url":"http://www.securityfocus.com/bid/103359","label":"www.securityfocus.com/bid/103359","hostname":"www.securityfocus.com","tags":["VDB Entry","X Refsource BID","Third Party Advisory"]},{"url":"https://security.gentoo.org/glsa/201805-10","label":"security.gentoo.org/glsa/201805-10","hostname":"security.gentoo.org","tags":["Vendor Advisory","X Refsource GENTOO","Third Party Advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2018/03/msg00038.html","label":"lists.debian.org/debian-lts-announce/2018/03/msg00038.html","hostname":"lists.debian.org","tags":["Mailing List","X Refsource MLIST","Third Party Advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2018:3073","label":"access.redhat.com/errata/RHSA-2018:3073","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","Third Party Advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2020/12/msg00000.html","label":"lists.debian.org/debian-lts-announce/2020/12/msg00000.html","hostname":"lists.debian.org","tags":["Mailing List","X Refsource MLIST"]},{"url":"https://security.alpinelinux.org/vuln/CVE-2018-1071","label":"security.alpinelinux.org/vuln/CVE-2018-1071","hostname":"security.alpinelinux.org","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2018-1071","label":"ubuntu.com/security/CVE-2018-1071","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-3608-1","label":"ubuntu.com/security/notices/USN-3608-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-1071","label":"www.cve.org/CVERecord?id=CVE-2018-1071","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2018-1071","label":"security-tracker.debian.org/tracker/CVE-2018-1071","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["DLA-1335-1","DLA-2470-1","MGASA-2018-0206","OPENSUSE-SU-2024:11543-1","RHSA-2018:3073","SUSE-SU-2018:1072-1","SUSE-SU-2018:1874-1","SUSE-SU-2022:14910-1","USN-3608-1"],"duplicates":[],"related":["OPENSUSE-SU-2024:11543-1","SUSE-SU-2018:1072-1","SUSE-SU-2018:1874-1","SUSE-SU-2022:14910-1","USN-3608-1"]},"timeline":[{"kind":"published","date":"2018-03-09T15:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-05T03:51:48.907Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":22,"level":"low","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-22T13:21:42.653Z","stale":false,"partial":false}}