{"id":"CVE-2026-41401","aliases":["CVE-2026-41401"],"related":[],"kind":"vulnerability","state":"published","title":"libyang - Heap Use-After-Free Write in XML Metadata Parsing","summary":"libyang before 5.4.3 contains a heap use-after-free write vulnerability in lyd_parser_set_data_flags that incorrectly updates metadata list pointers when freeing non-head default metadata entries. Attackers can trigger this vulnerability by submitting crafted YANG XML documents with specific metadata attributes to applications parsing untrusted XML data, causing process crashes or potential code execution.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"libyang before 5.4.3 contains a heap use-after-free write vulnerability in lyd_parser_set_data_flags that incorrectly updates metadata list pointers when freeing non-head default metadata entries. Attackers can trigger this vulnerability by submitting crafted YANG XML documents with specific metadata attributes to applications parsing untrusted XML data, causing process crashes or potential code execution.","source":"cvelist"},{"lang":"es","text":"libyang anterior a la versión 5.2.6 contiene una vulnerabilidad de escritura de uso después de liberación en el heap en lyd_parser_set_data_flags que actualiza incorrectamente los punteros de la lista de metadatos al liberar entradas de metadatos predeterminadas no principales. Los atacantes pueden desencadenar esta vulnerabilidad al enviar documentos XML YANG especialmente diseñados con atributos de metadatos específicos a aplicaciones que analizan datos XML no confiables, causando caídas del proceso o una posible ejecución de código.","source":"nvd"}],"published":"2026-05-26T14:08:48.973Z","modified":"2026-11-08T14:02:59.788Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","score":6.9,"rating":"MEDIUM"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","score":6.9,"rating":"MEDIUM"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"type":"custom","introduced":"0","fixed":"5.4.3","status":"affected"},{"type":"custom","version":"5.4.3","status":"unaffected"}],"vendor":"libyang","product":"libyang","source":"cvelist"}],"references":[{"url":"https://github.com/CESNET/libyang/security/advisories/GHSA-9f49-8x56-jmjc","tags":["exploit","vendor-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/CESNET/libyang/commit/6b5ed47ee674fbe86b31bbebc4ff26889aeff38c","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://red.anthropic.com/2026/cvd/findings/ANT-2026-TZQ1KH7E","tags":["exploit","third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://www.vulncheck.com/advisories/libyang-heap-use-after-free-write-in-xml-metadata-parsing","tags":["third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":["kevin-valerio"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-05-26T17:57:20.352Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-41401","url":"https://www.cve.org/CVERecord?id=CVE-2026-41401","licence":"CVE Terms of Use","modified":"2026-11-08T14:02:59.788Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-41401","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-41401","licence":"Public domain","modified":"2026-10-29T21:17:23.027Z"}],"updatedAt":"2026-11-25T22:59:22.323Z","epss":{"score":0.00641,"percentile":0.45318,"date":"2026-11-30T12:00:22.000Z"}}