CVE-2021-42521
HIGH7.5EPSS 0.48%VTK NULL pointer dereference vulnerability
Published: 8/26/2022Modified: 4/28/2026
Description
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.
Affected packages (5)
- Debian/vtk6from 0
- Debian/vtk7from 0
- Debian/vtk9from 0
- PyPI/vtkfrom 0, < 9.0.1
- PyPI/vtkfrom 0, < 9.0.1
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N |
| osv | CVSS 3.1 | HIGH7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
References (8)
- ADVISORYhttps://github.com/advisories/GHSA-xfhg-9pjg-xg7g
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2021-42521
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2021-42521
- PATCHhttps://gitlab.kitware.com/vtk/vtk
- WEBhttps://discourse.vtk.org/t/vtk-9-2-5-is-out/10549
- WEBhttps://github.com/pypa/advisory-database/tree/main/vulns/vtk/PYSEC-2022-255.yaml
- WEBhttps://gitlab.kitware.com/vtk/vtk/issues/17818
- WEBhttps://lists.fedoraproject.org/archives/list/[email protected]/message/PCTMSAAVP4BW2HTZLDWMGKZ2WEC5OFLK