CVE-2018-1083 Memory corruption in zsh

High 7.8 Published Updated

A local attacker can trigger a buffer overflow in Zsh autocomplete via a crafted path, leading to code execution and potential privilege escalation.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2018-1083?

CVE-2018-1083 is a high-severity memory corruption vulnerability in Canonical Ubuntu Linux, published on 28 Mar 2018. It can only be exploited from the same machine or local network, with no action from the victim.

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

Weakness: CWE-119, CWE-120

Which versions are affected by CVE-2018-1083?

It affects 6 products.

Products include Canonical Ubuntu Linux, Debian Debian Linux, Redhat Enterprise Linux Desktop, Redhat Enterprise Linux Server, Redhat Enterprise Linux Workstation, Zsh Zsh.

How do I fix CVE-2018-1083?

Upgrade to a fixed version.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2018-1083 being exploited?

There is no known exploitation of CVE-2018-1083 in the wild and no public exploit code.

All Canonical Ubuntu Linux vulnerabilities

Sources

Also known as ALPINE-CVE-2018-1083, DEBIAN-CVE-2018-1083, GHSA-pqpc-3fmx-3wqw, UBUNTU-CVE-2018-1083.

Is CVE-2018-1083 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free