Live threats

All CVEs / Samtools

CVE-2022-21126Samtools Htsjdk

High 7.8

Priority
47
CVSS 3.1
7.8
EPSS
1.0%
probability of exploitation in 30 days · percentile 62
Auth required
Yes
Published
Nov 29, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-668
SSVC (CISA)
Exploitation: proof of concept · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Htsjdk.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Maven com.github.samtools:htsjdk < 3.0.1 3.0.1 —

Per OSV / GitHub Advisories (GHSA-96vh-4rfp-c42c). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
samtoolshtsjdk< 3.0.1

Official sources

References

Links published by the sources. Open them with care.