All reports
Medium

libyang: recursive call to lyxml_parse_mem() lead to crash

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2021-28903

Probability of exploitation in the next 30 days: 2.43%

FIRST EPSS · 2026-11-19

Description

A stack overflow in libyang <= v1.0.225 can cause a denial of service through function lyxml_parse_mem(). lyxml_parse_elem() function will be called recursively, which will consume stack space and lead to crash.

A flaw was found in libyang. An uncontrolled recursion in lyxml_parse_elem function allows a remote attacker to crash an application that uses libyang with user-controlled XML data. The highest threat from this vulnerability is the service availability.