All reports
Medium

zsh: Stack-based buffer overflow in gen_matches_files() at compctl.c

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2018-1083

Probability of exploitation in the next 30 days: 0.59%

FIRST EPSS · 2026-11-24

Description

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.

A buffer overflow flaw was found in the zsh shell auto-complete 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 auto-complete to traverse the before mentioned path. If the user affected is privileged, this leads to privilege escalation.