Vulnerability Details : CVE-2022-21126
Potential exploit
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.
Products affected by CVE-2022-21126
- cpe:2.3:a:samtools:htsjdk:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2022-21126
0.05%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 12 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2022-21126
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
7.8
|
HIGH | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
1.8
|
5.9
|
NIST | |
7.3
|
HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
3.9
|
3.4
|
Snyk |
CWE ids for CVE-2022-21126
-
The product exposes a resource to the wrong control sphere, providing unintended actors with inappropriate access to the resource.Assigned by: nvd@nist.gov (Primary)
References for CVE-2022-21126
-
https://github.com/samtools/htsjdk/pull/1617
[SECURITY] Fix Temporary Directory Hijacking or Information Disclosure Vulnerability by JLLeitschuh · Pull Request #1617 · samtools/htsjdk · GitHubExploit;Patch;Third Party Advisory
-
https://github.com/samtools/htsjdk/commit/4a4024a97ee3e87096df6ad9b22c8260bd527772
Fix temporary directory hijacking or temporary directory information … · samtools/htsjdk@4a4024a · GitHubPatch;Third Party Advisory
-
https://security.snyk.io/vuln/SNYK-JAVA-COMGITHUBSAMTOOLS-3149901
Creation of Temporary File in Directory with Insecure Permissions in com.github.samtools:htsjdk | CVE-2022-21126 | SnykThird Party Advisory
Jump to