CVE-2019-19334 Memory corruption in libyang

High 8.1 Published Updated

A stack-based buffer overflow in libyang allows attackers to cause denial of service or execute code via malicious YANG files.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2019-19334?

CVE-2019-19334 is a high-severity memory corruption vulnerability in Fedoraproject Fedora, published on 6 Dec 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

In all versions of libyang before 1.0-r5, a stack-based buffer overflow was discovered in the way libyang parses YANG files with a leaf of type "identityref". An application that uses libyang to parse untrusted YANG files may be vulnerable to this flaw, which would allow an attacker to cause a denial of service or possibly gain code execution.

Weakness: CWE-787, CWE-121

Which versions are affected by CVE-2019-19334?

It affects 3 products.

Products include Cesnet Libyang, Fedoraproject Fedora, Redhat Enterprise Linux.

How do I fix CVE-2019-19334?

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

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

All Fedoraproject Fedora vulnerabilities

Sources

Also known as DEBIAN-CVE-2019-19334, GHSA-936c-h6q8-79c4.

Is CVE-2019-19334 in your software?

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

Check your SBOMs for free