CVE-2021-42521: Null Pointer Dereference

Published Aug 25, 2022
·
Updated

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.

Other sources

There is a NULL pointer dereference vulnerability in VTK, 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.

GitHub

Affected Software

2 affected componentsFixes available
pip/vtk>=0<9.0.1
9.0.1
VTK VTK<=9.0.0

Event History

Aug 25, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionWeakness
Data Sourced
via NVD·06:15 PM
DescriptionSeverityWeaknessAffected Software
Aug 26, 2022
Advisory Published
via GitHub·12:03 AM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2021-42521?

CVE-2021-42521 is a medium severity vulnerability due to a NULL pointer dereference that can lead to application crashes.

2

How do I fix CVE-2021-42521?

To fix CVE-2021-42521, upgrade to vtk version 9.2.5 or later.

3

What systems are affected by CVE-2021-42521?

CVE-2021-42521 affects vtk versions prior to 9.2.5.

4

What does CVE-2021-42521 exploit?

CVE-2021-42521 exploits a NULL pointer dereference in the IO/Infovis/vtkXMLTreeReader component.

5

Is CVE-2021-42521 a local or remote vulnerability?

CVE-2021-42521 is a local vulnerability, as it requires execution of code using the affected vtk libraries.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203