CVE-2022-21126Samtools Htsjdk
High 7.8
Follow: this CVE · Samtools · Samtools Htsjdk We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Htsjdk.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| samtools | htsjdk | < 3.0.1 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- github.com Exploit Patch Third Party Advisory
- security.snyk.io Third Party Advisory