Skip to main content
No exploitation reportedFix available

CVE-2021-42521

No exploitation reported by the sources we read.

  • Published2022-08-25
  • WeaknessCWE-400 · CWE-476

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

Description

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.

Timeline

dates in UTC
  1. 2022-08-2518:15CVE publishedNVD

Versions per branch

NVD · OSV
Vtk
BranchAffectedFixed in
9.0≤ 9.0.0no fix published
vtk
BranchAffectedFixed in
9.0< 9.0.19.0.1

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • vtkUbuntu:Pro:16.04:LTSall versions · no fixed version listedand 1 other package
  • vtkUbuntu:Pro:14.04:LTSall versions · no fixed version listed
  • vtk6Ubuntu:20.04:LTSall versions · no fixed version listedand 1 other package
  • vtk6Ubuntu:18.04:LTSall versions · no fixed version listedand 1 other package
  • vtk6Ubuntu:14.04:LTSall versions · no fixed version listed
  • vtk7Ubuntu:22.04:LTSall versions · no fixed version listedand 1 other package
  • vtk9Ubuntu:24.04:LTSall versions · no fixed version listed
  • vtk9Debian:14all versions · fixed in 9.1.0+really9.1.0+dfsg2-8

2 more package ranges on OSV.dev

Vendor advisories

  • CVE-2021-42521 Red Hat Product Security

    vtk: NULL pointer dereference vulnerability

Full record on NVD

Fix

No fix published by the sources we read yet. NVD record

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

  • NVDCVSS 3.17.5read 2026-10-23
  • CNAweakness (CWE)CWE-400known since 2026-10-23
  • NVDweakness (CWE)CWE-476read 2026-10-23
  • FIRST EPSSEPSS score1.4 %2026-11-18
  • OSVaffected packages—
  • GitHub AdvisoriesadvisoryHIGH2022-09-16

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published
2022-08-25
Last Modified
2026-06-17
NVD status
Modified
GitHub Advisory
GHSA-xfhg-9pjg-xg7g

Frequently asked questions

What is CVE-2021-42521?

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.

Is CVE-2021-42521 actively exploited?

Active exploitation of CVE-2021-42521 has not been confirmed. Its EPSS score was 1.4% on 2026-11-18, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2021-42521?

CVE-2021-42521 has a CVSS v3 base score of 7.5 (HIGH severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.

Running vtk? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record