CVE-2018-1083
publishedzsh: Stack-based buffer overflow in gen_matches_files() at compctl.c
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| zsh | — | zshbefore zsh 5.4.2-test-1 | Affected | Not stated | redhat |
| Amazon Linux | AL2 | Release evaluationALAS2-2018-1013 | Fixed | Not stated | Amazon Linux assessment |
| Alpine Linux | edge | zsh | Fixed | 5.4.2-r1 | Package fix record |
| Debian | stretch | zsh | Advisory build | 5.3.1-4+deb9u1 | DLA-2470-1 |
| Oracle Linux | 6 | zshi686 | Advisory build | 0:4.3.11-8.el6 | ELSA-2018-1932 |
| Red Hat Enterprise Linux | RHEL-6 | zshi686 | Advisory build | 4.3.11-8.el6 | RHSA-2018:1932 |
| SUSE / openSUSE | SLE-11-SP3 | zshi586 | Advisory build | 4.3.6-67.9.8.1 | SUSE-SU-2022:14910-1 |
| Ubuntu | trusty | zsh | Advisory build | 5.0.2-3ubuntu6.2 | USN-3608-1 |
Show 86 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Amazon Linux | AL2 | zshnoarch | Listed in advisory | Not stated | ALAS2-2018-1013 |
| Alpine Linux | v3.10 | zsh | Fixed | 5.4.2-r1 | Package fix record |
| Alpine Linux | v3.11 | zsh | Fixed | 5.4.2-r1 | Package fix record |
| Alpine Linux | v3.12 | zsh | Fixed | 5.4.2-r1 | Package fix record |
| Alpine Linux | v3.13 | zsh | Fixed | 5.4.2-r1 | Package fix record |
| Alpine Linux | v3.14 | zsh | Fixed | 5.4.2-r1 | Package fix record |
| Alpine Linux | v3.15 | zsh | Fixed | 5.4.2-r1 | Package fix record |
| Alpine Linux | v3.16 | zsh | Fixed | 5.4.2-r1 | Package fix record |
| Alpine Linux | v3.17 | zsh | Fixed | 5.4.2-r1 | Package fix record |
| Alpine Linux | v3.18 | zsh | Fixed | 5.4.2-r1 | Package fix record |
| Alpine Linux | v3.19 | zsh | Fixed | 5.4.2-r1 | Package fix record |
| Alpine Linux | v3.20 | zsh | Fixed | 5.4.2-r1 | Package fix record |
| Alpine Linux | v3.21 | zsh | Fixed | 5.4.2-r1 | Package fix record |
| Alpine Linux | v3.22 | zsh | Fixed | 5.4.2-r1 | Package fix record |
| Alpine Linux | v3.23 | zsh | Fixed | 5.4.2-r1 | Package fix record |
| Alpine Linux | v3.24 | zsh | Fixed | 5.4.2-r1 | Package fix record |
| Alpine Linux | v3.4 | zsh | Fixed | 5.2-r2 | Package fix record |
| Alpine Linux | v3.5 | zsh | Fixed | 5.2-r4 | Package fix record |
| Alpine Linux | v3.6 | zsh | Fixed | 5.3.1-r1 | Package fix record |
| Alpine Linux | v3.7 | zsh | Fixed | 5.4.2-r1 | Package fix record |
| Alpine Linux | v3.8 | zsh | Fixed | 5.4.2-r1 | Package fix record |
| Alpine Linux | v3.9 | zsh | Fixed | 5.4.2-r1 | Package fix record |
| Debian | wheezy | zsh | Advisory build | 4.3.17-1+deb7u2 | DLA-1335-1 |
| Oracle Linux | 6 | zshx86_64 | Advisory build | 0:4.3.11-8.el6 | ELSA-2018-1932 |
| Oracle Linux | 7 | zshaarch64 | Advisory build | 0:5.0.2-31.el7 | ELSA-2018-3073 |
| Oracle Linux | 7 | zshx86_64 | Advisory build | 0:5.0.2-31.el7 | ELSA-2018-3073 |
| Red Hat Enterprise Linux | RHEL-6 | zshppc64 | Advisory build | 4.3.11-8.el6 | RHSA-2018:1932 |
| Red Hat Enterprise Linux | RHEL-6 | zshs390x | Advisory build | 4.3.11-8.el6 | RHSA-2018:1932 |
| Red Hat Enterprise Linux | RHEL-6 | zshsrc | Advisory build | 4.3.11-8.el6 | RHSA-2018:1932 |
| Red Hat Enterprise Linux | RHEL-6 | zshx86_64 | Advisory build | 4.3.11-8.el6 | RHSA-2018:1932 |
| Red Hat Enterprise Linux | RHEL-7 | zshaarch64 | Advisory build | 5.0.2-31.el7 | RHSA-2018:3073 |
| Red Hat Enterprise Linux | RHEL-7 | zshppc64 | Advisory build | 5.0.2-31.el7 | RHSA-2018:3073 |
| Red Hat Enterprise Linux | RHEL-7 | zshppc64le | Advisory build | 5.0.2-31.el7 | RHSA-2018:3073 |
| Red Hat Enterprise Linux | RHEL-7 | zshs390x | Advisory build | 5.0.2-31.el7 | RHSA-2018:3073 |
| Red Hat Enterprise Linux | RHEL-7 | zshsrc | Advisory build | 5.0.2-31.el7 | RHSA-2018:3073 |
| Red Hat Enterprise Linux | RHEL-7 | zshx86_64 | Advisory build | 5.0.2-31.el7 | RHSA-2018:3073 |
| SUSE / openSUSE | SLE-11-SP4 | zshi586 | Advisory build | 4.3.6-67.9.8.1 | SUSE-SU-2022:14910-1 |
| SUSE / openSUSE | SLE-11-SP4 | zshppc64 | Advisory build | 4.3.6-67.9.8.1 | SUSE-SU-2022:14910-1 |
| SUSE / openSUSE | SLE-11-SP4 | zshs390x | Advisory build | 4.3.6-67.9.8.1 | SUSE-SU-2022:14910-1 |
| SUSE / openSUSE | SLE-11-SP4 | zshx86_64 | Advisory build | 4.3.6-67.9.8.1 | SUSE-SU-2022:14910-1 |
| SUSE / openSUSE | SLE-12-SP3 | zshaarch64 | Advisory build | 5.0.5-6.7.2 | SUSE-SU-2018:1072-1 |
| SUSE / openSUSE | SLE-12-SP3 | zshppc64le | Advisory build | 5.0.5-6.7.2 | SUSE-SU-2018:1072-1 |
| SUSE / openSUSE | SLE-12-SP3 | zshs390x | Advisory build | 5.0.5-6.7.2 | SUSE-SU-2018:1072-1 |
| SUSE / openSUSE | SLE-12-SP3 | zshx86_64 | Advisory build | 5.0.5-6.7.2 | SUSE-SU-2018:1072-1 |
| SUSE / openSUSE | SLE-15 | zshaarch64 | Advisory build | 5.5-3.3.15 | SUSE-SU-2018:1874-1 |
| SUSE / openSUSE | SLE-15 | zshppc64le | Advisory build | 5.5-3.3.15 | SUSE-SU-2018:1874-1 |
| SUSE / openSUSE | SLE-15 | zshs390x | Advisory build | 5.5-3.3.15 | SUSE-SU-2018:1874-1 |
| SUSE / openSUSE | SLE-15 | zshx86_64 | Advisory build | 5.5-3.3.15 | SUSE-SU-2018:1874-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | zshaarch64 | Advisory build | 5.8-7.7 | OPENSUSE-SU-2024:11543-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | zshppc64le | Advisory build | 5.8-7.7 | OPENSUSE-SU-2024:11543-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | zshs390x | Advisory build | 5.8-7.7 | OPENSUSE-SU-2024:11543-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | zshx86_64 | Advisory build | 5.8-7.7 | OPENSUSE-SU-2024:11543-1 |
| Ubuntu | xenial | zsh | Advisory build | 5.1.1-1ubuntu2.2 | USN-3608-1 |
| Oracle Linux | 6 | zsh-htmli686 | Advisory build | 0:4.3.11-8.el6 | ELSA-2018-1932 |
| Oracle Linux | 6 | zsh-htmlx86_64 | Advisory build | 0:4.3.11-8.el6 | ELSA-2018-1932 |
| Oracle Linux | 7 | zsh-htmlaarch64 | Advisory build | 0:5.0.2-31.el7 | ELSA-2018-3073 |
| Oracle Linux | 7 | zsh-htmlx86_64 | Advisory build | 0:5.0.2-31.el7 | ELSA-2018-3073 |
| Red Hat Enterprise Linux | RHEL-6 | zsh-debuginfoi686 | Advisory build | 4.3.11-8.el6 | RHSA-2018:1932 |
| Red Hat Enterprise Linux | RHEL-6 | zsh-debuginfoppc64 | Advisory build | 4.3.11-8.el6 | RHSA-2018:1932 |
| Red Hat Enterprise Linux | RHEL-6 | zsh-debuginfos390x | Advisory build | 4.3.11-8.el6 | RHSA-2018:1932 |
| Red Hat Enterprise Linux | RHEL-6 | zsh-debuginfox86_64 | Advisory build | 4.3.11-8.el6 | RHSA-2018:1932 |
| Red Hat Enterprise Linux | RHEL-6 | zsh-htmli686 | Advisory build | 4.3.11-8.el6 | RHSA-2018:1932 |
| Red Hat Enterprise Linux | RHEL-6 | zsh-htmlppc64 | Advisory build | 4.3.11-8.el6 | RHSA-2018:1932 |
| Red Hat Enterprise Linux | RHEL-6 | zsh-htmls390x | Advisory build | 4.3.11-8.el6 | RHSA-2018:1932 |
| Red Hat Enterprise Linux | RHEL-6 | zsh-htmlx86_64 | Advisory build | 4.3.11-8.el6 | RHSA-2018:1932 |
| Red Hat Enterprise Linux | RHEL-7 | zsh-debuginfoaarch64 | Advisory build | 5.0.2-31.el7 | RHSA-2018:3073 |
| Red Hat Enterprise Linux | RHEL-7 | zsh-debuginfoppc64 | Advisory build | 5.0.2-31.el7 | RHSA-2018:3073 |
| Red Hat Enterprise Linux | RHEL-7 | zsh-debuginfoppc64le | Advisory build | 5.0.2-31.el7 | RHSA-2018:3073 |
| Red Hat Enterprise Linux | RHEL-7 | zsh-debuginfos390x | Advisory build | 5.0.2-31.el7 | RHSA-2018:3073 |
| Red Hat Enterprise Linux | RHEL-7 | zsh-debuginfox86_64 | Advisory build | 5.0.2-31.el7 | RHSA-2018:3073 |
| Red Hat Enterprise Linux | RHEL-7 | zsh-htmlaarch64 | Advisory build | 5.0.2-31.el7 | RHSA-2018:3073 |
| Red Hat Enterprise Linux | RHEL-7 | zsh-htmlppc64 | Advisory build | 5.0.2-31.el7 | RHSA-2018:3073 |
| Red Hat Enterprise Linux | RHEL-7 | zsh-htmlppc64le | Advisory build | 5.0.2-31.el7 | RHSA-2018:3073 |
| Red Hat Enterprise Linux | RHEL-7 | zsh-htmls390x | Advisory build | 5.0.2-31.el7 | RHSA-2018:3073 |
| Red Hat Enterprise Linux | RHEL-7 | zsh-htmlx86_64 | Advisory build | 5.0.2-31.el7 | RHSA-2018:3073 |
| SUSE / openSUSE | openSUSE-Tumbleweed | zsh-htmldocaarch64 | Advisory build | 5.8-7.7 | OPENSUSE-SU-2024:11543-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | zsh-htmldocppc64le | Advisory build | 5.8-7.7 | OPENSUSE-SU-2024:11543-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | zsh-htmldocs390x | Advisory build | 5.8-7.7 | OPENSUSE-SU-2024:11543-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | zsh-htmldocx86_64 | Advisory build | 5.8-7.7 | OPENSUSE-SU-2024:11543-1 |
| Ubuntu | trusty | zsh-beta | Advisory build | 5.0.2-3ubuntu6.2 | USN-3608-1 |
| Ubuntu | trusty | zsh-common | Advisory build | 5.0.2-3ubuntu6.2 | USN-3608-1 |
| Ubuntu | trusty | zsh-static | Advisory build | 5.0.2-3ubuntu6.2 | USN-3608-1 |
| Ubuntu | xenial | zsh-common | Advisory build | 5.1.1-1ubuntu2.2 | USN-3608-1 |
| Ubuntu | xenial | zsh-static | Advisory build | 5.1.1-1ubuntu2.2 | USN-3608-1 |
| Amazon Linux | AL2 | zshsrc | Listed in advisory | Not stated | ALAS2-2018-1013 |
| Amazon Linux | AL2 | zshx86_64 | Listed in advisory | Not stated | ALAS2-2018-1013 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| zsh | zsh | before zsh 5.4.2-test-1 (affected) | redhat · cna |
Weaknesses
1- CWE-120 CWE-120->CWE-121
References
9- 103572 http://www.securityfocus.com/bid/103572
- RHSA-2018:1932 https://access.redhat.com/errata/RHSA-2018:1932
- RHSA-2018:3073 https://access.redhat.com/errata/RHSA-2018:3073
- https://bugzilla.redhat.com/show_bug.cgi?id=1557382
- [debian-lts-announce] 20180331 [SECURITY] [DLA 1335-1] zsh security update https://lists.debian.org/debian-lts-announce/2018/03/msg00038.html
- [debian-lts-announce] 20201201 [SECURITY] [DLA 2470-1] zsh security update https://lists.debian.org/debian-lts-announce/2020/12/msg00000.html
- GLSA-201805-10 https://security.gentoo.org/glsa/201805-10
- https://sourceforge.net/p/zsh/code/ci/259ac472eac291c8c103c7a0d8a4eaf3c2942ed7
- USN-3608-1 https://usn.ubuntu.com/3608-1/
Provider assertions
2redhat · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- cf3dfc4dd651a5183d044ebdc7344aade4bd94ac1d3475478ff36a6817a204f5
- Ingested
- 23 Sep 2026, 07:44:12 UTC
- Source record
- Official CVE record