CVE-2018-5805 Memory corruption in LibRaw

High 8.8 Published Updated

A stack-based buffer overflow in LibRaw allows attackers to cause a crash via crafted image files, impacting applications using the library.

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

CVE-2018-5805 is a high-severity memory corruption 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 boundary error within the "quicktake_100_load_raw()" function (internal/dcraw_common.cpp) in LibRaw versions prior to 0.18.8 can be exploited to cause a stack-based buffer overflow and subsequently cause a crash.

Weakness: CWE-787

Which versions are affected by CVE-2018-5805?

It affects 4 products.

Products include Libraw Libraw, Redhat Enterprise Linux Desktop, Redhat Enterprise Linux Server, Redhat Enterprise Linux Workstation.

How do I fix CVE-2018-5805?

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

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

All Libraw Libraw vulnerabilities

Sources

Also known as DEBIAN-CVE-2018-5805, GHSA-vvhq-5m68-7x6h, UBUNTU-CVE-2018-5805.

Is CVE-2018-5805 in your software?

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

Check your SBOMs for free