CVE-2022-21126
JSON

7.3high

Creation of Temporary File in Directory with Insecure Permissions

Severity
7.3high CVSS:3.1 by snyk
Exploit likelihood
0.87% (higher than 59% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
snyk
Also known as
GHSA-96vh-4rfp-c42c

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

Product or packageVersionsReported by
com.github.samtools:htsjdkfrom unspecified before 3.0.1CVE List
com.github.samtools:htsjdk (Maven)before 3.0.1GitHub Advisory Database
samtools htsjdkbefore 3.0.1NVD

All scores

snyk7.3high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
GitHub7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-668

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

El paquete com.github.samtools:htsjdk anterior a 3.0.1 es vulnerable a la creación de un archivo temporal en un directorio con permisos inseguros debido a que la función createTempDir() en util/IOUtil.java no verifica la existencia del directorio temporal antes de intentar crearlo.

References

Sources

SourceRecordLicence
CVE ListCVE-2022-21126 changed 2025-04-24CVE Terms of Use
GitHub Advisory DatabaseGHSA-96vh-4rfp-c42c changed 2023-11-08CC-BY-4.0
NVDCVE-2022-21126 changed 2026-06-17Public domain