CVE-2022-21126: Samtools Htsjdk

High severity, CVSS 7.8. EPSS: 0.7% chance of exploitation in the next 30 days.

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 products

  • Samtools Htsjdk: before 3.0.1 (fixed in 3.0.1)

Published 2022-11-29. Last modified 2026-06-17.