{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2022-21126","published":"2022-11-29T17:15:11.043000Z","last_modified":"2026-06-17T04:25:34.340000Z","status":"Modified","cvss":{"version":"3.1","score":7.8,"severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"nvd@nist.gov","primary":true},"auth":true,"cwes":["CWE-668"],"cpes":[{"criteria":"cpe:2.3:a:samtools:htsjdk:*:*:*:*:*:*:*:*","part":"a","vendor":"samtools","product":"htsjdk","version_end_excluding":"3.0.1"}],"cpes_truncated":false,"vendors":["samtools"],"products":["samtools/htsjdk"],"ssvc":{"exploitation":"poc","automatable":"no","technical_impact":"partial"},"epss":{"score":0.01008,"percentile":0.62085,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-96vh-4rfp-c42c","ecosystem":"Maven","name":"com.github.samtools:htsjdk","purl":"pkg:maven/com.github.samtools/htsjdk","ranges":[{"introduced":"0","fixed":"3.0.1"}],"versions":["1.128","1.129","1.130","1.131","1.132","1.133","1.134","1.135","1.136","1.137","1.138","1.139","1.140","1.141","1.142","1.143","2.0.0","2.0.1","2.1.0","2.1.1","2.10.0","2.10.1","2.11.0","2.12.0","2.13.0","2.13.1","2.13.2","2.14.0","2.14.1","2.14.2","2.14.3","2.15.0","2.15.1","2.16.0","2.16.1","2.17.0","2.18.0","2.18.1","2.18.2","2.19.0","2.2.0","2.2.1","2.2.2","2.2.3","2.2.4","2.20.0","2.20.1","2.20.2","2.20.3","2.21.0","2.21.1","2.21.2","2.21.3","2.22.0","2.23.0","2.24.0","2.24.1","2.3.0","2.4.0","2.4.1","2.5.0","2.5.1","2.6.0","2.6.1","2.7.0","2.8.0","2.8.1","2.9.0","2.9.1","3.0.0"],"versions_truncated":false}],"severity":"high","priority_score":47,"links":{"html_es":"/es/cve/CVE-2022-21126/","html_en":"/en/cve/CVE-2022-21126/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-21126","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-21126"},"untrusted":{"vendor_name":"Samtools","product_name":"Htsjdk","desc_en":"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.","affected":[],"references":[{"url":"https://github.com/samtools/htsjdk/commit/4a4024a97ee3e87096df6ad9b22c8260bd527772","tags":["Patch","Third Party Advisory"]},{"url":"https://github.com/samtools/htsjdk/pull/1617","tags":["Exploit","Patch","Third Party Advisory"]},{"url":"https://security.snyk.io/vuln/SNYK-JAVA-COMGITHUBSAMTOOLS-3149901","tags":["Third Party Advisory"]}]}}