CVE-2022-21126 json
Creation of Temporary File in Directory with Insecure Permissions
published 3y ago modified 4mo ago also GHSA-96vh-4rfp-c42c , EUVD-2022-7293
- cvss
- 7.3
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.8%
- EPSS 0.8% chance of exploitation in 30 days, percentile 55%
- public exploits
- 0
- none known
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.
Patch / fix
- maven com.github.samtools:htsjdk 3.0.1
- n/a com.github.samtools:htsjdk 3.0.1
- github.com/samtools/htsjdk@4a4024a commit
- github.com/samtools/htsjdk#1617 pull request
Is CVE-2022-21126 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- last yr.
Exploit prediction
0.75% chance of exploitation in the next 30 days, higher than 55% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- github.com https://github.com/samtools/htsjdk/pull/1617 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
| NVD | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| maven | com.github.samtools:htsjdk | <3.0.1 |
3.0.1 |
Affected products
- n/a com.github.samtools:htsjdk
Classification
- Weakness
-
- CWE-668 Exposure of Resource to Wrong Sphere
References
-
github.com
/samtools/htsjdk/commit/4a4024a97ee3e87096df6ad9b22c8260bd527772
web, patch, third-party-advisory
-
github.com
/samtools/htsjdk/pull/1617
web, exploit, patch, third-party-advisory
-
security.snyk.io
/vuln/SNYK-JAVA-COMGITHUBSAMTOOLS-3149901
web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-21126
advisory
-
github.com
/samtools/htsjdk
package
Sources
- CVE List CVE-2022-21126
- GitHub Advisory GHSA-96vh-4rfp-c42c
- NVD CVE-2022-21126
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.