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.
The product copies an input buffer to an output buffer without verifying that the size of the input buffer is less than the size of the output buffer, leading to a buffer overflow.
The product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary. This may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data.
Link | Tags |
---|---|
https://usn.ubuntu.com/3608-1/ | third party advisory vendor advisory |
http://www.securityfocus.com/bid/103572 | third party advisory vdb entry |
https://security.gentoo.org/glsa/201805-10 | third party advisory vendor advisory |
https://sourceforge.net/p/zsh/code/ci/259ac472eac291c8c103c7a0d8a4eaf3c2942ed7 | third party advisory patch |
https://access.redhat.com/errata/RHSA-2018:1932 | third party advisory vendor advisory |
https://bugzilla.redhat.com/show_bug.cgi?id=1557382 | third party advisory issue tracking |
https://lists.debian.org/debian-lts-announce/2018/03/msg00038.html | third party advisory mailing list |
https://access.redhat.com/errata/RHSA-2018:3073 | third party advisory vendor advisory |
https://lists.debian.org/debian-lts-announce/2020/12/msg00000.html | mailing list |