ALAS2-2018-1089

Related Vulnerabilities: CVE-2018-0502   CVE-2018-13259  

An issue was discovered in zsh before 5.6. The beginning of a #! script file was mishandled, potentially leading to an execve call to a program named on the second line.(CVE-2018-0502) It was discovered that zsh does not properly validate the shebang of input files and it truncates it to the first 64 bytes. A local attacker may use this flaw to make zsh execute a different binary than what is expected, named with a substring of the shebang one.(CVE-2018-13259)

ALAS2-2018-1089


Amazon Linux 2 Security Advisory: ALAS-2018-1089
Advisory Release Date: 2018-10-08 22:18 Pacific
Advisory Updated Date: 2018-10-10 00:14 Pacific
Severity: Medium

Issue Overview:

An issue was discovered in zsh before 5.6. The beginning of a #! script file was mishandled, potentially leading to an execve call to a program named on the second line.(CVE-2018-0502)

It was discovered that zsh does not properly validate the shebang of input files and it truncates it to the first 64 bytes. A local attacker may use this flaw to make zsh execute a different binary than what is expected, named with a substring of the shebang one.(CVE-2018-13259)


Affected Packages:

zsh


Issue Correction:
Run yum update zsh to update your system.

New Packages:
i686:
    zsh-5.5.1-2.amzn2.0.1.i686
    zsh-debuginfo-5.5.1-2.amzn2.0.1.i686

noarch:
    zsh-html-5.5.1-2.amzn2.0.1.noarch

src:
    zsh-5.5.1-2.amzn2.0.1.src

x86_64:
    zsh-5.5.1-2.amzn2.0.1.x86_64
    zsh-debuginfo-5.5.1-2.amzn2.0.1.x86_64