CVE-2019-20391 Memory corruption in n/a

Medium 6.5 Published Updated

An invalid memory access in libyang allows attackers to crash applications parsing untrusted YANG files via crafted if-feature statements.

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

CVE-2019-20391 is a medium-severity memory corruption vulnerability in n/a, published on 22 Jan 2020. 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 invalid memory access flaw is present in libyang before v1.0-r3 in the function resolve_feature_value() when an if-feature statement is used inside a bit. Applications that use libyang to parse untrusted input yang files may crash.

Weakness: CWE-119

Which versions are affected by CVE-2019-20391?

It affects 1 product.

Products include Cesnet Libyang.

How do I fix CVE-2019-20391?

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

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

Sources

Also known as DEBIAN-CVE-2019-20391, GHSA-57jg-xr2w-54jg, UBUNTU-CVE-2019-20391.

Is CVE-2019-20391 in your software?

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

Check your SBOMs for free