{"api_version":"1","generated_at":"2026-07-23T15:05:42+00:00","cve":"CVE-2022-21126","urls":{"html":"https://cve.report/CVE-2022-21126","api":"https://cve.report/api/cve/CVE-2022-21126.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-21126","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-21126"},"summary":{"title":"CVE-2022-21126","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.","state":"PUBLIC","assigner":"report@snyk.io","published_at":"2022-11-29 17:15:00","updated_at":"2022-12-01 21:08:00"},"problem_types":["CWE-668"],"metrics":[],"references":[{"url":"https://github.com/samtools/htsjdk/pull/1617","name":"https://github.com/samtools/htsjdk/pull/1617","refsource":"MISC","tags":[],"title":"[SECURITY] Fix Temporary Directory Hijacking or Information Disclosure Vulnerability by JLLeitschuh · Pull Request #1617 · samtools/htsjdk · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/samtools/htsjdk/commit/4a4024a97ee3e87096df6ad9b22c8260bd527772","name":"https://github.com/samtools/htsjdk/commit/4a4024a97ee3e87096df6ad9b22c8260bd527772","refsource":"MISC","tags":[],"title":"Fix temporary directory hijacking or temporary directory information … · samtools/htsjdk@4a4024a · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://security.snyk.io/vuln/SNYK-JAVA-COMGITHUBSAMTOOLS-3149901","name":"https://security.snyk.io/vuln/SNYK-JAVA-COMGITHUBSAMTOOLS-3149901","refsource":"MISC","tags":[],"title":"Creation of Temporary File in Directory with Insecure Permissions in com.github.samtools:htsjdk | CVE-2022-21126 | Snyk","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-21126","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-21126","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[{"source":"LEGACY","value":"Jonathan Leitschuh","lang":""}],"nvd_cpes":[{"cve_year":"2022","cve_id":"21126","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"samtools","cpe5":"htsjdk","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"data_type":"CVE","data_format":"MITRE","data_version":"4.0","CVE_data_meta":{"ASSIGNER":"report@snyk.io","DATE_PUBLIC":"2022-11-29T16:45:07.306052Z","ID":"CVE-2022-21126","STATE":"PUBLIC","TITLE":"Creation of Temporary File in Directory with Insecure Permissions"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"com.github.samtools:htsjdk","version":{"version_data":[{"version_affected":"<","version_value":"3.0.1"}]}}]},"vendor_name":"n/a"}]}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"Creation of Temporary File in Directory with Insecure Permissions"}]}]},"references":{"reference_data":[{"refsource":"MISC","url":"https://security.snyk.io/vuln/SNYK-JAVA-COMGITHUBSAMTOOLS-3149901","name":"https://security.snyk.io/vuln/SNYK-JAVA-COMGITHUBSAMTOOLS-3149901"},{"refsource":"MISC","url":"https://github.com/samtools/htsjdk/commit/4a4024a97ee3e87096df6ad9b22c8260bd527772","name":"https://github.com/samtools/htsjdk/commit/4a4024a97ee3e87096df6ad9b22c8260bd527772"},{"refsource":"MISC","url":"https://github.com/samtools/htsjdk/pull/1617","name":"https://github.com/samtools/htsjdk/pull/1617"}]},"description":{"description_data":[{"lang":"eng","value":"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."}]},"impact":{"cvss":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","baseScore":7.3,"baseSeverity":"HIGH","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"LOW","integrityImpact":"LOW","availabilityImpact":"LOW"}},"credit":[{"lang":"eng","value":"Jonathan Leitschuh"}]},"nvd":{"publishedDate":"2022-11-29 17:15:00","lastModifiedDate":"2022-12-01 21:08:00","problem_types":["CWE-668"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":7.8,"baseSeverity":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.9}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:samtools:htsjdk:*:*:*:*:*:*:*:*","versionEndExcluding":"3.0.1","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}