CVE-2018-5804 Denial of service in LibRaw

Medium 6.5 Published Updated

A type confusion error in LibRaw allows attackers to cause a division by zero, leading to a denial of service.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2018-5804?

CVE-2018-5804 is a medium-severity denial of service vulnerability in Libraw Libraw, published on 7 Dec 2018. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

A type confusion error within the "identify()" function (internal/dcraw_common.cpp) in LibRaw versions prior to 0.18.8 can be exploited to trigger a division by zero.

Weakness: CWE-704, CWE-369

Which versions are affected by CVE-2018-5804?

It affects 1 product.

Products include Libraw Libraw.

How do I fix CVE-2018-5804?

Upgrade to a fixed version.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2018-5804 being exploited?

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

All Libraw Libraw vulnerabilities

Sources

Also known as DEBIAN-CVE-2018-5804, GHSA-hmwc-5f9q-3986, UBUNTU-CVE-2018-5804.

Is CVE-2018-5804 in your software?

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

Check your SBOMs for free