CVE-2019-20394 Use after free 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-20394?

CVE-2019-20394 is a high-severity use after free 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-r3 in the function yyparse() when a type statement in used in a notification statement. 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-20394?

It affects 1 product.

Products include Cesnet Libyang.

How do I fix CVE-2019-20394?

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

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

Sources

Also known as DEBIAN-CVE-2019-20394, GHSA-pgmh-hmfg-8gwj, UBUNTU-CVE-2019-20394.

Is CVE-2019-20394 in your software?

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

Check your SBOMs for free