Creation of Temporary File in Directory with Insecure Permissions Affecting com.github.samtools:htsjdk package, versions [,3.0.1)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.07% (33rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Creation of Temporary File in Directory with Insecure Permissions vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-COMGITHUBSAMTOOLS-3149901
  • published28 Nov 2022
  • disclosed28 Nov 2022
  • creditJonathan Leitschuh

Introduced: 28 Nov 2022

CVE-2022-21126  (opens in a new tab)
CWE-379  (opens in a new tab)
First added by Snyk

How to fix?

Upgrade com.github.samtools:htsjdk to version 3.0.1 or higher.

Overview

com.github.samtools:htsjdk is a Java API for high-throughput sequencing data (HTS) formats

Affected versions of this package 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 Scores

version 3.1