cve.bz

CVE-2021-42521 vtk vtk: NULL Pointer Dereference

7.5 highExploit referenceEPSS 1.4%Fix available

High (7.5) in vtk vtk. EPSS 1.4% estimated probability of exploitation activity in the next 30 days. Fixed in vtk 9.0.1.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
1.4% (unchanged from 1.4% a week ago; 1.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 72nd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-476 NULL Pointer Dereference
CWE-400 Uncontrolled Resource Consumption
OWASP Top 10
A10:2025 Mishandling of Exceptional Conditions
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-42521 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-42521?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-42521?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-42521 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
vtk:vtkthrough 9.0.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-xfhg-9pjg-xg7gPyPIvtk<9.0.19.0.1
PYSEC-2022-255PyPIvtk<9.0.19.0.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12vtk9no fix listedDEBIAN-CVE-2021-42521
Debian13, 14vtk99.1.0+really9.1.0+dfsg2-8DEBIAN-CVE-2021-42521
Ubuntu14.04:LTSvtk6no fix listedUBUNTU-CVE-2021-42521
Ubuntu18.04:LTS, 20.04:LTSvtk6, vtk7no fix listedUBUNTU-CVE-2021-42521
Ubuntu22.04:LTSvtk7, vtk9no fix listedUBUNTU-CVE-2021-42521
Ubuntu24.04:LTSvtk9no fix listedUBUNTU-CVE-2021-42521
UbuntuPro:14.04:LTSvtkno fix listedUBUNTU-CVE-2021-42521
UbuntuPro:16.04:LTSvtk, vtk6no fix listedUBUNTU-CVE-2021-42521

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Attack patterns (CAPEC)

  • CAPEC-147 XML Ping of the Death Likelihood: Low · Severity: Medium
  • CAPEC-227 Sustained Client Engagement
  • CAPEC-492 Regular Expression Exponential Blowup

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON