ADVISORIES

Vulnerability

CVE-2021-42521

There is a NULL pointer dereference vulnerability in VTK before 9.2.5, 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.

4 advisories report this vulnerability, across 3 ecosystems.

High severity All PyPI 2Debian 1Ubuntu 1

Advisories

  • DEBIAN-CVE-2021-42521

    There is a NULL pointer dereference vulnerability in VTK before 9.2.5, and it lies in IO/Infovis/vtkXMLTreeReader.cxx. The vendor didn't check the return value of libxml2 API 'xmlDocGetRootElement', and try to…

    CVE-2021-42521 Debian Updated 23 October 2026
  • GHSA-xfhg-9pjg-xg7g

    VTK NULL pointer dereference vulnerability

    High CVE-2021-42521 PyPI Updated 18 November 2024
  • PYSEC-2022-255

    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…

    CVE-2021-42521 PyPI Updated 8 November 2023
  • UBUNTU-CVE-2021-42521

    There is a NULL pointer dereference vulnerability in VTK before 9.2.5, and it lies in IO/Infovis/vtkXMLTreeReader.cxx. The vendor didn't check the return value of libxml2 API 'xmlDocGetRootElement', and try to…

    CVE-2021-42521 Ubuntu Updated 24 November 2026

References