{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-21126","id":"CVE-2022-21126","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.","descriptionLong":"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","updated":"2026-10-28T10:25:34.457269530Z","reserved":"2022-02-24T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"snyk","metric":{"version":"3.1","score":7.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","rating":"high","source":"snyk"},"metrics":[{"version":"3.1","score":7.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","rating":"high","source":"snyk"},{"version":"3.1","score":7.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","rating":"high","source":"snyk.io"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":7.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","rating":"high","source":"OSV"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub"}],"rating":"high","products":["com.github.samtools:htsjdk"],"affectedProducts":[{"vendor":"n/a","product":"com.github.samtools:htsjdk","defaultStatus":null,"versions":[{"version":"unspecified","lessThan":"3.0.1","status":"affected","versionType":"custom"}],"platforms":[]}],"packages":[{"ecosystem":"Maven","name":"com.github.samtools:htsjdk","purl":"pkg:maven/com.github.samtools/htsjdk","ranges":["<3.0.1"],"fixed":["3.0.1"],"advisory":"GHSA-96vh-4rfp-c42c"}],"cwes":["CWE-668"],"aliases":["GHSA-96vh-4rfp-c42c"],"references":[{"url":"https://security.snyk.io/vuln/SNYK-JAVA-COMGITHUBSAMTOOLS-3149901","tags":["x_transferred","Third Party Advisory","web"]},{"url":"https://github.com/samtools/htsjdk/commit/4a4024a97ee3e87096df6ad9b22c8260bd527772","tags":["x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://github.com/samtools/htsjdk/pull/1617","tags":["x_transferred","Exploit","Patch","Third Party Advisory","fix","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/21xxx/CVE-2022-21126.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-21126","tags":["advisory"]},{"url":"https://github.com/samtools/htsjdk","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial"},"epss":0.00753,"epssPercentile":0.55847,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-21126","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-21126","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-21126","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-96vh-4rfp-c42c","ok":true,"note":"GHSA-96vh-4rfp-c42c"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-21126","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}