{"cve":"CVE-2022-21126","nvd":{"published":"2022-11-29T17:15:11.043","modified":"2026-06-17T04:25:34.340","status":"Modified","description":"The package com.github.samtools:htsjdk before 3.0.1 are vulnerable to Creation of Temporary File in Directory with Insecure Permissions due to the createTempDir() function in util/IOUtil.java not checking for the existence of the temporary directory before attempting to create it.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8},"cwes":["CWE-668"],"references":["https://github.com/samtools/htsjdk/commit/4a4024a97ee3e87096df6ad9b22c8260bd527772","https://github.com/samtools/htsjdk/pull/1617","https://security.snyk.io/vuln/SNYK-JAVA-COMGITHUBSAMTOOLS-3149901","https://github.com/samtools/htsjdk/commit/4a4024a97ee3e87096df6ad9b22c8260bd527772","https://github.com/samtools/htsjdk/pull/1617"],"products":["samtools:htsjdk"],"source":"nvd","synced_at":"2026-10-19T21:37:28.463369388+00:00"},"epss":{"cve":"CVE-2022-21126","score":0.00747,"percentile":0.54862,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-96vh-4rfp-c42c","url":"https://osv.dev/vulnerability/GHSA-96vh-4rfp-c42c","summary":"HTSJDK is vulnerable to exposure of resource(s) to the wrong sphere","modified":"2023-11-08T04:08:04.039802Z","packages":[{"ecosystem":"Maven","name":"com.github.samtools:htsjdk","purl":"pkg:maven/com.github.samtools/htsjdk","ranges":["<3.0.1"],"fixed":["3.0.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}