CVE-2022-21126
HIGH 7.8CVSS 3.1HTSJDK is vulnerable to exposure of resource(s) to the wrong sphere
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.
- Published
- 29 Nov 2022
- Last modified
- 17 Jun 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-668
- Also known as
- GHSA-96vh-4rfp-c42c
- Sources
- NVDJSONOSV GHSA-96vh-4rfp-c42cJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | HIGH 7.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | samtools | htsjdkcpe:2.3:a:samtools:htsjdk:*:*:*:*:*:*:*:* |
< 3.0.1 | 3.0.1 |
| OSV | Maven | com.github.samtools:htsjdk | < 3.0.1 | 3.0.1 |
References
- 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://security.snyk.io/vuln/SNYK-JAVA-COMGITHUBSAMTOOLS-3149901 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-21126 · ADVISORY
- https://github.com/samtools/htsjdk · PACKAGE
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 29 Nov 2022)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 29 Nov 2022)