Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 1626184 - (CVE-2018-13259) CVE-2018-13259 zsh: Improper handling of shebang line longer than 64
CVE-2018-13259 zsh: Improper handling of shebang line longer than 64
Status: NEW
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
medium Severity medium
: ---
: ---
Assigned To: Red Hat Product Security
impact=moderate,public=20180904,repor...
: Security
Depends On: 1626186 1628990 1626185
Blocks: 1626188
  Show dependency treegraph
 
Reported: 2018-09-06 13:23 EDT by Pedro Sampaio
Modified: 2018-09-17 11:24 EDT (History)
5 users (show)

See Also:
Fixed In Version: zsh 5.6
Doc Type: If docs needed, set a value
Doc Text:
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.
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Pedro Sampaio 2018-09-06 13:23:22 EDT
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.

Upstream patch:

https://sourceforge.net/p/zsh/code/ci/1c4c7b6a4d17294df028322b70c53803a402233d

References:

https://www.zsh.org/mla/zsh-announce/136
Comment 1 Pedro Sampaio 2018-09-06 13:24:57 EDT
Created zsh tracking bugs for this issue:

Affects: fedora-all [bug 1626185]
Comment 3 Riccardo Schirone 2018-09-14 05:00:57 EDT
External References:

http://www.zsh.org/mla/zsh-announce/136
Comment 7 Riccardo Schirone 2018-09-14 11:18:38 EDT
Statement:

This issue did not affect the versions of zsh as shipped with Red Hat Enterprise Linux 5 as scripts were directly handled by the kernel and not special-handled by zsh itself.

Note You need to log in before you can comment on or make changes to this bug.