htsjdk — security advisory
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
- htsjdk
- Affected versions
- 2.0.1+dfsg.1-1, 2.18.2+dfsg-2, 2.23.0+dfsg-2, 2.24.1+dfsg-1, 2.8.1+dfsg-1, 2.8.1+dfsg-2, 3.0.5+dfsg-1, 3.0.5+dfsg-2, 4.0.2+dfsg-2, 4.1.0+dfsg-1, 4.1.3+dfsg-2, 4.3.0+dfsg-1, 5.0.0+dfsg-1
- Fixed versions
- Not specified
- CVEs
- CVE-2022-21126
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 00:55 UTC · Revision 1
Source evidence
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.
osv:UBUNTU-CVE-2022-21126
htsjdk
Fixed versions: Not specified
htsjdk
Fixed versions: Not specified
htsjdk
Fixed versions: Not specified
htsjdk
Fixed versions: Not specified
htsjdk
Fixed versions: Not specified
htsjdk
Fixed versions: Not specified
htsjdk
Fixed versions: Not specified
htsjdk
Fixed versions: Not specified
Complete source record
{
"id": "e8de04ba8cf0aae13cc855b8fcd7a2d973e59be5d480673437e43dc4b3d1459c",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2022-21126",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2022-21126",
"summary": "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.",
"evidence": "osv:UBUNTU-CVE-2022-21126",
"products": [
{
"name": {
"value": "htsjdk",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.0.1+dfsg.1-1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "htsjdk",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.8.1+dfsg-1",
"evidence": "/affected/1/versions"
},
{
"value": "2.8.1+dfsg-2",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "htsjdk",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.18.2+dfsg-2",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "htsjdk",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.23.0+dfsg-2",
"evidence": "/affected/3/versions"
},
{
"value": "2.24.1+dfsg-1",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "htsjdk",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "3.0.5+dfsg-1",
"evidence": "/affected/4/versions"
},
{
"value": "3.0.5+dfsg-2",
"evidence": "/affected/4/versions"
},
{
"value": "4.0.2+dfsg-2",
"evidence": "/affected/4/versions"
},
{
"value": "4.1.0+dfsg-1",
"evidence": "/affected/4/versions"
}
]
},
{
"name": {
"value": "htsjdk",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "4.1.3+dfsg-2",
"evidence": "/affected/5/versions"
}
]
},
{
"name": {
"value": "htsjdk",
"evidence": "/affected/6/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "4.3.0+dfsg-1",
"evidence": "/affected/6/versions"
},
{
"value": "5.0.0+dfsg-1",
"evidence": "/affected/6/versions"
}
]
},
{
"name": {
"value": "htsjdk",
"evidence": "/affected/7/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "4.1.3+dfsg-2",
"evidence": "/affected/7/versions"
},
{
"value": "4.3.0+dfsg-1",
"evidence": "/affected/7/versions"
}
]
}
],
"severity": "high",
"structured": {
"id": "UBUNTU-CVE-2022-21126",
"aliases": [
"UBUNTU-CVE-2022-21126"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L"
},
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "htsjdk",
"purl": "pkg:deb/ubuntu/htsjdk?arch=source&distro=xenial",
"ecosystem": "Ubuntu:16.04:LTS"
},
"versions": [
"2.0.1+dfsg.1-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-21126.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libhtsjdk-java",
"binary_version": "2.0.1+dfsg.1-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "htsjdk",
"purl": "pkg:deb/ubuntu/htsjdk?arch=source&distro=bionic",
"ecosystem": "Ubuntu:18.04:LTS"
},
"versions": [
"2.8.1+dfsg-1",
"2.8.1+dfsg-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-21126.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libhtsjdk-java",
"binary_version": "2.8.1+dfsg-2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "htsjdk",
"purl": "pkg:deb/ubuntu/htsjdk?arch=source&distro=focal",
"ecosystem": "Ubuntu:20.04:LTS"
},
"versions": [
"2.18.2+dfsg-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-21126.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libhtsjdk-java",
"binary_version": "2.18.2+dfsg-2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "htsjdk",
"purl": "pkg:deb/ubuntu/htsjdk?arch=source&distro=jammy",
"ecosystem": "Ubuntu:22.04:LTS"
},
"versions": [
"2.23.0+dfsg-2",
"2.24.1+dfsg-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-21126.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libhtsjdk-java",
"binary_version": "2.24.1+dfsg-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "htsjdk",
"purl": "pkg:deb/ubuntu/htsjdk?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"3.0.5+dfsg-1",
"3.0.5+dfsg-2",
"4.0.2+dfsg-2",
"4.1.0+dfsg-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-21126.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libhtsjdk-java",
"binary_version": "4.1.0+dfsg-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "htsjdk",
"purl": "pkg:deb/ubuntu/htsjdk?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"4.1.3+dfsg-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-21126.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libhtsjdk-java",
"binary_version": "4.1.3+dfsg-2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "htsjdk",
"purl": "pkg:deb/ubuntu/htsjdk?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"4.3.0+dfsg-1",
"5.0.0+dfsg-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-21126.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libhtsjdk-java",
"binary_version": "5.0.0+dfsg-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "htsjdk",
"purl": "pkg:deb/ubuntu/htsjdk?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"4.1.3+dfsg-2",
"4.3.0+dfsg-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-21126.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libhtsjdk-java",
"binary_version": "4.3.0+dfsg-1"
}
]
}
}
],
"modified": "2026-10-17T12:56:16.551633851Z",
"provider": "osv",
"upstream": [
"CVE-2022-21126"
],
"references": [
"https://ubuntu.com/security/CVE-2022-21126",
"https://github.com/samtools/htsjdk/pull/1617",
"https://github.com/samtools/htsjdk/commit/4a4024a97ee3e87096df6ad9b22c8260bd527772",
"https://security.snyk.io/vuln/SNYK-JAVA-COMGITHUBSAMTOOLS-3149901",
"https://www.cve.org/CVERecord?id=CVE-2022-21126"
]
},
"related_cves": [
{
"value": "CVE-2022-21126",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/1/score"
},
"source_id": "core-osv",
"document_id": 355112,
"published_at": "2022-11-29T17:15:00+00:00"
}