{"schemaVersion":3,"id":"CVE-2018-13259","aliases":["RHSA-2019:2017","UBUNTU-CVE-2018-13259","DEBIAN-CVE-2018-13259"],"status":"published","duplicateOf":null,"title":null,"description":"An issue was discovered in zsh before 5.6. Shebang lines exceeding 64 characters were truncated, potentially leading to an execve call to a program name that is a substring of the intended one.","dates":{"published":"2018-09-05T07:00:00.000Z","modified":"2024-08-05T09:00:34.510Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.8,"severity":"critical","version":"3.0","versionLabel":"v3.0","source":"NVD","vector":"CVSS:3.0/AV:N/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":9.8,"severity":"critical","vector":"CVSS:3.0/AV:N/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":7.5,"severity":"high","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Red hat","score":5.3,"severity":"medium","vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L","exploitability":4.6,"impact":5.7,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Ubuntu","score":9.8,"severity":"critical","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Debian","score":9.8,"severity":"critical","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true}]},"epss":{"probability":0.02723,"percentile":0.85922,"severity":"low","asOf":"2026-10-21T00:00:00.000Z","change":{"pp":0.22700000000000012,"baselineDate":"2026-09-21T00:00:00.000Z","baselineScore":0.02496},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.02723,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.02723,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.02723,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.02723,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.02723,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.02723,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.02723,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.02496,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02723,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02723,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02723,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02723,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02723,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02723,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02723,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02723,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02723,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02723,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02723,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02723,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02723,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02723,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02723,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02723,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02723,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02723,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02723,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02723,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02723,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02723,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02723,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02723,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02723,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02723,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02723,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02723,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.02723,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.02723,"percentile":0.85922}],"last30":[{"date":"2026-09-21T00:00:00.000Z","score":0.02496,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02723,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02723,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02723,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02723,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02723,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02723,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02723,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02723,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02723,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02723,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02723,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02723,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02723,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02723,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02723,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02723,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02723,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02723,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02723,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02723,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02723,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02723,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02723,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02723,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02723,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02723,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02723,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02723,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.02723,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.02723,"percentile":0.85922}]},"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-20","name":"Improper Input Validation","description":"The product receives input or data, but it does\n        not validate or incorrectly validates that the input has the\n        properties that are required to process the data safely and\n        correctly.","type":"weakness","status":"Stable","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/20.html"}],"affected":[{"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":"18.04","noFixRecorded":false,"fixedIn":null}],"versionsText":"14.04 | 16.04 | 18.04","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.6-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.6-1","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.3","noFixRecorded":false,"fixedIn":null},{"text":"< 5.1.1-1ubuntu2.3","noFixRecorded":false,"fixedIn":null},{"text":"< 5.4.2-3ubuntu3.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.0.2-3ubuntu6.3 | < 5.1.1-1ubuntu2.3 | < 5.4.2-3ubuntu3.1","eol":null,"hubHref":null},{"vendor":"redhat","product":"zsh","name":"zsh","label":"zsh","ecosystem":"Red Hat","cpePart":null,"purl":"pkg:rpm/redhat/zsh","purlType":"rpm","versions":[{"text":"< 0:5.0.2-33.el7","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0:5.0.2-33.el7","eol":null,"hubHref":null},{"vendor":"redhat","product":"zsh-debuginfo","name":"zsh-debuginfo","label":"zsh-debuginfo","ecosystem":"Red Hat","cpePart":null,"purl":"pkg:rpm/redhat/zsh-debuginfo","purlType":"rpm","versions":[{"text":"< 0:5.0.2-33.el7","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0:5.0.2-33.el7","eol":null,"hubHref":null},{"vendor":"redhat","product":"zsh-html","name":"zsh-html","label":"zsh-html","ecosystem":"Red Hat","cpePart":null,"purl":"pkg:rpm/redhat/zsh-html","purlType":"rpm","versions":[{"text":"< 0:5.0.2-33.el7","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0:5.0.2-33.el7","eol":null,"hubHref":null},{"vendor":"zsh","product":"zsh","name":"zsh","label":"zsh","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 5.6","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.6","eol":null,"hubHref":"/vendor/zsh/zsh"}],"affectedCount":7,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://bugs.debian.org/908000","label":"bugs.debian.org/908000","hostname":"bugs.debian.org","tags":["X Refsource MISC","Mailing List","Patch","Third Party Advisory"]},{"url":"https://sourceforge.net/p/zsh/code/ci/1c4c7b6a4d17294df028322b70c53803a402233d","label":"sourceforge.net/p/zsh/code/ci/1c4c7b6a4d17294df028322b70c53803a402233d","hostname":"sourceforge.net","tags":["X Refsource MISC","Patch","Third Party Advisory"]},{"url":"https://www.zsh.org/mla/zsh-announce/136","label":"www.zsh.org/mla/zsh-announce/136","hostname":"www.zsh.org","tags":["X Refsource MISC","Mailing List","Release Notes","Vendor Advisory"]},{"url":"https://usn.ubuntu.com/3764-1/","label":"usn.ubuntu.com/3764-1/","hostname":"usn.ubuntu.com","tags":["Vendor Advisory","X Refsource UBUNTU","Third Party Advisory"]},{"url":"https://security.gentoo.org/glsa/201903-02","label":"security.gentoo.org/glsa/201903-02","hostname":"security.gentoo.org","tags":["Vendor Advisory","X Refsource GENTOO","Third Party Advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2019:2017","label":"access.redhat.com/errata/RHSA-2019:2017","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","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://access.redhat.com/security/updates/classification/#moderate","label":"access.redhat.com/security/updates/classification/","hostname":"access.redhat.com","tags":["ARTICLE"]},{"url":"https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html-single/7.7_release_notes/index","label":"access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html-single/7.7_release_notes/index","hostname":"access.redhat.com","tags":["ARTICLE"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1626184","label":"bugzilla.redhat.com/show_bug.cgi?id=1626184","hostname":"bugzilla.redhat.com","tags":["REPORT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/advisories/2019/rhsa-2019_2017.json","label":"security.access.redhat.com/data/csaf/v2/advisories/2019/rhsa-2019_2017.json","hostname":"security.access.redhat.com","tags":["Advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2018-13259","label":"access.redhat.com/security/cve/CVE-2018-13259","hostname":"access.redhat.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-13259","label":"www.cve.org/CVERecord?id=CVE-2018-13259","hostname":"www.cve.org","tags":["Advisory","REPORT"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-13259","label":"nvd.nist.gov/vuln/detail/CVE-2018-13259","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"http://www.zsh.org/mla/zsh-announce/136","label":"www.zsh.org/mla/zsh-announce/136","hostname":"www.zsh.org","tags":["ARTICLE"]},{"url":"https://ubuntu.com/security/CVE-2018-13259","label":"ubuntu.com/security/CVE-2018-13259","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-3764-1","label":"ubuntu.com/security/notices/USN-3764-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2018-13259","label":"security-tracker.debian.org/tracker/CVE-2018-13259","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["DLA-2470-1","OPENSUSE-SU-2024:11543-1","SUSE-SU-2018:2686-1","SUSE-SU-2022:0161-1","SUSE-SU-2022:14910-1","USN-3764-1"],"duplicates":[],"related":["OPENSUSE-SU-2024:11543-1","SUSE-SU-2018:2686-1","SUSE-SU-2022:0161-1","SUSE-SU-2022:14910-1","USN-3764-1"]},"timeline":[{"kind":"published","date":"2018-09-05T07:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-05T09:00:34.510Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-22T06:24:18.236Z","stale":false,"partial":false}}