{"schemaVersion":3,"id":"CVE-2018-1083","aliases":["ALPINE-CVE-2018-1083","UBUNTU-CVE-2018-1083","DEBIAN-CVE-2018-1083"],"status":"published","duplicateOf":null,"title":null,"description":"Zsh before version 5.4.2-test-1 is vulnerable to a buffer overflow in the shell autocomplete functionality. A local unprivileged user can create a specially crafted directory path which leads to code execution in the context of the user who tries to use autocomplete to traverse the before mentioned path. If the user affected is privileged, this leads to privilege escalation.","dates":{"published":"2018-03-28T13:00:00.000Z","modified":"2024-09-16T18:13:29.080Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.8,"severity":"high","version":"3.0","versionLabel":"v3.0","source":"NVD","vector":"CVSS:3.0/AV:L/AC:L/PR:L/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":7.8,"severity":"high","vector":"CVSS:3.0/AV:L/AC:L/PR:L/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":7.2,"severity":"high","vector":"AV:L/AC:L/Au:N/C:C/I:C/A:C","exploitability":null,"impact":null,"computed":false},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Alpine","score":7.8,"severity":"high","vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":4.6,"impact":9.8,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Ubuntu","score":7.8,"severity":"high","vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":4.6,"impact":9.8,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Debian","score":7.8,"severity":"high","vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":4.6,"impact":9.8,"computed":true}]},"epss":{"probability":0.00594,"percentile":0.47636,"severity":"low","asOf":"2026-10-21T00:00:00.000Z","change":{"pp":0.014999999999999996,"baselineDate":"2026-09-21T00:00:00.000Z","baselineScore":0.00579},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00594,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00594,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00594,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00594,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00594,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00594,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00594,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00579,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00594,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00594,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00594,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00594,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00594,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00594,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00594,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00594,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00594,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00594,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00594,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00594,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00594,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00594,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00594,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00594,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00594,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00594,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00594,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00594,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00594,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00594,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00594,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00594,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00594,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00594,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00594,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00594,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00594,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00594,"percentile":0.47636}],"last30":[{"date":"2026-09-21T00:00:00.000Z","score":0.00579,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00594,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00594,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00594,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00594,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00594,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00594,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00594,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00594,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00594,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00594,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00594,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00594,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00594,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00594,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00594,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00594,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00594,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00594,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00594,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00594,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00594,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00594,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00594,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00594,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00594,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00594,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00594,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00594,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00594,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00594,"percentile":0.47636}]},"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-120","name":"Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')","description":"The product copies an input buffer to an output buffer without verifying that the size of the input buffer is less than the size of the output buffer.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/120.html"},{"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":"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":"6.0","noFixRecorded":false,"fixedIn":null},{"text":"7.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"6.0 | 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":"6.0","noFixRecorded":false,"fixedIn":null},{"text":"7.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"6.0 | 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":"6.0","noFixRecorded":false,"fixedIn":null},{"text":"7.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"6.0 | 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":"< zsh 5.4.2-test-1","noFixRecorded":false,"fixedIn":null},{"text":"≤ 5.4.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< zsh 5.4.2-test-1 | ≤ 5.4.1","eol":null,"hubHref":"/vendor/zsh/zsh"}],"affectedCount":9,"eol":{"hasEol":true,"count":2},"references":[{"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/103572","label":"www.securityfocus.com/bid/103572","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://sourceforge.net/p/zsh/code/ci/259ac472eac291c8c103c7a0d8a4eaf3c2942ed7","label":"sourceforge.net/p/zsh/code/ci/259ac472eac291c8c103c7a0d8a4eaf3c2942ed7","hostname":"sourceforge.net","tags":["X Refsource CONFIRM","Patch","Third Party Advisory","REPORT"]},{"url":"https://access.redhat.com/errata/RHSA-2018:1932","label":"access.redhat.com/errata/RHSA-2018:1932","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","Third Party Advisory"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1557382","label":"bugzilla.redhat.com/show_bug.cgi?id=1557382","hostname":"bugzilla.redhat.com","tags":["X Refsource CONFIRM","Issue Tracking","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-1083","label":"security.alpinelinux.org/vuln/CVE-2018-1083","hostname":"security.alpinelinux.org","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2018-1083","label":"ubuntu.com/security/CVE-2018-1083","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-1083","label":"www.cve.org/CVERecord?id=CVE-2018-1083","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2018-1083","label":"security-tracker.debian.org/tracker/CVE-2018-1083","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:1932","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-28T13:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-09-16T18:13:29.080Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":31,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-22T06:23:57.280Z","stale":false,"partial":false}}