CVE-2018-1100 Memory corruption in zsh

High 7.8 Published Updated

A local attacker can exploit a stack-based buffer overflow in zsh to execute arbitrary code and escalate privileges.

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-1100?

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

Official description

zsh through version 5.4.2 is vulnerable to a stack-based buffer overflow in the utils.c:checkmailpath function. A local attacker could exploit this to execute arbitrary code in the context of another user.

Weakness: CWE-787, CWE-120

Which versions are affected by CVE-2018-1100?

It affects 5 products.

Linux distribution packages (2)
zsh SUSE:Linux Enterprise Server 11 SP4All versions4.3.6-67.9.3.1
zsh SUSE:Linux Enterprise Server for SAP Applications 11 SP4All versions4.3.6-67.9.3.1

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

How do I fix CVE-2018-1100?

Apply the vendor's patch.

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

Is CVE-2018-1100 being exploited?

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

All Canonical Ubuntu Linux vulnerabilities

Sources

Also known as DEBIAN-CVE-2018-1100, GHSA-hwhr-jcvf-mgf3, SUSE-SU-2018:1037-1, UBUNTU-CVE-2018-1100.

Is CVE-2018-1100 in your software?

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

Check your SBOMs for free