CVE-2018-13259
zsh: Improper handling of shebang line longer than 64
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD, Photon OS. Rated lower by Red Hat (medium), Amazon (medium), Oracle (medium), Ubuntu (medium).
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.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| Photon OS 2.0 | zsh | 5.3.1-9.ph2 |
| amazon linux 1 | zsh, zsh-debuginfo, zsh-html | 5.0.2-33.18.amzn1 |
| amazon linux 2 | zsh, zsh-debuginfo, zsh-html | 5.5.1-2.amzn2.0.1 |
| debian 11 | zsh | 5.6-1 |
| debian 12 | zsh | 5.6-1 |
| debian 13 | zsh | 5.6-1 |
| debian 14 | zsh | 5.6-1 |
| debian 8 | zsh | no fix listed |
| debian 9 | zsh | 5.3.1-4+deb9u1 |
| echo | zsh | 5.6-1 |
| Oracle Linux 7 | zsh, zsh-html | 5.0.2-33.el7 |
| Red Hat | zsh, zsh-html | no fix listed |
Show all 23 entries from 17 sources
| Source | Package | Fixed in |
|---|---|---|
| Photon OS 2.0 | zsh | 5.3.1-9.ph2 |
| amazon linux 1 | zsh | 5.0.2-33.18.amzn1 |
| amazon linux 1 | zsh-debuginfo | 5.0.2-33.18.amzn1 |
| amazon linux 1 | zsh-html | 5.0.2-33.18.amzn1 |
| amazon linux 2 | zsh | 5.5.1-2.amzn2.0.1 |
| amazon linux 2 | zsh-debuginfo | 5.5.1-2.amzn2.0.1 |
| amazon linux 2 | zsh-html | 5.5.1-2.amzn2.0.1 |
| debian 11 | zsh | 5.6-1 |
| debian 12 | zsh | 5.6-1 |
| debian 13 | zsh | 5.6-1 |
| debian 14 | zsh | 5.6-1 |
| debian 8 | zsh | no fix listed |
| debian 9 | zsh | 5.3.1-4+deb9u1 |
| echo | zsh | 5.6-1 |
| Oracle Linux 7 | zsh | 5.0.2-33.el7 |
| Oracle Linux 7 | zsh-html | 5.0.2-33.el7 |
| Red Hat | zsh | no fix listed |
| Red Hat | zsh-html | no fix listed |
| ubuntu 14.04 | zsh | 5.0.2-3ubuntu6.3 |
| ubuntu 16.04 | zsh | 5.1.1-1ubuntu2.3 |
| ubuntu 16.04-ESM | zsh | 5.1.1-1ubuntu2.3 |
| ubuntu 18.04 | zsh | 5.4.2-3ubuntu3.1 |
| ubuntu 18.04-ESM | zsh | 5.4.2-3ubuntu3.1 |
References
- http://www.zsh.org/mla/zsh-announce/136
- https://access.redhat.com/errata/RHSA-2019:2017
- https://access.redhat.com/security/cve/CVE-2018-13259
- https://bugs.debian.org/908000
- https://linux.oracle.com/cve/CVE-2018-13259.html
- https://linux.oracle.com/errata/ELSA-2019-2017.html
- https://lists.debian.org/debian-lts-announce/2020/12/msg00000.html
- https://nvd.nist.gov/vuln/detail/CVE-2018-13259