CVE-2014-10070
zsh: privilege escalation via environment variables
Severity
LowRed Hat Product Security
CVSS 3.0
Review impact separately from score.
Published · February 26, 2018
Updated · November 22, 2025
Description
zsh before 5.0.7 allows evaluation of the initial values of integer variables imported from the environment (instead of treating them 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.
Statement
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/.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
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.
CVSS / CWE
CVSS 3.0 · 0CVSS:3.0/AV:L/AC:H/PR:L/UI:R/S:C/C:N/I:N/A:N
CWE-95 · Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')