CVE-2021-42521: VTK NULL pointer dereference vulnerability
7.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.23289%
CWE
Published
8/26/2022
Updated
11/18/2024
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| vtk | pip | >= 0, < 9.0.1 | 9.0.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability description explicitly identifies vtkXMLTreeReader.cxx as the vulnerable file and the GitLab issue #17818 confirms the unsafe usage of xmlDocGetRootElement's return value in vtkXMLTreeReaderProcessElement. The function would appear in stack traces when parsing malicious XML content that triggers the NULL dereference. The lack of NULL checking before pointer access directly matches the CWE-476 vulnerability type described.