CVE-2018-5345 Memory corruption in n/a

High 7.8 Published Updated

Attackers can execute arbitrary code or cause a crash via a crafted .cab file due to a stack-based buffer overflow in the GNOME gcab library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2018-5345?

CVE-2018-5345 is a high-severity memory corruption vulnerability in Canonical Ubuntu Linux, published on 12 Jan 2018. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

A stack-based buffer overflow within GNOME gcab through 0.7.4 can be exploited by malicious attackers to cause a crash or, potentially, execute arbitrary code via a crafted .cab file.

Weakness: CWE-787

Which versions are affected by CVE-2018-5345?

It affects 10 products.

Linux distribution packages (17)
gcab Red Hat:enterprise_linux:7::clientAll versions0:0.7-4.el7_4
gcab-debuginfo Red Hat:enterprise_linux:7::clientAll versions0:0.7-4.el7_4
libgcab1 Red Hat:enterprise_linux:7::clientAll versions0:0.7-4.el7_4
libgcab1-devel Red Hat:enterprise_linux:7::clientAll versions0:0.7-4.el7_4
gcab Red Hat:enterprise_linux:7::computenodeAll versions0:0.7-4.el7_4
gcab-debuginfo Red Hat:enterprise_linux:7::computenodeAll versions0:0.7-4.el7_4
libgcab1 Red Hat:enterprise_linux:7::computenodeAll versions0:0.7-4.el7_4
libgcab1-devel Red Hat:enterprise_linux:7::computenodeAll versions0:0.7-4.el7_4
gcab Red Hat:enterprise_linux:7::serverAll versions0:0.7-4.el7_4
gcab-debuginfo Red Hat:enterprise_linux:7::serverAll versions0:0.7-4.el7_4
libgcab1 Red Hat:enterprise_linux:7::serverAll versions0:0.7-4.el7_4
libgcab1-devel Red Hat:enterprise_linux:7::serverAll versions0:0.7-4.el7_4
gcab Red Hat:enterprise_linux:7::workstationAll versions0:0.7-4.el7_4
gcab-debuginfo Red Hat:enterprise_linux:7::workstationAll versions0:0.7-4.el7_4
libgcab1 Red Hat:enterprise_linux:7::workstationAll versions0:0.7-4.el7_4
libgcab1-devel Red Hat:enterprise_linux:7::workstationAll versions0:0.7-4.el7_4
gcab openSUSE:TumbleweedAll versions1.4-2.9

Products include Canonical Ubuntu Linux, Debian Debian Linux, Fedoraproject Fedora, Gnome Gcab, Redhat Enterprise Linux Desktop, Redhat Enterprise Linux Server and 4 more.

How do I fix CVE-2018-5345?

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

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

All Canonical Ubuntu Linux vulnerabilities

Sources

Also known as DEBIAN-CVE-2018-5345, DSA-4095-1, GHSA-28gw-xjhw-6cm5, MGASA-2018-0111, RHSA-2018:0350, UBUNTU-CVE-2018-5345 and 2 more.

Is CVE-2018-5345 in your software?

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

Check your SBOMs for free