CVE-2018-4022 Use after free in MKVToolNix

High 7.3 Published Updated

A use-after-free flaw in MKVToolNix allows arbitrary code execution via a crafted MKV file, requiring users to update the software.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2018-4022?

CVE-2018-4022 is a high-severity use after free vulnerability in MKVToolNix, published on 26 Oct 2018. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

A use-after-free vulnerability exists in the way MKVToolNix MKVINFO v25.0.0 handles the MKV (matroska) file format. A specially crafted MKV file can cause arbitrary code execution in the context of the current user.

Weakness: CWE-416

Which versions are affected by CVE-2018-4022?

It affects 1 product.

Products include Mkvtoolnix Mkvinfo.

How do I fix CVE-2018-4022?

Upgrade to a fixed version.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2018-4022 being exploited?

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

Sources

Also known as DEBIAN-CVE-2018-4022, GHSA-jxj9-2h46-gwf3, UBUNTU-CVE-2018-4022, openSUSE-SU-2024:11053-1.

Is CVE-2018-4022 in your software?

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

Check your SBOMs for free