CVE-2018-3839 Memory corruption in Simple DirectMedia

High 7.5 Published Updated

A specially crafted XCF image can trigger an out-of-bounds heap write in SDL2_image, allowing attackers to execute arbitrary code when the image is displayed.

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

CVE-2018-3839 is a high-severity memory corruption vulnerability in Debian Debian Linux, published on 10 Apr 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

An exploitable code execution vulnerability exists in the XCF image rendering functionality of Simple DirectMedia Layer SDL2_image-2.0.2. A specially crafted XCF image can cause an out-of-bounds write on the heap, resulting in code execution. An attacker can display a specially crafted image to trigger this vulnerability.

Weakness: CWE-787

Which versions are affected by CVE-2018-3839?

It affects 3 products.

Products include Debian Debian Linux, Libsdl Sdl Image, Starwindsoftware Starwind Virtual San.

How do I fix CVE-2018-3839?

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

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

All Debian Debian Linux vulnerabilities

Sources

Also known as ALPINE-CVE-2018-3839, DEBIAN-CVE-2018-3839, GHSA-g336-h8cj-mccg, UBUNTU-CVE-2018-3839.

Is CVE-2018-3839 in your software?

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

Check your SBOMs for free