CVE-2018-3846 Memory corruption in NASA CFITSIO

High 8.8 Published Updated

A stack-based buffer overflow in NASA CFITSIO allows attackers to execute arbitrary code by delivering specially crafted FIT images.

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

CVE-2018-3846 is a high-severity memory corruption vulnerability in Fedoraproject Fedora, published on 16 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

In the ffgphd and ffgtkn functions in NASA CFITSIO 3.42, specially crafted images parsed via the library can cause a stack-based buffer overflow overwriting arbitrary data. An attacker can deliver an FIT image to trigger this vulnerability and potentially gain code execution.

Weakness: CWE-787

Which versions are affected by CVE-2018-3846?

It affects 2 products.

Products include Fedoraproject Fedora, Nasa Cfitsio.

How do I fix CVE-2018-3846?

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

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

All Fedoraproject Fedora vulnerabilities

Sources

Also known as DEBIAN-CVE-2018-3846, GHSA-cr48-5q9g-m667, UBUNTU-CVE-2018-3846.

Is CVE-2018-3846 in your software?

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

Check your SBOMs for free