Zsh before version 5.4.2-test-1 is vulnerable to a buffer overflow in the shell autocomplete functionality. A local unprivileged user can create a specially crafted directory path which leads to code execution in the context of the user who tries to use autocomplete to traverse the before mentioned path. If the user affected is privileged, this leads to privilege escalation.
https://usn.ubuntu.com/3608-1/
https://sourceforge.net/p/zsh/code/ci/259ac472eac291c8c103c7a0d8a4eaf3c2942ed7
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=1557382
https://access.redhat.com/errata/RHSA-2018:3073