All reports
Low

zsh: buffer overflow in utils.c:checkmailpath() can lead to local arbitrary code execution

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2018-1100

Probability of exploitation in the next 30 days: 0.53%

FIRST EPSS · 2026-11-21

Description

zsh through version 5.4.2 is vulnerable to a stack-based buffer overflow in the utils.c:checkmailpath function. A local attacker could exploit this to execute arbitrary code in the context of another user.

A buffer overflow flaw was found in the zsh shell check path functionality. A local, unprivileged user can create a specially crafted message file, which, if used to set a custom "you have new mail" message, leads to code execution in the context of the user who receives the message. If the user affected is privileged, this leads to privilege escalation.