{"id":"CVE-2022-21126","aliases":["GHSA-96vh-4rfp-c42c"],"url":"https://o3.security/vulnerability/CVE-2022-21126","summary":"Creation of Temporary File in Directory with Insecure Permissions","details":"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.","published":"2022-11-29T16:50:19.233Z","modified":"2026-07-22T02:23:33.251783Z","cvss":{"score":7.3,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L"},"epss":null,"cisaKev":null,"exploitsKnown":1,"affectedPackages":[{"ecosystem":"Maven","name":"com.github.samtools:htsjdk","fixedVersion":"3.0.1"}],"fix":{"url":"https://github.com/samtools/htsjdk/commit/4a4024a97ee3e87096df6ad9b22c8260bd527772","label":"samtools/htsjdk@4a4024a"},"references":[{"type":"WEB","url":"https://security.snyk.io/vuln/SNYK-JAVA-COMGITHUBSAMTOOLS-3149901"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/21xxx/CVE-2022-21126.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-21126"},{"type":"FIX","url":"https://github.com/samtools/htsjdk/commit/4a4024a97ee3e87096df6ad9b22c8260bd527772"},{"type":"FIX","url":"https://github.com/samtools/htsjdk/pull/1617"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-22T02:23:33.251783Z"}}