{"id":"CVE-2022-21126","state":"PUBLISHED","title":"Creation of Temporary File in Directory with Insecure Permissions","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.","publishedAt":"2022-11-29T16:50:19.233Z","updatedAt":"2025-04-24T18:34:51.291Z","severity":{"score":7.3,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","source":"snyk"},"assigner":"snyk","products":["n/a com.github.samtools:htsjdk"],"affected":[{"vendor":"n/a","product":"com.github.samtools:htsjdk","versions":[{"version":"unspecified","status":"affected","lessThan":"3.0.1","versionType":"custom"}]}],"references":["https://security.snyk.io/vuln/SNYK-JAVA-COMGITHUBSAMTOOLS-3149901","https://github.com/samtools/htsjdk/commit/4a4024a97ee3e87096df6ad9b22c8260bd527772","https://github.com/samtools/htsjdk/pull/1617"],"weaknesses":[],"ingestedAt":"2026-10-29T19:49:35.025Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/21xxx/CVE-2022-21126.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2022-21126","state":"PUBLISHED","datePublished":"2022-11-29T16:50:19.233Z","dateUpdated":"2025-04-24T18:34:51.291Z","assignerShortName":"snyk","assignerOrgId":"bae035ff-b466-4ff4-94d0-fc9efd9e1730","dateReserved":"2022-02-24T00:00:00.000Z"},"containers":{"cna":{"title":"Creation of Temporary File in Directory with Insecure Permissions","descriptions":[{"lang":"en","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."}],"affected":[{"vendor":"n/a","product":"com.github.samtools:htsjdk","versions":[{"version":"unspecified","status":"affected","lessThan":"3.0.1","versionType":"custom"}]}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-JAVA-COMGITHUBSAMTOOLS-3149901"},{"url":"https://github.com/samtools/htsjdk/commit/4a4024a97ee3e87096df6ad9b22c8260bd527772"},{"url":"https://github.com/samtools/htsjdk/pull/1617"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"LOW","integrityImpact":"LOW","availabilityImpact":"LOW","baseScore":7.3,"baseSeverity":"HIGH"}}],"problemTypes":[{"descriptions":[{"type":"text","lang":"en","description":"Creation of Temporary File in Directory with Insecure Permissions"}]}],"providerMetadata":{"shortName":"snyk","orgId":"bae035ff-b466-4ff4-94d0-fc9efd9e1730","dateUpdated":"2022-11-29T00:00:00.000Z"},"datePublic":"2022-11-29T00:00:00.000Z","credits":[{"lang":"en","value":"Jonathan Leitschuh"}]},"adp":[{"title":"CVE Program Container","references":[{"url":"https://security.snyk.io/vuln/SNYK-JAVA-COMGITHUBSAMTOOLS-3149901","tags":["x_transferred"]},{"url":"https://github.com/samtools/htsjdk/commit/4a4024a97ee3e87096df6ad9b22c8260bd527772","tags":["x_transferred"]},{"url":"https://github.com/samtools/htsjdk/pull/1617","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T02:31:59.646Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-04-24T18:34:30.813161Z","id":"CVE-2022-21126","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-04-24T18:34:51.291Z"}}]}}}