CVE-2021-28903: libyang: recursive call to lyxml_parse_mem() lead to crash | OX.Radar
Breaking: Ruby2Shell - Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution
Read the Report
Learn How MCP Is Bypassing a Decade of Cloud Security Best Practices
Read the Report
Are you exposed? Connect a repo in minutes.
Scan your repos free

CVE-2021-28903

libyang: recursive call to lyxml_parse_mem() lead to crash

Overview

Published
20 May 2021
Modified
17 Jun 2026
High CVE
0 Registry packages
3 OS packages
5 Linux distributions
Yes Fix available

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.

Source: OX vulnerability database

Severity

7.5 · HIGH

CVSS 3.1 base score, scored by NVD.

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Weakness: CWE-674

Affected packages · 0

No registry package. This ID affects operating system packages only.

Operating systems · 9 fixes

Red Hat 1 release · 1 package

wont fix 1
libyang
Red Hat fixes for CVE-2021-28903
ReleasePackageFixed in
8 libyang wont fix

SUSE Linux Enterprise 1 release · 1 package

fixed 1
libyang-extentions
SUSE Linux Enterprise fixes for CVE-2021-28903
ReleasePackageFixed inAdvisory
15.4 libyang-extentions +1 1.0.184-150300.3.6.1 SUSE-SU-2022:3245-1

debian 4 releases · 1 package

affected 2 fixed 2
libyang
debian fixes for CVE-2021-28903
ReleasePackageFixed in
10 libyang affected
11 libyang affected
13 libyang 3.4.2+dfsg-2
14 libyang 3.4.2+dfsg-2

echo 1 release · 1 package

fixed 1
libyang
echo fixes for CVE-2021-28903
ReleasePackageFixed in
libyang 3.4.2+dfsg-2

ubuntu 2 releases · 1 package

affected 2
libyang
ubuntu fixes for CVE-2021-28903
ReleasePackageFixed in
20.04-ESM libyang affected
22.04 libyang affected

References

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.