Live threats

All CVEs / Vtk

CVE-2021-42521Vtk

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
—
Auth required
No
Published
Aug 25, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-400, CWE-476
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Vtk.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI vtk < 9.0.1 9.0.1 pip install "vtk>=9.0.1"
PyPI vtk < 9.0.1 9.0.1 pip install "vtk>=9.0.1"

Per OSV / GitHub Advisories (GHSA-xfhg-9pjg-xg7g, PYSEC-2022-255). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
vtkvtk≤ 9.0.0

Official sources

References

Links published by the sources. Open them with care.