CVE-2021-42521
HIGH 7.5CVSS 3.1VTK NULL pointer dereference vulnerability
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.
- Published
- 25 Aug 2022
- Last modified
- 17 Jun 2026
- Assigned by
- patrick@puiterwijk.org
- NVD status
- Modified
- Weakness
- CWE-400CWE-476
- Also known as
- GHSA-xfhg-9pjg-xg7gPYSEC-2022-255
- Sources
- NVDJSONOSV GHSA-xfhg-9pjg-xg7gJSONOSV PYSEC-2022-255JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | 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 | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | vtk | vtkcpe:2.3:a:vtk:vtk:*:*:*:*:*:*:*:* |
<= 9.0.0 | |
| OSV | PyPI | vtk | < 9.0.1 | 9.0.1 |
References
- https://discourse.vtk.org/t/vtk-9-2-5-is-out/10549 · WEB
- https://gitlab.kitware.com/vtk/vtk/issues/17818 · Exploit, Issue Tracking, Third Party Advisory, WEB
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PCTMSAAVP4BW2HTZLDWMGKZ2WEC5OFLK/
- https://nvd.nist.gov/vuln/detail/CVE-2021-42521 · ADVISORY
- https://github.com/pypa/advisory-database/tree/main/vulns/vtk/PYSEC-2022-255.yaml · WEB
- https://gitlab.kitware.com/vtk/vtk · PACKAGE
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PCTMSAAVP4BW2HTZLDWMGKZ2WEC5OFLK · WEB
- https://github.com/advisories/GHSA-xfhg-9pjg-xg7g · ADVISORY
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 25 Aug 2022)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 25 Aug 2022)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 26 Aug 2022)