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


0.0
high

Snyk CVSS

    Attack Complexity Low

    Threat Intelligence

    EPSS 0.04% (6th percentile)
Expand this section
NVD
7.8 high

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 ID SNYK-JAVA-COMGITHUBSAMTOOLS-3149901
  • published 28 Nov 2022
  • disclosed 28 Nov 2022
  • credit Jonathan Leitschuh

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.