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.
Acknowledgments: Name: Richard Maciel Costa (Red Hat)
Created zsh tracking bugs for this issue: Affects: fedora-all [bug 1563396]
*** Bug 1563394 has been marked as a duplicate of this bug. ***
Fixed by upstream patch: https://sourceforge.net/p/zsh/code/ci/31f72205630687c1cef89347863aab355296a27f/
This issue has been addressed in the following products: Red Hat Enterprise Linux 6 Via RHSA-2018:1932 https://access.redhat.com/errata/RHSA-2018:1932
This issue has been addressed in the following products: Red Hat Enterprise Linux 7 Via RHSA-2018:3073 https://access.redhat.com/errata/RHSA-2018:3073