CVE-2021-28906
CVE-2021-28906 is a high-severity vulnerability in Cesnet Libyang with a CVSS 3.x base score of 7.5. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-252.
Key facts
- Severity: High (CVSS 3.x base score 7.5)
- CVSS v2: 5.0
- EPSS exploit prediction: 2% (72nd percentile)
- Actively exploited: Not listed in CISA KEV
- Weakness: CWE-252
- Affected product: Cesnet Libyang
- Published:
- Last modified:
Description
In function read_yin_leaf() 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.
Frequently asked questions
- What is CVE-2021-28906?
- In function read_yin_leaf() 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.
- How severe is CVE-2021-28906?
- CVE-2021-28906 has a CVSS 3.x base score of 7.5, rated high severity. It is exploitable over network with low attack complexity, requires no privileges and no user interaction. Impact on confidentiality is none, integrity none, and availability high.
- Is CVE-2021-28906 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 2% (72nd percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2021-28906?
- CVE-2021-28906 affects Cesnet Libyang. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2021-28906?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
- When was CVE-2021-28906 published?
- CVE-2021-28906 was published on 2021-05-20 and last updated on 2026-06-17.
References
Affected products (1)
- cpe:2.3:a:cesnet:libyang:*:*:*:*:*:*:*:*
More vulnerabilities in Cesnet Libyang
- CVE-2019-19334 — Critical (CVSS 9.8): In all versions of libyang before 1.0-r5, a stack-based buffer overflow was discovered in the way libyang parses YANG…
- CVE-2019-19333 — Critical (CVSS 9.8): In all versions of libyang before 1.0-r5, a stack-based buffer overflow was discovered in the way libyang parses YANG…
- CVE-2019-20397 — High (CVSS 8.8): A double-free is present in libyang before v1.0-r1 in the function yyparse() when an organization field is not…
- CVE-2019-20394 — High (CVSS 8.8): A double-free is present in libyang before v1.0-r3 in the function yyparse() when a type statement in used in a…
- CVE-2019-20393 — High (CVSS 8.8): A double-free is present in libyang before v1.0-r1 in the function yyparse() when an empty description is used.…
- CVE-2023-26917 — High (CVSS 7.5): libyang from v2.0.164 to v2.1.30 was discovered to contain a NULL pointer dereference via the function…
All CVEs affecting Cesnet Libyang →
Other CWE-252 vulnerabilities
- CVE-2025-66565 — Critical (CVSS 9.8): Fiber Utils is a collection of common functions created for Fiber. In versions 2.0.0-rc.3 and below, when the system's…
- CVE-2021-38171 — Critical (CVSS 9.8): adts_decode_extradata in libavformat/adtsenc.c in FFmpeg 4.4 does not check the init_get_bits return value, which is a…
- CVE-2021-26955 — Critical (CVSS 9.8): An issue was discovered in the xcb crate through 2021-02-04 for Rust. It has a soundness violation because…
- CVE-1999-0199 — Critical (CVSS 9.8): manual/search.texi in the GNU C Library (aka glibc) before 2.2 lacks a statement about the unspecified tdelete return…
- CVE-2019-15900 — Critical (CVSS 9.8): An issue was discovered in slicer69 doas before 6.2 on certain platforms other than OpenBSD. On platforms without…
- CVE-2010-0211 — Critical (CVSS 9.8): The slap_modrdn2mods function in modrdn.c in OpenLDAP 2.4.22 does not check the return value of a call to the…