Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1626187 - (CVE-2018-0502) CVE-2018-0502 zsh: Improper parsing of the shebang line with special chars
CVE-2018-0502 zsh: Improper parsing of the shebang line with special chars
Status: CLOSED NOTABUG
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: 1626191 1626190
Blocks: 1626189
  Show dependency treegraph
 
Reported: 2018-09-06 13:28 EDT by Pedro Sampaio
Modified: 2018-10-05 05:46 EDT (History)
5 users (show)

See Also:
Fixed In Version: zsh 5.6
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2018-10-05 05:46:37 EDT
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:28:17 EDT
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.

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:29:52 EDT
Created zsh tracking bugs for this issue:

Affects: fedora-all [bug 1626190]
Comment 3 Riccardo Schirone 2018-10-05 05:46:37 EDT
Closing this as NOTABUG and asked to MITRE to reject the CVE. Executing the second line of a script is not a security issue, since in the moment you execute a script you already expect all commands inside it to be executed.

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