Every CVE Search/ Get API key

CVE-2021-28903

A stack overflow in libyang <= v1.0.225 can cause a denial of service through function...

7.5 HighFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
None
Integrity
None
Availability
High

Exploit likelihood

2.43%Up 1.9 points since May 21, 2021
90%50%10%1%

What each source reports

NVD Score used 7.5

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.

Record
CVE-2021-28903
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS 2.0
5.0 MediumAV:N/AC:L/Au:N/C:N/I:N/A:P
Weakness
CWE-674
Updated
2026-11-02
CVE List No score

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.

Record
CVE-2021-28903
Updated
2026-11-02
EUVDEUVD-2021-15556 No score

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.

Record
EUVD-2021-15556
Updated
2026-11-03
GitHub AdvisoriesGHSA-vr34-263x-7q3r 7.5

A stack overflow in libyang <= v1.0.225 can cause a denial of service through function...

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.

Record
GHSA-vr34-263x-7q3r
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness
CWE-674
Updated
2026-11-02
OSVALPINE-CVE-2021-28903 7.5

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.

Record
ALPINE-CVE-2021-28903
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-03
OSV 7.5

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.

Record
CVE-2021-28903
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVDEBIAN-CVE-2021-28903 7.5

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.

Record
DEBIAN-CVE-2021-28903
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVUBUNTU-CVE-2021-28903 7.5

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.

Record
UBUNTU-CVE-2021-28903
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVSUSE-SU-2022:3245-1 No score

Security update for libyang

This update for libyang fixes the following issues:

  • CVE-2021-28906: Fixed missing check in read_yin_leaf that can lead to DoS (bsc#1186378)
  • CVE-2021-28904: Fixed missing check in ext_get_plugin that lead to DoS (bsc#1186376).
  • CVE-2021-28903: Fixed stack overflow in lyxml_parse_mem (bsc#1186375).
  • CVE-2021-28902: Fixed missing check in read_yin_container that can lead to DoS (bsc#1186374).
Record
SUSE-SU-2022:3245-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
libyang
Alpine:v3.13
before 1.0.184-r1
1.0.184-r1
libyang
Alpine:v3.14
before 1.0.215-r1
1.0.215-r1
libyang
Debian:13
before 3.4.2+dfsg-2
3.4.2+dfsg-2
libyang
Debian:14
before 3.4.2+dfsg-2
3.4.2+dfsg-2
libyang
SUSE:Linux Enterprise Module for Server Applications 15 SP3
From an advisory covering 4 CVEs
before 1.0.184-150300.3.6.1
1.0.184-150300.3.6.1
libyang
SUSE:Linux Enterprise Module for Server Applications 15 SP4
From an advisory covering 4 CVEs
before 1.0.184-150300.3.6.1
1.0.184-150300.3.6.1
libyang
openSUSE:Leap 15.3
From an advisory covering 4 CVEs
before 1.0.184-150300.3.6.1
1.0.184-150300.3.6.1
libyang
openSUSE:Leap 15.4
From an advisory covering 4 CVEs
before 1.0.184-150300.3.6.1
1.0.184-150300.3.6.1
libyang
Ubuntu:20.04:LTS
All versions, plus listed versions
0.16.105-10.16.105-20.16.105-30.16.105-3build1
None known
libyang
Ubuntu:22.04:LTS
All versions, plus listed versions
1.0.225-1.1
None known

History

History
RecordedChangedSources
affected, facts
affected, aliases, referencesOSV
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2021-28903 is a high vulnerability (CVSS 7.5) in Cesnet Libyang, published May 20, 2021. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 2.43%, the 84th percentile. Fixed in libyang 1.0.184-r1.

References

Show 11 moreShow less
MoveEnter Open