{"id":"CVE-2021-28903","aliases":["ALPINE-CVE-2021-28903","DEBIAN-CVE-2021-28903","EUVD-2021-15556","GHSA-vr34-263x-7q3r","SUSE-SU-2022:3245-1","UBUNTU-CVE-2021-28903"],"status":"published","title":"A stack overflow in libyang \u003c= v1.0.225 can cause a denial of service through function...","description":"A stack overflow in libyang \u003c= 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.","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-10","score":0.02425,"percentile":0.8434,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-674"],"published":"2021-05-20T18:36:15Z","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/1453","tags":["x_refsource_CONFIRM","x_transferred","Exploit","Issue Tracking","Third Party Advisory","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-28903"},{"url":"https://github.com/advisories/GHSA-vr34-263x-7q3r"},{"url":"https://security.alpinelinux.org/vuln/CVE-2021-28903","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-28903","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-28903","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-28903","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2021-28903","description":"A stack overflow in libyang \u003c= 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.","status":"published","published":"2021-05-20T18:36:15Z","modified":"2024-08-03T21:55:11.718Z","updated_at":"2026-11-02T14:33:08.811269Z"}],"euvd":[{"id":"EUVD-2021-15556","description":"A stack overflow in libyang \u003c= 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.","status":"published","published":"2021-05-20T18:36:15Z","modified":"2024-08-03T21:55:11Z","updated_at":"2026-11-03T03:24:46.117926Z"}],"ghsa":[{"id":"GHSA-vr34-263x-7q3r","title":"A stack overflow in libyang \u003c= v1.0.225 can cause a denial of service through function...","description":"A stack overflow in libyang \u003c= 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.","status":"published","published":"2022-05-24T19:02:50Z","modified":"2023-01-29T05:07:41Z","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-674"],"updated_at":"2026-11-02T14:46:11.123221Z"}],"nvd":[{"id":"CVE-2021-28903","description":"A stack overflow in libyang \u003c= 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.","status":"published","published":"2021-05-20T19:15:07.637Z","modified":"2026-06-17T03:47:01.393Z","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-674"],"updated_at":"2026-11-02T14:06:53.987491Z"}],"osv":[{"id":"ALPINE-CVE-2021-28903","description":"A stack overflow in libyang \u003c= 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.","status":"published","published":"2021-05-20T19:15:07.637Z","modified":"2026-11-03T06:32:27.883023153Z","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-28903","description":"A stack overflow in libyang \u003c= 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.","status":"published","published":"2021-05-20T19:15:07.637Z","modified":"2026-10-20T10:54:36.404687514Z","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-28903","description":"A stack overflow in libyang \u003c= 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.","status":"published","published":"2021-05-20T19:15:07.637Z","modified":"2026-10-23T18:03:25.813881236Z","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-28903","description":"A stack overflow in libyang \u003c= 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.","status":"published","published":"2021-05-20T19:15:00Z","modified":"2026-04-22T12:51:07.351528Z","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"}]}}
