CVE-2018-1071 Memory corruption in zsh

Medium 5.5 Published Updated

A local attacker can cause a denial of service via a stack-based buffer overflow in the zsh shell's hashcmd function.

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

CVE-2018-1071 is a medium-severity memory corruption vulnerability in Canonical Ubuntu Linux, published on 9 Mar 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 exec.c:hashcmd() function. A local attacker could exploit this to cause a denial of service.

Weakness: CWE-787, CWE-121

Which versions are affected by CVE-2018-1071?

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

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-1071 being exploited?

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

All Canonical Ubuntu Linux vulnerabilities

Sources

Also known as ALPINE-CVE-2018-1071, DEBIAN-CVE-2018-1071, GHSA-xc49-qj7m-vpp4, UBUNTU-CVE-2018-1071.

Is CVE-2018-1071 in your software?

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

Check your SBOMs for free