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

CVE-2022-40303: Integer Overflow or Wraparound

November 23, 2022 (updated November 7, 2023)

An issue was discovered in libxml2 before 2.10.3. When parsing a multi-gigabyte XML document with the XML_PARSE_HUGE parser option enabled, several integer counters can overflow. This results in an attempt to access an array at a negative 2GB offset, typically leading to a segmentation fault.

References

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

Code Behaviors & Features

Detect and mitigate CVE-2022-40303 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.5 HIGH

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

Learn more about CVSS

Weakness

  • CWE-190: Integer Overflow or Wraparound

Source file

nuget/libxml2/CVE-2022-40303.yml

Spotted a mistake? Edit the file on GitLab.

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

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