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.
Remediation
References
https://github.com/samtools/htsjdk/commit/4a4024a97ee3e87096df6ad9b22c8260bd527772
https://github.com/samtools/htsjdk/pull/1617
https://security.snyk.io/vuln/SNYK-JAVA-COMGITHUBSAMTOOLS-3149901
Related Vulnerabilities
CVE-2021-26544 Vulnerability in maven package org.apache.livy:livy-server
CVE-2020-8137 Vulnerability in npm package uppy
CVE-2023-41037 Vulnerability in maven package org.webjars.npm:github-com-openpgpjs-openpgpjs
CVE-2018-8014 Vulnerability in maven package org.apache.tomcat.embed:tomcat-embed-core
CVE-2022-38369 Vulnerability in maven package org.apache.iotdb:iotdb-server