CVE-2022-21126

published 29 Nov 2022 · updated 24 Apr 2025

Creation of Temporary File in Directory with Insecure Permissions

7.3HighCVSS 7.3EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in 3.0.1.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
<3.0.13.0.1

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2022-21126 severity on Zeptric[![CVE-2022-21126](https://zeptric.io/badge/cve/CVE-2022-21126.svg)](https://zeptric.io/cve/CVE-2022-21126)