Security mailing lists by PureSourceCode

CVE-2021-42521

HIGH 7.5CVSS 3.1

VTK 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

SourceScored byVersionScoreVector / 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

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD vtk vtk
cpe:2.3:a:vtk:vtk:*:*:*:*:*:*:*:*
<= 9.0.0
OSV PyPI vtk < 9.0.1 9.0.1

References

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)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.