{"id":"CVE-2021-28906","aliases":["ALPINE-CVE-2021-28906","DEBIAN-CVE-2021-28906","EUVD-2021-15559","GHSA-gf49-5jg3-x68p","SUSE-SU-2022:3245-1","UBUNTU-CVE-2021-28906"],"status":"published","title":"In function read_yin_leaf() in libyang \u003c= v1.0.225, it doesn't check whether the value of retval-...","description":"In function read_yin_leaf() in libyang \u003c= v1.0.225, it doesn't check whether the value of retval-\u003eext[r] is NULL. In some cases, it can be NULL, which leads to the operation of retval-\u003eext[r]-\u003eflags that results in a crash.","severity":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.01572,"percentile":0.75569,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-252"],"published":"2021-05-20T18:36:44Z","modified":"2026-11-03T06:32:27Z","fixes":[{"ecosystem":"Alpine:v3.13","package":"libyang","fixed_in":["1.0.184-r1"],"sources":["osv"]},{"ecosystem":"Alpine:v3.14","package":"libyang","fixed_in":["1.0.215-r1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"libyang","fixed_in":["3.4.2+dfsg-2"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"libyang","fixed_in":["3.4.2+dfsg-2"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Alpine:v3.13","package":"libyang","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.184-r1"}]}]},{"source":"osv","ecosystem":"Alpine:v3.14","package":"libyang","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.215-r1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"libyang","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.4.2+dfsg-2"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"libyang","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.4.2+dfsg-2"}]}]},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Module for Server Applications 15 SP3","package":"libyang","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.184-150300.3.6.1"}]}],"bundled":4},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Module for Server Applications 15 SP4","package":"libyang","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.184-150300.3.6.1"}]}],"bundled":4},{"source":"osv","ecosystem":"openSUSE:Leap 15.3","package":"libyang","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.184-150300.3.6.1"}]}],"bundled":4},{"source":"osv","ecosystem":"openSUSE:Leap 15.4","package":"libyang","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.184-150300.3.6.1"}]}],"bundled":4},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"libyang","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.16.105-1","0.16.105-2","0.16.105-3","0.16.105-3build1"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"libyang","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0.225-1.1"]}],"products":[{"vendor":"cesnet","product":"libyang"}],"references":[{"url":"https://github.com/CESNET/libyang/issues/1455","tags":["x_refsource_CONFIRM","x_transferred","Exploit","Issue Tracking","Patch","Third Party Advisory","fix","report"]},{"url":"https://security.gentoo.org/glsa/202107-54","tags":["vendor-advisory","x_refsource_GENTOO","x_transferred","Third Party Advisory","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-28906"},{"url":"https://github.com/advisories/GHSA-gf49-5jg3-x68p"},{"url":"https://security.alpinelinux.org/vuln/CVE-2021-28906","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-28906","tags":["advisory"]},{"url":"https://www.suse.com/support/update/announcement/2022/suse-su-20223245-1/","tags":["advisory"]},{"url":"https://bugzilla.suse.com/1186374","tags":["report"]},{"url":"https://bugzilla.suse.com/1186375","tags":["report"]},{"url":"https://bugzilla.suse.com/1186376","tags":["report"]},{"url":"https://bugzilla.suse.com/1186378","tags":["report"]},{"url":"https://www.suse.com/security/cve/CVE-2021-28902","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2021-28903","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2021-28904","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2021-28906","tags":["web"]},{"url":"https://ubuntu.com/security/CVE-2021-28906","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-28906","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2021-28906","description":"In function read_yin_leaf() in libyang \u003c= v1.0.225, it doesn't check whether the value of retval-\u003eext[r] is NULL. In some cases, it can be NULL, which leads to the operation of retval-\u003eext[r]-\u003eflags that results in a crash.","status":"published","published":"2021-05-20T18:36:44Z","modified":"2024-08-03T21:55:12.219Z","updated_at":"2026-11-02T14:33:08.811269Z"}],"euvd":[{"id":"EUVD-2021-15559","description":"In function read_yin_leaf() in libyang \u003c= v1.0.225, it doesn't check whether the value of retval-\u003eext[r] is NULL. In some cases, it can be NULL, which leads to the operation of retval-\u003eext[r]-\u003eflags that results in a crash.","status":"published","published":"2021-05-20T18:36:44Z","modified":"2024-08-03T21:55:12Z","updated_at":"2026-11-03T03:24:46.117926Z"}],"ghsa":[{"id":"GHSA-gf49-5jg3-x68p","title":"In function read_yin_leaf() in libyang \u003c= v1.0.225, it doesn't check whether the value of retval-...","description":"In function read_yin_leaf() in libyang \u003c= v1.0.225, it doesn't check whether the value of retval-\u003eext[r] is NULL. In some cases, it can be NULL, which leads to the operation of retval-\u003eext[r]-\u003eflags that results in a crash.","status":"published","published":"2022-05-24T19:02:49Z","modified":"2023-01-29T05:06:43Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-252"],"updated_at":"2026-11-02T14:46:05.419939Z"}],"nvd":[{"id":"CVE-2021-28906","description":"In function read_yin_leaf() in libyang \u003c= v1.0.225, it doesn't check whether the value of retval-\u003eext[r] is NULL. In some cases, it can be NULL, which leads to the operation of retval-\u003eext[r]-\u003eflags that results in a crash.","status":"published","published":"2021-05-20T19:15:07.747Z","modified":"2026-06-17T03:47:01.737Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-252"],"updated_at":"2026-11-02T14:06:53.987491Z"}],"osv":[{"id":"ALPINE-CVE-2021-28906","description":"In function read_yin_leaf() in libyang \u003c= v1.0.225, it doesn't check whether the value of retval-\u003eext[r] is NULL. In some cases, it can be NULL, which leads to the operation of retval-\u003eext[r]-\u003eflags that results in a crash.","status":"published","published":"2021-05-20T19:15:07.747Z","modified":"2026-11-03T06:32:27.88820567Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-03T07:17:41.158523Z"},{"id":"CVE-2021-28906","description":"In function read_yin_leaf() in libyang \u003c= v1.0.225, it doesn't check whether the value of retval-\u003eext[r] is NULL. In some cases, it can be NULL, which leads to the operation of retval-\u003eext[r]-\u003eflags that results in a crash.","status":"published","published":"2021-05-20T19:15:07.747Z","modified":"2026-10-20T10:54:36.498489352Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:19.129331Z"},{"id":"DEBIAN-CVE-2021-28906","description":"In function read_yin_leaf() in libyang \u003c= v1.0.225, it doesn't check whether the value of retval-\u003eext[r] is NULL. In some cases, it can be NULL, which leads to the operation of retval-\u003eext[r]-\u003eflags that results in a crash.","status":"published","published":"2021-05-20T19:15:07.747Z","modified":"2026-10-23T18:03:57.554541899Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:45:34.94143Z"},{"id":"UBUNTU-CVE-2021-28906","description":"In function read_yin_leaf() in libyang \u003c= v1.0.225, it doesn't check whether the value of retval-\u003eext[r] is NULL. In some cases, it can be NULL, which leads to the operation of retval-\u003eext[r]-\u003eflags that results in a crash.","status":"published","published":"2021-05-20T19:15:00Z","modified":"2026-04-22T12:51:17.79313Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:54:26.779273Z"},{"id":"SUSE-SU-2022:3245-1","title":"Security update for libyang","description":"This update for libyang fixes the following issues:\n\n- CVE-2021-28906: Fixed missing check in read_yin_leaf that can lead to DoS (bsc#1186378)\n- CVE-2021-28904: Fixed missing check in ext_get_plugin that lead to DoS (bsc#1186376).\n- CVE-2021-28903: Fixed stack overflow in lyxml_parse_mem (bsc#1186375).\n- CVE-2021-28902: Fixed missing check in read_yin_container that can lead to DoS (bsc#1186374).\n","status":"published","published":"2022-09-12T07:01:51Z","modified":"2026-02-04T03:05:23.143773Z","updated_at":"2026-11-02T15:53:50.965375Z"}]}}
