Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. vtk
  4. ›
  5. CVE-2021-42521

CVE-2021-42521: VTK NULL pointer dereference vulnerability

August 26, 2022 (updated November 18, 2024)

There is a NULL pointer dereference vulnerability in VTK, and it lies in IO/Infovis/vtkXMLTreeReader.cxx. The vendor didn’t check the return value of libxml2 API ‘xmlDocGetRootElement’, and try to dereference it. It is unsafe as the return value can be NULL and that NULL pointer dereference may crash the application.

References

  • discourse.vtk.org/t/vtk-9-2-5-is-out/10549
  • github.com/advisories/GHSA-xfhg-9pjg-xg7g
  • github.com/pypa/advisory-database/tree/main/vulns/vtk/PYSEC-2022-255.yaml
  • gitlab.kitware.com/vtk/vtk
  • gitlab.kitware.com/vtk/vtk/issues/17818
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PCTMSAAVP4BW2HTZLDWMGKZ2WEC5OFLK
  • nvd.nist.gov/vuln/detail/CVE-2021-42521

Code Behaviors & Features

Detect and mitigate CVE-2021-42521 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 9.0.1

Fixed versions

  • 9.0.1

Solution

Upgrade to version 9.0.1 or above.

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-400: Uncontrolled Resource Consumption
  • CWE-476: NULL Pointer Dereference

Source file

pypi/vtk/CVE-2021-42521.yml

Spotted a mistake? Edit the file on GitLab.

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

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