CVE-2018-16981 Memory corruption in n/a

High 8.8 Published Updated

A heap-based buffer overflow in the stb_image library allows attackers to execute arbitrary code or cause a denial of service via crafted GIF files.

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

CVE-2018-16981 is a high-severity memory corruption vulnerability in Debian Debian Linux, published on 12 Sep 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

stb stb_image.h 2.19, as used in catimg, Emscripten, and other products, has a heap-based buffer overflow in the stbi__out_gif_code function.

Weakness: CWE-787

Which versions are affected by CVE-2018-16981?

It affects 2 products.

Products include Debian Debian Linux, Nothings Stb Image.h.

How do I fix CVE-2018-16981?

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

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

All Debian Debian Linux vulnerabilities

Sources

Also known as DEBIAN-CVE-2018-16981, GHSA-5p8c-xff7-r336, UBUNTU-CVE-2018-16981.

Is CVE-2018-16981 in your software?

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

Check your SBOMs for free