CVE-2019-20393 Memory corruption in n/a

High 8.8 Published Updated

A double-free vulnerability in libyang allows attackers to cause crashes or execute code via malicious YANG 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-2019-20393?

CVE-2019-20393 is a high-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

A double-free is present in libyang before v1.0-r1 in the function yyparse() when an empty description is used. Applications that use libyang to parse untrusted input yang files may be vulnerable to this flaw, which would cause a crash or potentially code execution.

Weakness: CWE-415

Which versions are affected by CVE-2019-20393?

It affects 1 product.

Products include Cesnet Libyang.

How do I fix CVE-2019-20393?

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

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

Sources

Also known as DEBIAN-CVE-2019-20393, GHSA-xr5g-jrq4-w3j4, UBUNTU-CVE-2019-20393.

Is CVE-2019-20393 in your software?

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

Check your SBOMs for free