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 package | Versions | Reported by |
|---|---|---|
| com.github.samtools:htsjdk | from unspecified before 3.0.1 | CVE List |
| com.github.samtools:htsjdk (Maven) | before 3.0.1 | GitHub Advisory Database |
| samtools htsjdk | before 3.0.1 | NVD |
All scores
| snyk | 7.3high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
| GitHub | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Classification
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
| https://security.snyk.io/vuln/SNYK-JAVA-COMGITHUBSAMTOOLS-3149901 | third-party-advisory, web | |
| https://github.com/samtools/htsjdk/commit/4a4024a97ee3e87096df6ad9b22c8260bd527772 | patch, third-party-advisory, web | |
| https://github.com/samtools/htsjdk/pull/1617 | exploit, patch, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2022-21126 | advisory | |
| https://github.com/samtools/htsjdk | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-21126 changed 2025-04-24 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-96vh-4rfp-c42c changed 2023-11-08 | CC-BY-4.0 |
| NVD | CVE-2022-21126 changed 2026-06-17 | Public domain |