CVE-2019-3817 Use after free in libcomps

High 7.5 Published Updated

An attacker can trigger a use-after-free in libcomps by providing a crafted XML file, potentially leading to application crashes or arbitrary code execution.

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-2019-3817?

CVE-2019-3817 is a high-severity use after free vulnerability in libcomps, published on 27 Mar 2019. 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 use-after-free flaw has been discovered in libcomps before version 0.1.10 in the way ObjMRTrees are merged. An attacker, who is able to make an application read a crafted comps XML file, may be able to crash the application or execute malicious code.

Weakness: CWE-416

Which versions are affected by CVE-2019-3817?

It affects 1 product.

Linux distribution packages (7)
libcomps Red Hat:rhel_extras_other:7All versions0:0.1.8-13.el7
libcomps-debuginfo Red Hat:rhel_extras_other:7All versions0:0.1.8-13.el7
libcomps-devel Red Hat:rhel_extras_other:7All versions0:0.1.8-13.el7
libcomps-doc Red Hat:rhel_extras_other:7All versions0:0.1.8-13.el7
python-libcomps-doc Red Hat:rhel_extras_other:7All versions0:0.1.8-13.el7
python2-libcomps Red Hat:rhel_extras_other:7All versions0:0.1.8-13.el7
libcomps SUSE:Package Hub 15All versions0.1.8-bp150.3.3.1

Products include Rpm Libcomps.

How do I fix CVE-2019-3817?

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-2019-3817 being exploited?

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

Sources

Also known as GHSA-3rh7-494q-3mjq, RHSA-2019:3898, openSUSE-SU-2019:0323-1, openSUSE-SU-2019:0328-1, openSUSE-SU-2024:10929-1.

Is CVE-2019-3817 in your software?

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

Check your SBOMs for free