Vulnerability · Published Nov 29, 2022 · Assigned by snyk

CVE-2022-21126Creation of Temporary File in Directory with Insecure Permissions

High 7.3

In plain English

A high-severity security flaw in com.github.samtools:htsjdk. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.8% (higher than 55% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.3High
Exploit odds (30 days)0.8%top 44.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Mavencom.github.samtools:htsjdk3.0.1GHSA-96vh-4rfp-c42c
Ubuntu:22.04:LTShtsjdkno fix listedUBUNTU-CVE-2022-21126
Ubuntu:24.04:LTShtsjdkno fix listedUBUNTU-CVE-2022-21126
Ubuntu:25.10htsjdkno fix listedUBUNTU-CVE-2022-21126
Ubuntu:26.04:LTShtsjdkno fix listedUBUNTU-CVE-2022-21126
Ubuntu:26.10htsjdkno fix listedUBUNTU-CVE-2022-21126

Affected products (as reported)

VendorProductVersions
n/a com.github.samtools:htsjdk unspecified – before 3.0.1

References