Bug 1549287 (CVE-2014-10070) - CVE-2014-10070 zsh: privilege escalation via environment variables
Summary: CVE-2014-10070 zsh: privilege escalation via environment variables
Alias: CVE-2014-10070
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
Depends On: 1549288 1549290
Blocks: 1549289
TreeView+ depends on / blocked
Reported: 2018-02-26 21:47 UTC by Pedro Sampaio
Modified: 2021-02-17 00:46 UTC (History)
6 users (show)

Fixed In Version: zsh 5.0.7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2018-03-13 17:07:51 UTC

Attachments (Terms of Use)

Description Pedro Sampaio 2018-02-26 21:47:08 UTC
Released in zsh 5.0.7 a security fix that disallow evaluation of the initial values of integer variables imported from the environment (they are instead treated as literal numbers). That could allow local privilege escalation, under some specific and atypical conditions where zsh is being invoked in privilege elevation contexts when the environment has not been properly sanitized, such as when zsh is invoked by sudo on systems where "env_reset" has been disabled.

Upstream patch:


Comment 1 Pedro Sampaio 2018-02-26 21:47:35 UTC
Created zsh tracking bugs for this issue:

Affects: fedora-all [bug 1549288]

Comment 4 Richard Maciel Costa 2018-03-13 17:01:21 UTC

Don't allow environment variables 'OPTIND' and 'TRY_BLOCK_ERROR' to be inherited by shells called through zsh.
Mitigated by default on Red Hat Enterprise Linux versions 5, 6 and 7, since this is the default configuration on those versions.

Comment 6 Andrej Nemec 2018-05-14 14:00:27 UTC

Red Hat Product Security has rated this issue as having security impact of Low. This issue is not currently planned to be addressed in future updates. For additional information, refer to the Issue Severity Classification: https://access.redhat.com/security/updates/classification/.

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