Advisory Database
  • Advisories
  • Dependency Scanning
  1. nuget
  2. ›
  3. libxml2
  4. ›
  5. CVE-2022-40304

CVE-2022-40304: Improper Restriction of XML External Entity Reference

November 23, 2022 (updated November 7, 2023)

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.

References

  • gitlab.gnome.org/GNOME/libxml2/-/commit/1b41ec4e9433b05bb0376be4725804c54ef1d80b
  • gitlab.gnome.org/GNOME/libxml2/-/tags
  • gitlab.gnome.org/GNOME/libxml2/-/tags/v2.10.3
  • nvd.nist.gov/vuln/detail/CVE-2022-40304

Code Behaviors & Features

Detect and mitigate CVE-2022-40304 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.10.3

Solution

Unfortunately, there is no solution available yet.

Impact 7.8 HIGH

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-415: Double Free

Source file

nuget/libxml2/CVE-2022-40304.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:49 +0000.