CVE-2021-42521Vtk
High 7.5 No auth needed
Follow: this CVE · Vtk · Vtk We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- —
- Auth required
- No
- Published
- Aug 25, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- 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.
What to do
- Apply the vendor's security update for Vtk.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| vtk | vtk | ≤ 9.0.0 |
Official sources
References
Links published by the sources. Open them with care.
- discourse.vtk.org
- gitlab.kitware.com Exploit Issue Tracking Third Party Advisory
- lists.fedoraproject.org