SecurityContext

CVE-2026-41401: libyang - Use After Free

  • Cve: CVE-2026-41401
  • Name: libyang - Use After Free
  • Description: 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.
  • Impact: Attackers can cause process crashes or potentially execute code, leading to denial of service or remote code execution.
  • Remediation: Update to version 5.2.6 or later.
  • Vulnerability type: use_after_free
  • Vulnerability impact: denial_of_service, remote_code_execution
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 6.5
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
  • Epss score: 0.00673
  • Epss percentile: 0.53084
  • Assignee: [email protected]
  • Published at: 2026-05-26T15:16:35Z
  • Age in days: 182
  • Modified at: 2026-10-29T21:17:23Z
  • Patch available: yes
  • References total: 4
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-41401
  • Nvd status: deferred
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-416Use After Free

References

Same in every row:

  • Source: nvd
  • Tags:
Url
https://github.com/CESNET/libyang/commit/6b5ed47ee674fbe86b31bbebc4ff26889aeff38c
https://github.com/CESNET/libyang/security/advisories/GHSA-9f49-8x56-jmjc
https://red.anthropic.com/2026/cvd/findings/ANT-2026-TZQ1KH7E
https://www.vulncheck.com/advisories/libyang-heap-use-after-free-write-in-xml-metadata-parsing

Products

ProductAffectedPlatform boundSourcesUrl
cesnet:libyang< 5.4.3nocna/v1/products/cesnet/libyang

Projects

RepositoryLink kindsIndexedUrl
CESNET/libyangcommit, security_advisoryyes/v1/repositories/CESNET/libyang

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Authentication required: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts