Read the docs
TI-2022-05532 Aliases CVE-2022-21126GHSA-96vh-4rfp-c42c

Creation of Temporary File in Directory with Insecure Permissions

Priority HIGH 67CWE-668Published · Updated

Key facts

Attack vector
Local
Privileges required
Low
User interaction
None
Attack complexity
Low
Impact type
—
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub.

Summary

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.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00753 55th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed com.github.samtools:htsjdk: 3.0.1com.github.samtools:htsjdk (Maven): 3.0.1

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
—com.github.samtools:htsjdkbefore 3.0.13.0.1Patch availableCNA
—com.github.samtools:htsjdk (Maven)before 3.0.13.0.1Patch availableGHSA-96vh-4rfp-c42c
  • com.github.samtools:htsjdk Vendor— Affected before 3.0.1 Fixed in 3.0.1 Patch available CNA
  • com.github.samtools:htsjdk (Maven) Vendor— Affected before 3.0.1 Fixed in 3.0.1 Patch available GHSA-96vh-4rfp-c42c

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:samtools:htsjdk:*:*:*:*:*:*:*:*before 3.0.1Vulnerablesamtools
  • cpe:2.3:a:samtools:htsjdk:*:*:*:*:*:*:*:* Versions before 3.0.1 Vulnerable ·samtools

Remediation

  • Fix · CNA com.github.samtools:htsjdk Fixed in 3.0.1
  • Fix · GHSA-96vh-4rfp-c42c com.github.samtools:htsjdk (Maven) Fixed in 3.0.1 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2022-21126
  2. 2026-10-03 Alias added: GHSA-96vh-4rfp-c42c

References

Sources