{"id":"CVE-2021-42521","aliases":["CVE-2021-42521","GHSA-xfhg-9pjg-xg7g","PYSEC-2022-255"],"related":[],"kind":"vulnerability","state":"published","title":"VTK NULL pointer dereference vulnerability","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Se presenta una vulnerabilidad de desreferencia de puntero NULL en VTK, y es encontrada en el archivo IO/Infovis/vtkXMLTreeReader.cxx. El proveedor no ha comprobado el valor de retorno de la API \"xmlDocGetRootElement\" de libxml2, e intenta des referenciarlo. No es seguro ya que el valor de retorno puede ser NULL y esa desreferencia de puntero NULL puede bloquear la aplicación.","source":"nvd"}],"published":"2022-08-25T00:00:00.000Z","modified":"2026-06-17T04:09:45.497Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-400","CWE-476"],"affected":[{"ranges":[{"version":"VTK - 9.0.0 and before","status":"affected"}],"product":"vtk","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"9.0.1"}],"ecosystem":"PyPI","package":"vtk","purl":"pkg:pypi/vtk","source":"ghsa"},{"ranges":[{"status":"affected","lastAffected":"9.0.0"}],"vendor":"vtk","product":"vtk","cpe":"cpe:2.3:a:vtk:vtk:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"9.0.1"}],"ecosystem":"PyPI","package":"vtk","purl":"pkg:pypi/vtk","source":"pysec"}],"references":[{"url":"https://gitlab.kitware.com/vtk/vtk/issues/17818","tags":["exploit","issue-tracking","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://discourse.vtk.org/t/vtk-9-2-5-is-out/10549","tags":["web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PCTMSAAVP4BW2HTZLDWMGKZ2WEC5OFLK/","tags":["vendor-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-42521","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/vtk/PYSEC-2022-255.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://gitlab.kitware.com/vtk/vtk","tags":["package"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PCTMSAAVP4BW2HTZLDWMGKZ2WEC5OFLK","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-xfhg-9pjg-xg7g","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"fedora","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-42521","url":"https://www.cve.org/CVERecord?id=CVE-2021-42521","licence":"CVE Terms of Use","modified":"2024-08-04T03:30:38.337Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-xfhg-9pjg-xg7g","url":"https://github.com/advisories/GHSA-xfhg-9pjg-xg7g","licence":"CC-BY-4.0","modified":"2024-11-18T23:23:24.066Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-42521","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-42521","licence":"Public domain","modified":"2026-06-17T04:09:45.497Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2022-255","url":"https://osv.dev/vulnerability/PYSEC-2022-255","licence":"CC-BY-4.0","modified":"2023-11-08T04:07:06.578Z"}],"updatedAt":"2026-11-25T22:58:07.788Z","epss":{"score":0.01355,"percentile":0.72419,"date":"2026-12-01T12:00:22.000Z"}}