zsh through version 5.4.2 is vulnerable to a stack-based buffer overflow in the exec.c:hashcmd() function. A local attacker could exploit this to cause a denial of service.
https://usn.ubuntu.com/3608-1/
https://security.gentoo.org/glsa/201805-10
https://lists.debian.org/debian-lts-announce/2020/12/msg00000.html
https://lists.debian.org/debian-lts-announce/2018/03/msg00038.html
https://bugzilla.redhat.com/show_bug.cgi?id=1553531