# CVE-2021-28902

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2021-05-20 · Modified: 2024-08-03
- Aliases: UBUNTU-CVE-2021-28902, DEBIAN-CVE-2021-28902, ALPINE-CVE-2021-28902
- Record: https://cvemate.com/vulnerability/CVE-2021-28902 · JSON: https://cvemate.com/vulnerability/CVE-2021-28902/json

## Description

```text
In function read_yin_container() in libyang <= v1.0.225, it doesn't check whether the value of retval->ext[r] is NULL. In some cases, it can be NULL, which leads to the operation of retval->ext[r]->flags that results in a crash.
```

## Signals

- CVSS: 7.5 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 1.555%, percentile 76.013%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- alpine libyang (Alpine Linux): \< 1.0.184-r1 \| \< 1.0.215-r1
- cesnet libyang: ≤ 1.0.225
- debian libyang (Debian): \< 3.4.2+dfsg-2
- ubuntu libyang (Ubuntu): All versions (No fix recorded)

## References

- <https://github.com/CESNET/libyang/issues/1454>
- <https://security.gentoo.org/glsa/202107-54>
- <https://ubuntu.com/security/CVE-2021-28902>
- <https://www.cve.org/CVERecord?id=CVE-2021-28902>
- <https://security-tracker.debian.org/tracker/CVE-2021-28902>
- <https://security.alpinelinux.org/vuln/CVE-2021-28902>

---

Data as of 2026-12-05T04:20:41.587Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
