An issue was discovered in libxml2 before 2.10.3. Certain invalid XML entity definitions can corrupt a hash table key, potentially leading to subsequent logic errors. In one case, a double-free can be provoked.
{
"sources": [
{
"modified": "2025-04-28T20:15:19.607Z",
"url": "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2022-40304",
"id": "CVE-2022-40304",
"imported": "2025-10-28T18:09:09.585Z",
"html_url": "https://nvd.nist.gov/vuln/detail/CVE-2022-40304",
"published": "2022-11-23T18:15:12.167Z"
}
],
"license": "CC-BY-4.0"
}