Vulnerabilities / CVE-2017-18206

critical

CVE-2017-18206

zsh: buffer overrun in symlinks

Published Modified CWE 119
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat7.5CVSS:3.0/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H

Trivy's own label is CRITICAL. Rated critical by NVD, Photon OS. Rated lower by Oracle (medium), Ubuntu (medium), Red Hat (low), Amazon (low).

Description

In utils.c in zsh before 5.4, symlink expansion had a buffer overflow.

Affected packages and fixed versions

SourcePackageFixed in
Photon OS 2.0zsh5.3.1-10.ph2
amazon linux 1zsh, zsh-debuginfo, zsh-html5.0.2-31.17.amzn1
amazon linux 2zsh, zsh-debuginfo, zsh-html5.3.1-7.amzn2
debian 11zsh5.4.1-1
debian 12zsh5.4.1-1
debian 13zsh5.4.1-1
debian 14zsh5.4.1-1
debian 7zsh4.3.17-1+deb7u1
debian 8zshno fix listed
debian 9zsh5.3.1-4+deb9u1
echozsh5.4.1-1
Oracle Linux 6zsh, zsh-html4.3.11-8.el6
Show all 22 entries from 16 sources
SourcePackageFixed in
Photon OS 2.0zsh5.3.1-10.ph2
amazon linux 1zsh5.0.2-31.17.amzn1
amazon linux 1zsh-debuginfo5.0.2-31.17.amzn1
amazon linux 1zsh-html5.0.2-31.17.amzn1
amazon linux 2zsh5.3.1-7.amzn2
amazon linux 2zsh-debuginfo5.3.1-7.amzn2
amazon linux 2zsh-html5.3.1-7.amzn2
debian 11zsh5.4.1-1
debian 12zsh5.4.1-1
debian 13zsh5.4.1-1
debian 14zsh5.4.1-1
debian 7zsh4.3.17-1+deb7u1
debian 8zshno fix listed
debian 9zsh5.3.1-4+deb9u1
echozsh5.4.1-1
Oracle Linux 6zsh4.3.11-8.el6
Oracle Linux 6zsh-html4.3.11-8.el6
Oracle Linux 7zsh5.0.2-31.el7
Oracle Linux 7zsh-html5.0.2-31.el7
ubuntu 16.04zsh5.1.1-1ubuntu2.1
ubuntu 16.04-ESMzsh5.1.1-1ubuntu2.1
ubuntu 17.10zsh5.2-5ubuntu1.1

References

All 12 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.