Search
Find a vulnerability
Search criteria
42 vulnerabilities by samtools
CVE-2026-63390 (GCVE-0-2026-63390)
Vulnerability from nvd – Published: 2026-11-19 15:37 – Updated: 2026-11-19 20:43
VLAI
EPSS
VEX
Title
HTSlib: Heap buffer overflow in BCF reader due to improper validation of input.
Summary
HTSlib is a library for reading and writing bioinformatics file formats. Prior to 1.21.2, 1.22.3, 1.23.2, and 1.24, the BCF reader can experience an integer overflow in a record-length check that verifies whether a record contains enough bytes for the expected number and size of stored items. A crafted BCF record can bypass this check, causing reads beyond the stored data and, in some cases, writes beyond the heap buffer when the reader sets the least significant bit of accessed bytes. Opening such a file can crash the process, corrupt data or heap structures, and may permit arbitrary code execution. This issue is fixed in versions 1.21.2, 1.22.3, 1.23.2, and 1.24.
Severity
SSVC
Exploitation: none
Automatable: yes
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-11-19 20:29 UTC
CWE
Assigner
References
9 references
| URL | Tags |
|---|---|
| https://github.com/samtools/htslib/security/advis… | x_refsource_CONFIRM |
| https://github.com/samtools/htslib/pull/2047 | x_refsource_MISC |
| https://github.com/samtools/htslib/commit/00a30cd… | x_refsource_MISC |
| https://github.com/samtools/htslib/commit/2713f39… | x_refsource_MISC |
| https://github.com/samtools/htslib/commit/3a3585d… | x_refsource_MISC |
| https://github.com/samtools/htslib/releases/tag/1.21.2 | x_refsource_MISC |
| https://github.com/samtools/htslib/releases/tag/1.22.3 | x_refsource_MISC |
| https://github.com/samtools/htslib/releases/tag/1.23.2 | x_refsource_MISC |
| https://github.com/samtools/htslib/releases/tag/1.24 | x_refsource_MISC |
Impacted products
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-63390",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "yes"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-11-19T20:29:55.710796Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-11-19T20:43:13.499Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"product": "htslib",
"vendor": "samtools",
"versions": [
{
"status": "affected",
"version": "\u003c 1.21.2"
},
{
"status": "affected",
"version": "\u003e= 1.22.0, \u003c 1.22.3"
},
{
"status": "affected",
"version": "\u003e= 1.23.0, \u003c 1.23.2"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "HTSlib is a library for reading and writing bioinformatics file formats. Prior to 1.21.2, 1.22.3, 1.23.2, and 1.24, the BCF reader can experience an integer overflow in a record-length check that verifies whether a record contains enough bytes for the expected number and size of stored items. A crafted BCF record can bypass this check, causing reads beyond the stored data and, in some cases, writes beyond the heap buffer when the reader sets the least significant bit of accessed bytes. Opening such a file can crash the process, corrupt data or heap structures, and may permit arbitrary code execution. This issue is fixed in versions 1.21.2, 1.22.3, 1.23.2, and 1.24."
}
],
"metrics": [
{
"cvssV4_0": {
"attackComplexity": "LOW",
"attackRequirements": "NONE",
"attackVector": "NETWORK",
"baseScore": 8.8,
"baseSeverity": "HIGH",
"privilegesRequired": "NONE",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "NONE",
"vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N",
"version": "4.0",
"vulnAvailabilityImpact": "LOW",
"vulnConfidentialityImpact": "NONE",
"vulnIntegrityImpact": "HIGH"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-122",
"description": "CWE-122: Heap-based Buffer Overflow",
"lang": "en",
"type": "CWE"
}
]
},
{
"descriptions": [
{
"cweId": "CWE-125",
"description": "CWE-125: Out-of-bounds Read",
"lang": "en",
"type": "CWE"
}
]
},
{
"descriptions": [
{
"cweId": "CWE-190",
"description": "CWE-190: Integer Overflow or Wraparound",
"lang": "en",
"type": "CWE"
}
]
},
{
"descriptions": [
{
"cweId": "CWE-787",
"description": "CWE-787: Out-of-bounds Write",
"lang": "en",
"type": "CWE"
}
]
},
{
"descriptions": [
{
"cweId": "CWE-1284",
"description": "CWE-1284: Improper Validation of Specified Quantity in Input",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-19T15:37:08.984Z",
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M"
},
"references": [
{
"name": "https://github.com/samtools/htslib/security/advisories/GHSA-2wm6-8hgm-7g92",
"tags": [
"x_refsource_CONFIRM"
],
"url": "https://github.com/samtools/htslib/security/advisories/GHSA-2wm6-8hgm-7g92"
},
{
"name": "https://github.com/samtools/htslib/pull/2047",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/pull/2047"
},
{
"name": "https://github.com/samtools/htslib/commit/00a30cdb8db1f5832eb58a799383a462c6b58cb3",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/commit/00a30cdb8db1f5832eb58a799383a462c6b58cb3"
},
{
"name": "https://github.com/samtools/htslib/commit/2713f39242f4afff5382aad5c1ba02abe12950cd",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/commit/2713f39242f4afff5382aad5c1ba02abe12950cd"
},
{
"name": "https://github.com/samtools/htslib/commit/3a3585dc844f7caad266bbec8d91e45c09c1dcd4",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/commit/3a3585dc844f7caad266bbec8d91e45c09c1dcd4"
},
{
"name": "https://github.com/samtools/htslib/releases/tag/1.21.2",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/releases/tag/1.21.2"
},
{
"name": "https://github.com/samtools/htslib/releases/tag/1.22.3",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/releases/tag/1.22.3"
},
{
"name": "https://github.com/samtools/htslib/releases/tag/1.23.2",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/releases/tag/1.23.2"
},
{
"name": "https://github.com/samtools/htslib/releases/tag/1.24",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/releases/tag/1.24"
}
],
"source": {
"advisory": "GHSA-2wm6-8hgm-7g92",
"discovery": "UNKNOWN"
},
"title": "HTSlib: Heap buffer overflow in BCF reader due to improper validation of input."
}
},
"cveMetadata": {
"assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"assignerShortName": "GitHub_M",
"cveId": "CVE-2026-63390",
"datePublished": "2026-11-19T15:37:08.984Z",
"dateReserved": "2026-07-16T17:39:30.171Z",
"dateUpdated": "2026-11-19T20:43:13.499Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-62260 (GCVE-0-2026-62260)
Vulnerability from nvd – Published: 2026-11-19 15:53 – Updated: 2026-11-19 18:52
VLAI
EPSS
VEX
Title
HTSlib: Out-of-bounds read in HTSlib CRAM 3.x and 4.0 readers due to improper validation of input
Summary
HTSlib is a library for reading and writing bioinformatics file formats. Prior to 1.21.2, 1.22.3, 1.23.2, and 1.24, the CRAM BETA decoder functions cram_beta_decode_long, cram_beta_decode_int, and cram_beta_decode_char, and the experimental CRAM v4 XPACK functions cram_xpack_decode_long and cram_xpack_decode_int, have bounds-checking flaws caused by integer overflow after a multiplication. The resulting incorrect bounds check can allow decoding to read beyond the supplied input buffer, potentially leaking process-state information or crashing the process. This issue is fixed in versions 1.21.2, 1.22.3, 1.23.2, and 1.24.
Severity
SSVC
Exploitation: none
Automatable: no
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-11-19 18:50 UTC
Assigner
References
9 references
| URL | Tags |
|---|---|
| https://github.com/samtools/htslib/security/advis… | x_refsource_CONFIRM |
| https://github.com/samtools/htslib/pull/2046 | x_refsource_MISC |
| https://github.com/samtools/htslib/commit/3eb519c… | x_refsource_MISC |
| https://github.com/samtools/htslib/commit/3eef4ae… | x_refsource_MISC |
| https://github.com/samtools/htslib/commit/a3e8dca… | x_refsource_MISC |
| https://github.com/samtools/htslib/releases/tag/1.21.2 | x_refsource_MISC |
| https://github.com/samtools/htslib/releases/tag/1.22.3 | x_refsource_MISC |
| https://github.com/samtools/htslib/releases/tag/1.23.2 | x_refsource_MISC |
| https://github.com/samtools/htslib/releases/tag/1.24 | x_refsource_MISC |
Impacted products
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-62260",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-11-19T18:50:36.678827Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-11-19T18:52:10.280Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"product": "htslib",
"vendor": "samtools",
"versions": [
{
"status": "affected",
"version": "\u003c 1.21.2"
},
{
"status": "affected",
"version": "\u003e= 1.22.0, \u003c 1.22.3"
},
{
"status": "affected",
"version": "\u003e= 1.23.0, \u003c 1.23.2"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "HTSlib is a library for reading and writing bioinformatics file formats. Prior to 1.21.2, 1.22.3, 1.23.2, and 1.24, the CRAM BETA decoder functions cram_beta_decode_long, cram_beta_decode_int, and cram_beta_decode_char, and the experimental CRAM v4 XPACK functions cram_xpack_decode_long and cram_xpack_decode_int, have bounds-checking flaws caused by integer overflow after a multiplication. The resulting incorrect bounds check can allow decoding to read beyond the supplied input buffer, potentially leaking process-state information or crashing the process. This issue is fixed in versions 1.21.2, 1.22.3, 1.23.2, and 1.24."
}
],
"metrics": [
{
"cvssV4_0": {
"attackComplexity": "LOW",
"attackRequirements": "NONE",
"attackVector": "NETWORK",
"baseScore": 6.9,
"baseSeverity": "MEDIUM",
"privilegesRequired": "NONE",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "NONE",
"vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N",
"version": "4.0",
"vulnAvailabilityImpact": "LOW",
"vulnConfidentialityImpact": "LOW",
"vulnIntegrityImpact": "NONE"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-125",
"description": "CWE-125: Out-of-bounds Read",
"lang": "en",
"type": "CWE"
}
]
},
{
"descriptions": [
{
"cweId": "CWE-129",
"description": "CWE-129: Improper Validation of Array Index",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-19T15:53:13.929Z",
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M"
},
"references": [
{
"name": "https://github.com/samtools/htslib/security/advisories/GHSA-rjqv-xg3q-g423",
"tags": [
"x_refsource_CONFIRM"
],
"url": "https://github.com/samtools/htslib/security/advisories/GHSA-rjqv-xg3q-g423"
},
{
"name": "https://github.com/samtools/htslib/pull/2046",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/pull/2046"
},
{
"name": "https://github.com/samtools/htslib/commit/3eb519cd8a9be35275db46a439eb158e70fe4151",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/commit/3eb519cd8a9be35275db46a439eb158e70fe4151"
},
{
"name": "https://github.com/samtools/htslib/commit/3eef4aece30bc008b251e377085fc944d008d06a",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/commit/3eef4aece30bc008b251e377085fc944d008d06a"
},
{
"name": "https://github.com/samtools/htslib/commit/a3e8dca14dcfdc6167281721ede6d6ecd3395bad",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/commit/a3e8dca14dcfdc6167281721ede6d6ecd3395bad"
},
{
"name": "https://github.com/samtools/htslib/releases/tag/1.21.2",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/releases/tag/1.21.2"
},
{
"name": "https://github.com/samtools/htslib/releases/tag/1.22.3",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/releases/tag/1.22.3"
},
{
"name": "https://github.com/samtools/htslib/releases/tag/1.23.2",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/releases/tag/1.23.2"
},
{
"name": "https://github.com/samtools/htslib/releases/tag/1.24",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/releases/tag/1.24"
}
],
"source": {
"advisory": "GHSA-rjqv-xg3q-g423",
"discovery": "UNKNOWN"
},
"title": "HTSlib: Out-of-bounds read in HTSlib CRAM 3.x and 4.0 readers due to improper validation of input"
}
},
"cveMetadata": {
"assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"assignerShortName": "GitHub_M",
"cveId": "CVE-2026-62260",
"datePublished": "2026-11-19T15:53:13.929Z",
"dateReserved": "2026-07-13T17:09:57.574Z",
"dateUpdated": "2026-11-19T18:52:10.280Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-62259 (GCVE-0-2026-62259)
Vulnerability from nvd – Published: 2026-11-19 15:44 – Updated: 2026-11-19 18:53
VLAI
EPSS
VEX
Title
HTSlib: Out-of-bounds read in HTSlib CRAM 4.0 reader due to improper validation of input
Summary
HTSlib is a library for reading and writing bioinformatics file formats. Prior to 1.21.2, 1.22.3, 1.23.2, and 1.24, the experimental CRAM v4 functions cram_xpack_decode_char and cram_xrle_decode_char do not validate that attacker-controlled decode sizes remain within their expanded input arrays. Crafted CRAM data can therefore make either decoder read beyond the supplied input buffer, potentially disclosing process-state information or crashing the process through invalid memory access. This issue is fixed in versions 1.21.2, 1.22.3, 1.23.2, and 1.24.
Severity
SSVC
Exploitation: none
Automatable: yes
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-11-19 18:52 UTC
Assigner
References
9 references
| URL | Tags |
|---|---|
| https://github.com/samtools/htslib/security/advis… | x_refsource_CONFIRM |
| https://github.com/samtools/htslib/pull/2046 | x_refsource_MISC |
| https://github.com/samtools/htslib/commit/76147ed… | x_refsource_MISC |
| https://github.com/samtools/htslib/commit/a1f929d… | x_refsource_MISC |
| https://github.com/samtools/htslib/commit/a3e8dca… | x_refsource_MISC |
| https://github.com/samtools/htslib/releases/tag/1.21.2 | x_refsource_MISC |
| https://github.com/samtools/htslib/releases/tag/1.22.3 | x_refsource_MISC |
| https://github.com/samtools/htslib/releases/tag/1.23.2 | x_refsource_MISC |
| https://github.com/samtools/htslib/releases/tag/1.24 | x_refsource_MISC |
Impacted products
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-62259",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "yes"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-11-19T18:52:54.718823Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-11-19T18:53:09.505Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"product": "htslib",
"vendor": "samtools",
"versions": [
{
"status": "affected",
"version": "\u003c 1.21.2"
},
{
"status": "affected",
"version": "\u003e= 1.22.0, \u003c 1.22.3"
},
{
"status": "affected",
"version": "\u003e= 1.23.0, \u003c 1.23.2"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "HTSlib is a library for reading and writing bioinformatics file formats. Prior to 1.21.2, 1.22.3, 1.23.2, and 1.24, the experimental CRAM v4 functions cram_xpack_decode_char and cram_xrle_decode_char do not validate that attacker-controlled decode sizes remain within their expanded input arrays. Crafted CRAM data can therefore make either decoder read beyond the supplied input buffer, potentially disclosing process-state information or crashing the process through invalid memory access. This issue is fixed in versions 1.21.2, 1.22.3, 1.23.2, and 1.24."
}
],
"metrics": [
{
"cvssV4_0": {
"attackComplexity": "LOW",
"attackRequirements": "NONE",
"attackVector": "NETWORK",
"baseScore": 6.9,
"baseSeverity": "MEDIUM",
"privilegesRequired": "NONE",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "NONE",
"vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N",
"version": "4.0",
"vulnAvailabilityImpact": "LOW",
"vulnConfidentialityImpact": "LOW",
"vulnIntegrityImpact": "NONE"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-125",
"description": "CWE-125: Out-of-bounds Read",
"lang": "en",
"type": "CWE"
}
]
},
{
"descriptions": [
{
"cweId": "CWE-129",
"description": "CWE-129: Improper Validation of Array Index",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-19T15:44:25.840Z",
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M"
},
"references": [
{
"name": "https://github.com/samtools/htslib/security/advisories/GHSA-hg3g-v57p-459q",
"tags": [
"x_refsource_CONFIRM"
],
"url": "https://github.com/samtools/htslib/security/advisories/GHSA-hg3g-v57p-459q"
},
{
"name": "https://github.com/samtools/htslib/pull/2046",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/pull/2046"
},
{
"name": "https://github.com/samtools/htslib/commit/76147edc658e5c19cbae52ececf5e3af81e8998a",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/commit/76147edc658e5c19cbae52ececf5e3af81e8998a"
},
{
"name": "https://github.com/samtools/htslib/commit/a1f929da9f207b099bfc1f5a74aee94fc0eeba6a",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/commit/a1f929da9f207b099bfc1f5a74aee94fc0eeba6a"
},
{
"name": "https://github.com/samtools/htslib/commit/a3e8dca14dcfdc6167281721ede6d6ecd3395bad",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/commit/a3e8dca14dcfdc6167281721ede6d6ecd3395bad"
},
{
"name": "https://github.com/samtools/htslib/releases/tag/1.21.2",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/releases/tag/1.21.2"
},
{
"name": "https://github.com/samtools/htslib/releases/tag/1.22.3",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/releases/tag/1.22.3"
},
{
"name": "https://github.com/samtools/htslib/releases/tag/1.23.2",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/releases/tag/1.23.2"
},
{
"name": "https://github.com/samtools/htslib/releases/tag/1.24",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/releases/tag/1.24"
}
],
"source": {
"advisory": "GHSA-hg3g-v57p-459q",
"discovery": "UNKNOWN"
},
"title": "HTSlib: Out-of-bounds read in HTSlib CRAM 4.0 reader due to improper validation of input"
}
},
"cveMetadata": {
"assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"assignerShortName": "GitHub_M",
"cveId": "CVE-2026-62259",
"datePublished": "2026-11-19T15:44:25.840Z",
"dateReserved": "2026-07-13T17:09:57.574Z",
"dateUpdated": "2026-11-19T18:53:09.505Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-62258 (GCVE-0-2026-62258)
Vulnerability from nvd – Published: 2026-11-19 15:50 – Updated: 2026-11-19 20:43
VLAI
EPSS
VEX
Title
HTSlib: Stack write overflow in HTSlib CRAM decoder
Summary
HTSlib is a library for reading and writing bioinformatics file formats. Prior to 1.21.2, 1.22.3, 1.23.2, and 1.24, the CRAM decoder validates the 254-character query-name limit only after decoding the name into a 1024-byte stack array. An attacker-controlled CRAM record can provide an overlong query name and overflow the local stack buffer before the later validation runs; all CRAM format versions are affected. Opening such a file can crash the process, corrupt stack data, and may permit arbitrary code execution. This issue is fixed in versions 1.21.2, 1.22.3, 1.23.2, and 1.24.
Severity
SSVC
Exploitation: none
Automatable: yes
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-11-19 20:29 UTC
Assigner
References
9 references
| URL | Tags |
|---|---|
| https://github.com/samtools/htslib/security/advis… | x_refsource_CONFIRM |
| https://github.com/samtools/htslib/pull/2046 | x_refsource_MISC |
| https://github.com/samtools/htslib/commit/2527879… | x_refsource_MISC |
| https://github.com/samtools/htslib/commit/df93e24… | x_refsource_MISC |
| https://github.com/samtools/htslib/commit/f1d1bf8… | x_refsource_MISC |
| https://github.com/samtools/htslib/releases/tag/1.21.2 | x_refsource_MISC |
| https://github.com/samtools/htslib/releases/tag/1.22.3 | x_refsource_MISC |
| https://github.com/samtools/htslib/releases/tag/1.23.2 | x_refsource_MISC |
| https://github.com/samtools/htslib/releases/tag/1.24 | x_refsource_MISC |
Impacted products
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-62258",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "yes"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-11-19T20:29:51.824666Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-11-19T20:43:05.331Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"product": "htslib",
"vendor": "samtools",
"versions": [
{
"status": "affected",
"version": "\u003c 1.21.2"
},
{
"status": "affected",
"version": "\u003e= 1.22.0, \u003c 1.22.3"
},
{
"status": "affected",
"version": "\u003e= 1.23.0, \u003c 1.23.2"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "HTSlib is a library for reading and writing bioinformatics file formats. Prior to 1.21.2, 1.22.3, 1.23.2, and 1.24, the CRAM decoder validates the 254-character query-name limit only after decoding the name into a 1024-byte stack array. An attacker-controlled CRAM record can provide an overlong query name and overflow the local stack buffer before the later validation runs; all CRAM format versions are affected. Opening such a file can crash the process, corrupt stack data, and may permit arbitrary code execution. This issue is fixed in versions 1.21.2, 1.22.3, 1.23.2, and 1.24."
}
],
"metrics": [
{
"cvssV4_0": {
"attackComplexity": "LOW",
"attackRequirements": "NONE",
"attackVector": "NETWORK",
"baseScore": 8.8,
"baseSeverity": "HIGH",
"privilegesRequired": "NONE",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "NONE",
"vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N",
"version": "4.0",
"vulnAvailabilityImpact": "LOW",
"vulnConfidentialityImpact": "NONE",
"vulnIntegrityImpact": "HIGH"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-121",
"description": "CWE-121: Stack-based Buffer Overflow",
"lang": "en",
"type": "CWE"
}
]
},
{
"descriptions": [
{
"cweId": "CWE-787",
"description": "CWE-787: Out-of-bounds Write",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-19T15:50:31.702Z",
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M"
},
"references": [
{
"name": "https://github.com/samtools/htslib/security/advisories/GHSA-2jx2-wm7f-rv9m",
"tags": [
"x_refsource_CONFIRM"
],
"url": "https://github.com/samtools/htslib/security/advisories/GHSA-2jx2-wm7f-rv9m"
},
{
"name": "https://github.com/samtools/htslib/pull/2046",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/pull/2046"
},
{
"name": "https://github.com/samtools/htslib/commit/25278797c251a9af789382ecf5aa0c86f417bdf5",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/commit/25278797c251a9af789382ecf5aa0c86f417bdf5"
},
{
"name": "https://github.com/samtools/htslib/commit/df93e245f1b517aec86c69684fcb2faf5942c5c2",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/commit/df93e245f1b517aec86c69684fcb2faf5942c5c2"
},
{
"name": "https://github.com/samtools/htslib/commit/f1d1bf835aaafa1e511996dcd49760c36f683b17",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/commit/f1d1bf835aaafa1e511996dcd49760c36f683b17"
},
{
"name": "https://github.com/samtools/htslib/releases/tag/1.21.2",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/releases/tag/1.21.2"
},
{
"name": "https://github.com/samtools/htslib/releases/tag/1.22.3",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/releases/tag/1.22.3"
},
{
"name": "https://github.com/samtools/htslib/releases/tag/1.23.2",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/releases/tag/1.23.2"
},
{
"name": "https://github.com/samtools/htslib/releases/tag/1.24",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/releases/tag/1.24"
}
],
"source": {
"advisory": "GHSA-2jx2-wm7f-rv9m",
"discovery": "UNKNOWN"
},
"title": "HTSlib: Stack write overflow in HTSlib CRAM decoder"
}
},
"cveMetadata": {
"assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"assignerShortName": "GitHub_M",
"cveId": "CVE-2026-62258",
"datePublished": "2026-11-19T15:50:31.702Z",
"dateReserved": "2026-07-13T17:09:57.574Z",
"dateUpdated": "2026-11-19T20:43:05.331Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-62257 (GCVE-0-2026-62257)
Vulnerability from nvd – Published: 2026-11-19 15:41 – Updated: 2026-11-19 15:41
VLAI
EPSS
VEX
Title
HTSlib: Heap read and write overflow in HTSlib CRAM 4.0 decoder
Summary
HTSlib is a library for reading and writing bioinformatics file formats. Prior to 1.21.2, 1.22.3, 1.23.2, and 1.24, the experimental CRAM v4 XPACK and XRLE decoders cache expanded block pointers at indexes beyond the 512-element slice->block_by_id array. An array index partially controlled by data in the input file first causes an out-of-bounds read to determine whether a block is cached; a null value then causes allocation of a block and an out-of-bounds pointer write to the same element. The invalid read may crash the process, while the write may corrupt heap state and could permit arbitrary code execution. This issue is fixed in versions 1.21.2, 1.22.3, 1.23.2, and 1.24.
Severity
Assigner
References
10 references
| URL | Tags |
|---|---|
| https://github.com/samtools/htslib/security/advis… | x_refsource_CONFIRM |
| https://github.com/samtools/htslib/pull/2020 | x_refsource_MISC |
| https://github.com/samtools/htslib/pull/2046 | x_refsource_MISC |
| https://github.com/samtools/htslib/commit/a3e8dca… | x_refsource_MISC |
| https://github.com/samtools/htslib/commit/c0b5037… | x_refsource_MISC |
| https://github.com/samtools/htslib/commit/d66a77d… | x_refsource_MISC |
| https://github.com/samtools/htslib/releases/tag/1.21.2 | x_refsource_MISC |
| https://github.com/samtools/htslib/releases/tag/1.22.3 | x_refsource_MISC |
| https://github.com/samtools/htslib/releases/tag/1.23.2 | x_refsource_MISC |
| https://github.com/samtools/htslib/releases/tag/1.24 | x_refsource_MISC |
Impacted products
{
"containers": {
"cna": {
"affected": [
{
"product": "htslib",
"vendor": "samtools",
"versions": [
{
"status": "affected",
"version": "\u003c 1.21.2"
},
{
"status": "affected",
"version": "\u003e= 1.22.0, \u003c 1.22.3"
},
{
"status": "affected",
"version": "\u003e= 1.23.0, \u003c 1.23.2"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "HTSlib is a library for reading and writing bioinformatics file formats. Prior to 1.21.2, 1.22.3, 1.23.2, and 1.24, the experimental CRAM v4 XPACK and XRLE decoders cache expanded block pointers at indexes beyond the 512-element slice-\u003eblock_by_id array. An array index partially controlled by data in the input file first causes an out-of-bounds read to determine whether a block is cached; a null value then causes allocation of a block and an out-of-bounds pointer write to the same element. The invalid read may crash the process, while the write may corrupt heap state and could permit arbitrary code execution. This issue is fixed in versions 1.21.2, 1.22.3, 1.23.2, and 1.24."
}
],
"metrics": [
{
"cvssV4_0": {
"attackComplexity": "LOW",
"attackRequirements": "NONE",
"attackVector": "NETWORK",
"baseScore": 8.8,
"baseSeverity": "HIGH",
"privilegesRequired": "NONE",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "NONE",
"vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N",
"version": "4.0",
"vulnAvailabilityImpact": "LOW",
"vulnConfidentialityImpact": "NONE",
"vulnIntegrityImpact": "HIGH"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-122",
"description": "CWE-122: Heap-based Buffer Overflow",
"lang": "en",
"type": "CWE"
}
]
},
{
"descriptions": [
{
"cweId": "CWE-125",
"description": "CWE-125: Out-of-bounds Read",
"lang": "en",
"type": "CWE"
}
]
},
{
"descriptions": [
{
"cweId": "CWE-787",
"description": "CWE-787: Out-of-bounds Write",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-19T15:41:55.655Z",
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M"
},
"references": [
{
"name": "https://github.com/samtools/htslib/security/advisories/GHSA-6q7c-m967-9v37",
"tags": [
"x_refsource_CONFIRM"
],
"url": "https://github.com/samtools/htslib/security/advisories/GHSA-6q7c-m967-9v37"
},
{
"name": "https://github.com/samtools/htslib/pull/2020",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/pull/2020"
},
{
"name": "https://github.com/samtools/htslib/pull/2046",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/pull/2046"
},
{
"name": "https://github.com/samtools/htslib/commit/a3e8dca14dcfdc6167281721ede6d6ecd3395bad",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/commit/a3e8dca14dcfdc6167281721ede6d6ecd3395bad"
},
{
"name": "https://github.com/samtools/htslib/commit/c0b50372ed133c650fa0a641607da5cde46bcd8c",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/commit/c0b50372ed133c650fa0a641607da5cde46bcd8c"
},
{
"name": "https://github.com/samtools/htslib/commit/d66a77dbf8f52f7f44efd7929a28b94bbfc17f2f",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/commit/d66a77dbf8f52f7f44efd7929a28b94bbfc17f2f"
},
{
"name": "https://github.com/samtools/htslib/releases/tag/1.21.2",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/releases/tag/1.21.2"
},
{
"name": "https://github.com/samtools/htslib/releases/tag/1.22.3",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/releases/tag/1.22.3"
},
{
"name": "https://github.com/samtools/htslib/releases/tag/1.23.2",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/releases/tag/1.23.2"
},
{
"name": "https://github.com/samtools/htslib/releases/tag/1.24",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/releases/tag/1.24"
}
],
"source": {
"advisory": "GHSA-6q7c-m967-9v37",
"discovery": "UNKNOWN"
},
"title": "HTSlib: Heap read and write overflow in HTSlib CRAM 4.0 decoder"
}
},
"cveMetadata": {
"assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"assignerShortName": "GitHub_M",
"cveId": "CVE-2026-62257",
"datePublished": "2026-11-19T15:41:55.655Z",
"dateReserved": "2026-07-13T17:09:57.574Z",
"dateUpdated": "2026-11-19T15:41:55.655Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-62256 (GCVE-0-2026-62256)
Vulnerability from nvd – Published: 2026-11-19 15:52 – Updated: 2026-11-19 15:52
VLAI
EPSS
VEX
Title
HTSlib: Heap write overflow in HTSlib FASTA index handling
Summary
HTSlib is a library for reading and writing bioinformatics file formats. Prior to 1.21.2, 1.22.3, 1.23.2, and 1.24, fai_retrieve does not verify that the line width recorded in a FASTA .fai index is greater than or equal to the number of bases per line. When the line width is exactly one less than the base count, retrieval allocates an undersized heap buffer and writes one byte beyond its end; larger discrepancies instead cause an allocation failure that is handled. This issue can corrupt heap memory and crash the process. This issue is fixed in versions 1.21.2, 1.22.3, 1.23.2, and 1.24.
Severity
Assigner
References
10 references
| URL | Tags |
|---|---|
| https://github.com/samtools/htslib/security/advis… | x_refsource_CONFIRM |
| https://github.com/samtools/htslib/pull/2008 | x_refsource_MISC |
| https://github.com/samtools/htslib/commit/4af640f… | x_refsource_MISC |
| https://github.com/samtools/htslib/commit/504fb84… | x_refsource_MISC |
| https://github.com/samtools/htslib/commit/567fd43… | x_refsource_MISC |
| https://github.com/samtools/htslib/commit/cdf2292… | x_refsource_MISC |
| https://github.com/samtools/htslib/releases/tag/1.21.2 | x_refsource_MISC |
| https://github.com/samtools/htslib/releases/tag/1.22.3 | x_refsource_MISC |
| https://github.com/samtools/htslib/releases/tag/1.23.2 | x_refsource_MISC |
| https://github.com/samtools/htslib/releases/tag/1.24 | x_refsource_MISC |
Impacted products
{
"containers": {
"cna": {
"affected": [
{
"product": "htslib",
"vendor": "samtools",
"versions": [
{
"status": "affected",
"version": "\u003c 1.21.2"
},
{
"status": "affected",
"version": "\u003e= 1.22.0, \u003c 1.22.3"
},
{
"status": "affected",
"version": "\u003e= 1.23.0, \u003c 1.23.2"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "HTSlib is a library for reading and writing bioinformatics file formats. Prior to 1.21.2, 1.22.3, 1.23.2, and 1.24, fai_retrieve does not verify that the line width recorded in a FASTA .fai index is greater than or equal to the number of bases per line. When the line width is exactly one less than the base count, retrieval allocates an undersized heap buffer and writes one byte beyond its end; larger discrepancies instead cause an allocation failure that is handled. This issue can corrupt heap memory and crash the process. This issue is fixed in versions 1.21.2, 1.22.3, 1.23.2, and 1.24."
}
],
"metrics": [
{
"cvssV4_0": {
"attackComplexity": "LOW",
"attackRequirements": "NONE",
"attackVector": "NETWORK",
"baseScore": 7.1,
"baseSeverity": "HIGH",
"privilegesRequired": "NONE",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "PASSIVE",
"vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N",
"version": "4.0",
"vulnAvailabilityImpact": "LOW",
"vulnConfidentialityImpact": "NONE",
"vulnIntegrityImpact": "HIGH"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-122",
"description": "CWE-122: Heap-based Buffer Overflow",
"lang": "en",
"type": "CWE"
}
]
},
{
"descriptions": [
{
"cweId": "CWE-787",
"description": "CWE-787: Out-of-bounds Write",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-19T15:52:04.669Z",
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M"
},
"references": [
{
"name": "https://github.com/samtools/htslib/security/advisories/GHSA-4hjq-r829-8c8v",
"tags": [
"x_refsource_CONFIRM"
],
"url": "https://github.com/samtools/htslib/security/advisories/GHSA-4hjq-r829-8c8v"
},
{
"name": "https://github.com/samtools/htslib/pull/2008",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/pull/2008"
},
{
"name": "https://github.com/samtools/htslib/commit/4af640f9ffd7f1fac95a739df7f560e3e5557960",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/commit/4af640f9ffd7f1fac95a739df7f560e3e5557960"
},
{
"name": "https://github.com/samtools/htslib/commit/504fb841b70afb948f58089c3a4337ce875c1e52",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/commit/504fb841b70afb948f58089c3a4337ce875c1e52"
},
{
"name": "https://github.com/samtools/htslib/commit/567fd43c6ef938de53c98217f99336e3ce5a60ab",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/commit/567fd43c6ef938de53c98217f99336e3ce5a60ab"
},
{
"name": "https://github.com/samtools/htslib/commit/cdf22929aad8dde719c1b2070ad565ac9dd76c02",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/commit/cdf22929aad8dde719c1b2070ad565ac9dd76c02"
},
{
"name": "https://github.com/samtools/htslib/releases/tag/1.21.2",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/releases/tag/1.21.2"
},
{
"name": "https://github.com/samtools/htslib/releases/tag/1.22.3",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/releases/tag/1.22.3"
},
{
"name": "https://github.com/samtools/htslib/releases/tag/1.23.2",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/releases/tag/1.23.2"
},
{
"name": "https://github.com/samtools/htslib/releases/tag/1.24",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/releases/tag/1.24"
}
],
"source": {
"advisory": "GHSA-4hjq-r829-8c8v",
"discovery": "UNKNOWN"
},
"title": "HTSlib: Heap write overflow in HTSlib FASTA index handling"
}
},
"cveMetadata": {
"assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"assignerShortName": "GitHub_M",
"cveId": "CVE-2026-62256",
"datePublished": "2026-11-19T15:52:04.669Z",
"dateReserved": "2026-07-13T17:09:57.573Z",
"dateUpdated": "2026-11-19T15:52:04.669Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-62255 (GCVE-0-2026-62255)
Vulnerability from nvd – Published: 2026-11-19 15:45 – Updated: 2026-11-19 18:42
VLAI
EPSS
VEX
Title
HTSlib: Heap write overflow in HTSlib CRAM index handling
Summary
HTSlib is a library for reading and writing bioinformatics file formats. Prior to 1.21.2, 1.22.3, 1.23.2, and 1.24, cram_index_load does not verify that the number of reference sequences in a CRAM .crai index does not exceed the CRAM header reference count. A malformed index can drive unbounded index-array allocation, and when the number of references in the index is within two of INT_MAX, the growth calculation can wrap, read beyond a heap buffer, and use the resulting value as a pointer for an unchecked memory write. Any region query can trigger the flaw, causing denial of service or memory corruption. This issue is fixed in versions 1.21.2, 1.22.3, 1.23.2, and 1.24.
Severity
SSVC
Exploitation: poc
Automatable: no
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-11-19 18:40 UTC
CWE
Assigner
References
10 references
| URL | Tags |
|---|---|
| https://github.com/samtools/htslib/security/advis… | x_refsource_CONFIRM |
| https://github.com/samtools/htslib/pull/2029 | x_refsource_MISC |
| https://github.com/samtools/htslib/commit/08fbbce… | x_refsource_MISC |
| https://github.com/samtools/htslib/commit/57e1a07… | x_refsource_MISC |
| https://github.com/samtools/htslib/commit/8a2394e… | x_refsource_MISC |
| https://github.com/samtools/htslib/commit/924e217… | x_refsource_MISC |
| https://github.com/samtools/htslib/releases/tag/1.21.2 | x_refsource_MISC |
| https://github.com/samtools/htslib/releases/tag/1.22.3 | x_refsource_MISC |
| https://github.com/samtools/htslib/releases/tag/1.23.2 | x_refsource_MISC |
| https://github.com/samtools/htslib/releases/tag/1.24 | x_refsource_MISC |
Impacted products
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-62255",
"options": [
{
"Exploitation": "poc"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-11-19T18:40:34.842826Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-11-19T18:42:06.074Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"references": [
{
"tags": [
"exploit"
],
"url": "https://github.com/samtools/htslib/pull/2029"
}
],
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"product": "htslib",
"vendor": "samtools",
"versions": [
{
"status": "affected",
"version": "\u003c 1.21.2"
},
{
"status": "affected",
"version": "\u003e= 1.22.0, \u003c 1.22.3"
},
{
"status": "affected",
"version": "\u003e= 1.23.0, \u003c 1.23.2"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "HTSlib is a library for reading and writing bioinformatics file formats. Prior to 1.21.2, 1.22.3, 1.23.2, and 1.24, cram_index_load does not verify that the number of reference sequences in a CRAM .crai index does not exceed the CRAM header reference count. A malformed index can drive unbounded index-array allocation, and when the number of references in the index is within two of INT_MAX, the growth calculation can wrap, read beyond a heap buffer, and use the resulting value as a pointer for an unchecked memory write. Any region query can trigger the flaw, causing denial of service or memory corruption. This issue is fixed in versions 1.21.2, 1.22.3, 1.23.2, and 1.24."
}
],
"metrics": [
{
"cvssV4_0": {
"attackComplexity": "LOW",
"attackRequirements": "NONE",
"attackVector": "NETWORK",
"baseScore": 7.1,
"baseSeverity": "HIGH",
"privilegesRequired": "NONE",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "PASSIVE",
"vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N",
"version": "4.0",
"vulnAvailabilityImpact": "LOW",
"vulnConfidentialityImpact": "NONE",
"vulnIntegrityImpact": "HIGH"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-122",
"description": "CWE-122: Heap-based Buffer Overflow",
"lang": "en",
"type": "CWE"
}
]
},
{
"descriptions": [
{
"cweId": "CWE-125",
"description": "CWE-125: Out-of-bounds Read",
"lang": "en",
"type": "CWE"
}
]
},
{
"descriptions": [
{
"cweId": "CWE-787",
"description": "CWE-787: Out-of-bounds Write",
"lang": "en",
"type": "CWE"
}
]
},
{
"descriptions": [
{
"cweId": "CWE-789",
"description": "CWE-789: Memory Allocation with Excessive Size Value",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-19T15:45:54.865Z",
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M"
},
"references": [
{
"name": "https://github.com/samtools/htslib/security/advisories/GHSA-28r7-prwc-hf5c",
"tags": [
"x_refsource_CONFIRM"
],
"url": "https://github.com/samtools/htslib/security/advisories/GHSA-28r7-prwc-hf5c"
},
{
"name": "https://github.com/samtools/htslib/pull/2029",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/pull/2029"
},
{
"name": "https://github.com/samtools/htslib/commit/08fbbceefdfac073e768c1fce593181ca7379222",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/commit/08fbbceefdfac073e768c1fce593181ca7379222"
},
{
"name": "https://github.com/samtools/htslib/commit/57e1a0763c9a5f34a1d1ab9deb3a3ad2bd8fe11d",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/commit/57e1a0763c9a5f34a1d1ab9deb3a3ad2bd8fe11d"
},
{
"name": "https://github.com/samtools/htslib/commit/8a2394e63c9bdd758cc6a7de04c5e2ee7acc8e65",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/commit/8a2394e63c9bdd758cc6a7de04c5e2ee7acc8e65"
},
{
"name": "https://github.com/samtools/htslib/commit/924e21755d0b5db7a33f1920d20c0e441667d22f",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/commit/924e21755d0b5db7a33f1920d20c0e441667d22f"
},
{
"name": "https://github.com/samtools/htslib/releases/tag/1.21.2",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/releases/tag/1.21.2"
},
{
"name": "https://github.com/samtools/htslib/releases/tag/1.22.3",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/releases/tag/1.22.3"
},
{
"name": "https://github.com/samtools/htslib/releases/tag/1.23.2",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/releases/tag/1.23.2"
},
{
"name": "https://github.com/samtools/htslib/releases/tag/1.24",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/releases/tag/1.24"
}
],
"source": {
"advisory": "GHSA-28r7-prwc-hf5c",
"discovery": "UNKNOWN"
},
"title": "HTSlib: Heap write overflow in HTSlib CRAM index handling"
}
},
"cveMetadata": {
"assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"assignerShortName": "GitHub_M",
"cveId": "CVE-2026-62255",
"datePublished": "2026-11-19T15:45:54.865Z",
"dateReserved": "2026-07-13T17:09:57.573Z",
"dateUpdated": "2026-11-19T18:42:06.074Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-116742 (GCVE-0-2026-116742)
Vulnerability from nvd – Published: 2026-10-26 21:52 – Updated: 2026-10-27 14:16
VLAI
EPSS
VEX
Title
HTSlib through 1.24 Heap Out-of-Bounds Write via Truncated .gzi Index Count
Summary
HTSlib through 1.24 contains a heap out-of-bounds write and read vulnerability in bgzf_index_load_hfile() in bgzf.c that allows attackers to corrupt heap memory by supplying a crafted .gzi index entry count. A count of 0xFFFFFFFF truncates noffs to zero, causing writes past a malloc(0) buffer and an offs[-1] read in bgzf_useek(), resulting in heap corruption or crashes in tools like samtools and bcftools.
Severity
4.4 (Medium)
SSVC
Exploitation: none
Automatable: no
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-10-27 13:42 UTC
CWE
- CWE-197 - Numeric Truncation Error
Assigner
References
7 references
| URL | Tags |
|---|---|
| https://github.com/samtools/htslib/pull/2057 | issue-trackingpatch |
| https://github.com/samtools/htslib/commit/18dddf0… | patch |
| https://github.com/samtools/htslib | product |
| https://github.com/samtools/htslib/blob/1.24/bgzf… | technical-description |
| https://hackmd.io/@haindpwn/htslib-bgzf-gzi-int-t… | third-party-advisory |
| https://github.com/samtools/htslib/issues/2113 | issue-tracking |
| https://www.vulncheck.com/advisories/htslib-throu… | third-party-advisory |
Impacted products
Date Public
2026-07-31 00:00
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-116742",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-10-27T13:42:04.833817Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-10-27T14:16:48.820Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"defaultStatus": "unaffected",
"packageURL": "pkg:github/samtools/htslib",
"product": "htslib",
"repo": "https://github.com/samtools/htslib",
"vendor": "samtools",
"versions": [
{
"lessThanOrEqual": "1.24",
"status": "affected",
"version": "0",
"versionType": "custom"
}
]
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:htslib:htslib:*:*:*:*:*:*:*:*",
"versionEndIncluding": "1.24",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
]
}
],
"credits": [
{
"lang": "en",
"type": "finder",
"value": "HaiND from the Post and Telecommunication Institute of Technology"
},
{
"lang": "en",
"type": "remediation developer",
"value": "daviesrob"
}
],
"datePublic": "2026-07-31T00:00:00.000Z",
"descriptions": [
{
"lang": "en",
"value": "HTSlib through 1.24 contains a heap out-of-bounds write and read vulnerability in bgzf_index_load_hfile() in bgzf.c that allows attackers to corrupt heap memory by supplying a crafted .gzi index entry count. A count of 0xFFFFFFFF truncates noffs to zero, causing writes past a malloc(0) buffer and an offs[-1] read in bgzf_useek(), resulting in heap corruption or crashes in tools like samtools and bcftools."
}
],
"metrics": [
{
"cvssV4_0": {
"attackComplexity": "LOW",
"attackRequirements": "NONE",
"attackVector": "LOCAL",
"baseScore": 4.8,
"baseSeverity": "MEDIUM",
"privilegesRequired": "NONE",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "PASSIVE",
"vectorString": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N",
"version": "4.0",
"vulnAvailabilityImpact": "LOW",
"vulnConfidentialityImpact": "NONE",
"vulnIntegrityImpact": "LOW"
},
"format": "CVSS"
},
{
"cvssV3_1": {
"attackComplexity": "LOW",
"attackVector": "LOCAL",
"availabilityImpact": "LOW",
"baseScore": 4.4,
"baseSeverity": "MEDIUM",
"confidentialityImpact": "NONE",
"integrityImpact": "LOW",
"privilegesRequired": "NONE",
"scope": "UNCHANGED",
"userInteraction": "REQUIRED",
"vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L",
"version": "3.1"
},
"format": "CVSS"
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-197",
"description": "Numeric Truncation Error",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-10-26T21:52:41.511Z",
"orgId": "83251b91-4cc7-4094-a5c7-464a1b83ea10",
"shortName": "VulnCheck"
},
"references": [
{
"name": "Pull Request #2057",
"tags": [
"issue-tracking",
"patch"
],
"url": "https://github.com/samtools/htslib/pull/2057"
},
{
"name": "Patch Commit",
"tags": [
"patch"
],
"url": "https://github.com/samtools/htslib/commit/18dddf02bb2c0053b32acec427723555a24b2873"
},
{
"tags": [
"product"
],
"url": "https://github.com/samtools/htslib"
},
{
"tags": [
"technical-description"
],
"url": "https://github.com/samtools/htslib/blob/1.24/bgzf.c#L2504"
},
{
"tags": [
"third-party-advisory"
],
"url": "https://hackmd.io/@haindpwn/htslib-bgzf-gzi-int-truncation-oob"
},
{
"tags": [
"issue-tracking"
],
"url": "https://github.com/samtools/htslib/issues/2113"
},
{
"name": "VulnCheck Advisory: HTSlib through 1.24 Heap Out-of-Bounds Write via Truncated .gzi Index Count",
"tags": [
"third-party-advisory"
],
"url": "https://www.vulncheck.com/advisories/htslib-through-1.24-heap-out-of-bounds-write-via-truncated-gzi-index-count"
}
],
"title": "HTSlib through 1.24 Heap Out-of-Bounds Write via Truncated .gzi Index Count",
"x_generator": {
"engine": "vulncheck-endgame"
}
}
},
"cveMetadata": {
"assignerOrgId": "83251b91-4cc7-4094-a5c7-464a1b83ea10",
"assignerShortName": "VulnCheck",
"cveId": "CVE-2026-116742",
"datePublished": "2026-10-26T21:52:41.511Z",
"dateReserved": "2026-10-26T20:23:36.636Z",
"dateUpdated": "2026-10-27T14:16:48.820Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-31973 (GCVE-0-2026-31973)
Vulnerability from nvd – Published: 2026-03-18 20:34 – Updated: 2026-03-19 16:14
VLAI
EPSS
VEX
Title
NULL pointer dereference in samtools cram-size
Summary
SAMtools is a program for reading, manipulating and writing bioinformatics file formats. Starting in version 1.17, in the cram-size command, used to write information about how well CRAM files are compressed, a check to see if the `cram_decode_compression_header()` was missing. If the function returned an error, this could lead to a NULL pointer dereference. Exploiting this bug causes a NULL pointer dereference. Typically this will cause the program to crash. Versions 1.23.1, 1.22.2 and 1.21.1 include fixes for this issue. There is no workaround for this issue.
Severity
SSVC
Exploitation: none
Automatable: no
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-03-19 16:14 UTC
CWE
- CWE-476 - NULL Pointer Dereference
Assigner
References
3 references
| URL | Tags |
|---|---|
| https://github.com/samtools/samtools/security/adv… | x_refsource_CONFIRM |
| https://github.com/samtools/samtools/commit/06fc2… | x_refsource_MISC |
| http://www.openwall.com/lists/oss-security/2026/0… |
Impacted products
{
"containers": {
"adp": [
{
"providerMetadata": {
"dateUpdated": "2026-03-18T23:08:20.721Z",
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE"
},
"references": [
{
"url": "http://www.openwall.com/lists/oss-security/2026/03/18/12"
}
],
"title": "CVE Program Container"
},
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-31973",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-03-19T16:14:49.923184Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-03-19T16:14:59.386Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"product": "samtools",
"vendor": "samtools",
"versions": [
{
"status": "affected",
"version": "\u003e= 1.17, \u003c 1.21.1"
},
{
"status": "affected",
"version": "\u003e= 1.22, \u003c 1.22.2"
},
{
"status": "affected",
"version": "= 1.23"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "SAMtools is a program for reading, manipulating and writing bioinformatics file formats. Starting in version 1.17, in the cram-size command, used to write information about how well CRAM files are compressed, a check to see if the `cram_decode_compression_header()` was missing. If the function returned an error, this could lead to a NULL pointer dereference. Exploiting this bug causes a NULL pointer dereference. Typically this will cause the program to crash. Versions 1.23.1, 1.22.2 and 1.21.1 include fixes for this issue. There is no workaround for this issue."
}
],
"metrics": [
{
"cvssV4_0": {
"attackComplexity": "LOW",
"attackRequirements": "NONE",
"attackVector": "NETWORK",
"baseScore": 6.9,
"baseSeverity": "MEDIUM",
"privilegesRequired": "NONE",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "NONE",
"vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N",
"version": "4.0",
"vulnAvailabilityImpact": "LOW",
"vulnConfidentialityImpact": "NONE",
"vulnIntegrityImpact": "LOW"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-476",
"description": "CWE-476: NULL Pointer Dereference",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-03-18T20:34:00.846Z",
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M"
},
"references": [
{
"name": "https://github.com/samtools/samtools/security/advisories/GHSA-x86f-q6fj-cm43",
"tags": [
"x_refsource_CONFIRM"
],
"url": "https://github.com/samtools/samtools/security/advisories/GHSA-x86f-q6fj-cm43"
},
{
"name": "https://github.com/samtools/samtools/commit/06fc2a219b3d7c94d3f412c09f6d1efd51199f2f",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/samtools/commit/06fc2a219b3d7c94d3f412c09f6d1efd51199f2f"
}
],
"source": {
"advisory": "GHSA-x86f-q6fj-cm43",
"discovery": "UNKNOWN"
},
"title": "NULL pointer dereference in samtools cram-size"
}
},
"cveMetadata": {
"assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"assignerShortName": "GitHub_M",
"cveId": "CVE-2026-31973",
"datePublished": "2026-03-18T20:34:00.846Z",
"dateReserved": "2026-03-10T15:40:10.486Z",
"dateUpdated": "2026-03-19T16:14:59.386Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-31972 (GCVE-0-2026-31972)
Vulnerability from nvd – Published: 2026-03-18 20:32 – Updated: 2026-03-19 14:22
VLAI
EPSS
VEX
Title
samtools mpileup has use-after-free leading to an invalid read
Summary
SAMtools is a program for reading, manipulating and writing bioinformatics file formats. The `mpileup` command outputs DNA sequences that have been aligned against a known reference. On each output line it writes the reference position, optionally the reference DNA base at that position (obtained from a separate file) and all of the DNA bases that aligned to that position. As the output is ordered by position, reference data that is no longer needed is discarded once it has been printed out. Under certain conditions the data could be discarded too early, leading to an attempt to read from a pointer to freed memory. This bug may allow information about program state to be leaked. It may also cause a program crash through an attempt to access invalid memory. This bug is fixed in versions 1.21.1 and 1.22. There is no workaround for this issue.
Severity
SSVC
Exploitation: none
Automatable: yes
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-03-19 14:22 UTC
CWE
- CWE-416 - Use After Free
Assigner
References
3 references
| URL | Tags |
|---|---|
| https://github.com/samtools/samtools/security/adv… | x_refsource_CONFIRM |
| https://github.com/samtools/samtools/commit/3036e… | x_refsource_MISC |
| http://www.openwall.com/lists/oss-security/2026/0… |
{
"containers": {
"adp": [
{
"providerMetadata": {
"dateUpdated": "2026-03-18T23:08:19.727Z",
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE"
},
"references": [
{
"url": "http://www.openwall.com/lists/oss-security/2026/03/18/11"
}
],
"title": "CVE Program Container"
},
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-31972",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "yes"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-03-19T14:22:51.070597Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-03-19T14:22:59.713Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"product": "samtools",
"vendor": "samtools",
"versions": [
{
"status": "affected",
"version": "\u003c 1.21.1"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "SAMtools is a program for reading, manipulating and writing bioinformatics file formats. The `mpileup` command outputs DNA sequences that have been aligned against a known reference. On each output line it writes the reference position, optionally the reference DNA base at that position (obtained from a separate file) and all of the DNA bases that aligned to that position. As the output is ordered by position, reference data that is no longer needed is discarded once it has been printed out. Under certain conditions the data could be discarded too early, leading to an attempt to read from a pointer to freed memory. This bug may allow information about program state to be leaked. It may also cause a program crash through an attempt to access invalid memory. This bug is fixed in versions 1.21.1 and 1.22. There is no workaround for this issue."
}
],
"metrics": [
{
"cvssV4_0": {
"attackComplexity": "LOW",
"attackRequirements": "NONE",
"attackVector": "NETWORK",
"baseScore": 6.9,
"baseSeverity": "MEDIUM",
"privilegesRequired": "NONE",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "NONE",
"vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N",
"version": "4.0",
"vulnAvailabilityImpact": "LOW",
"vulnConfidentialityImpact": "LOW",
"vulnIntegrityImpact": "NONE"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-416",
"description": "CWE-416: Use After Free",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-03-18T20:32:29.862Z",
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M"
},
"references": [
{
"name": "https://github.com/samtools/samtools/security/advisories/GHSA-72c8-4jf3-f27p",
"tags": [
"x_refsource_CONFIRM"
],
"url": "https://github.com/samtools/samtools/security/advisories/GHSA-72c8-4jf3-f27p"
},
{
"name": "https://github.com/samtools/samtools/commit/3036eb9af945fcef359427a2d359855553da4adf",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/samtools/commit/3036eb9af945fcef359427a2d359855553da4adf"
}
],
"source": {
"advisory": "GHSA-72c8-4jf3-f27p",
"discovery": "UNKNOWN"
},
"title": "samtools mpileup has use-after-free leading to an invalid read"
}
},
"cveMetadata": {
"assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"assignerShortName": "GitHub_M",
"cveId": "CVE-2026-31972",
"datePublished": "2026-03-18T20:32:29.862Z",
"dateReserved": "2026-03-10T15:40:10.486Z",
"dateUpdated": "2026-03-19T14:22:59.713Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-31971 (GCVE-0-2026-31971)
Vulnerability from nvd – Published: 2026-03-18 19:55 – Updated: 2026-03-18 20:15
VLAI
EPSS
VEX
Title
HTSlib CRAM decoder vulnerable to buffer overflow
Summary
HTSlib is a library for reading and writing bioinformatics file formats. CRAM is a compressed format which stores DNA sequence alignment data using a variety of encodings and compression methods. When reading data encoded using the `BYTE_ARRAY_LEN` method, the `cram_byte_array_len_decode()` failed to validate that the amount of data being unpacked matched the size of the output buffer where it was to be stored. Depending on the data series being read, this could result either in a heap or a stack overflow with attacker-controlled bytes. Depending on the data stream this could result either in a heap buffer overflow or a stack overflow. If a user opens a file crafted to exploit this issue it could lead to the program crashing, overwriting of data structures on the heap or stack in ways not expected by the program, or changing the control flow of the program. It may be possible to use this to obtain arbitrary code execution. Versions 1.23.1, 1.22.2 and 1.21.1 include fixes for this issue. There is no workaround for this issue.
Severity
SSVC
Exploitation: none
Automatable: no
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-03-18 20:15 UTC
CWE
Assigner
References
2 references
| URL | Tags |
|---|---|
| https://github.com/samtools/htslib/security/advis… | x_refsource_CONFIRM |
| https://github.com/samtools/htslib/commit/01cd003… | x_refsource_MISC |
Impacted products
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-31971",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-03-18T20:15:12.038273Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-03-18T20:15:22.414Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"product": "htslib",
"vendor": "samtools",
"versions": [
{
"status": "affected",
"version": "\u003c 1.21.1"
},
{
"status": "affected",
"version": "\u003e= 1.22, \u003c 1.22.2"
},
{
"status": "affected",
"version": "= 1.23"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "HTSlib is a library for reading and writing bioinformatics file formats. CRAM is a compressed format which stores DNA sequence alignment data using a variety of encodings and compression methods. When reading data encoded using the `BYTE_ARRAY_LEN` method, the `cram_byte_array_len_decode()` failed to validate that the amount of data being unpacked matched the size of the output buffer where it was to be stored. Depending on the data series being read, this could result either in a heap or a stack overflow with attacker-controlled bytes. Depending on the data stream this could result either in a heap buffer overflow or a stack overflow. If a user opens a file crafted to exploit this issue it could lead to the program crashing, overwriting of data structures on the heap or stack in ways not expected by the program, or changing the control flow of the program. It may be possible to use this to obtain arbitrary code execution. Versions 1.23.1, 1.22.2 and 1.21.1 include fixes for this issue. There is no workaround for this issue."
}
],
"metrics": [
{
"cvssV4_0": {
"attackComplexity": "LOW",
"attackRequirements": "NONE",
"attackVector": "NETWORK",
"baseScore": 7.1,
"baseSeverity": "HIGH",
"privilegesRequired": "NONE",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "PASSIVE",
"vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N",
"version": "4.0",
"vulnAvailabilityImpact": "LOW",
"vulnConfidentialityImpact": "NONE",
"vulnIntegrityImpact": "HIGH"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-121",
"description": "CWE-121: Stack-based Buffer Overflow",
"lang": "en",
"type": "CWE"
}
]
},
{
"descriptions": [
{
"cweId": "CWE-122",
"description": "CWE-122: Heap-based Buffer Overflow",
"lang": "en",
"type": "CWE"
}
]
},
{
"descriptions": [
{
"cweId": "CWE-787",
"description": "CWE-787: Out-of-bounds Write",
"lang": "en",
"type": "CWE"
}
]
},
{
"descriptions": [
{
"cweId": "CWE-1284",
"description": "CWE-1284: Improper Validation of Specified Quantity in Input",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-03-18T19:55:20.379Z",
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M"
},
"references": [
{
"name": "https://github.com/samtools/htslib/security/advisories/GHSA-jvx4-4wq7-6fmh",
"tags": [
"x_refsource_CONFIRM"
],
"url": "https://github.com/samtools/htslib/security/advisories/GHSA-jvx4-4wq7-6fmh"
},
{
"name": "https://github.com/samtools/htslib/commit/01cd003b46fa2ebea4d9be5475b11217eb4c11be",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/commit/01cd003b46fa2ebea4d9be5475b11217eb4c11be"
}
],
"source": {
"advisory": "GHSA-jvx4-4wq7-6fmh",
"discovery": "UNKNOWN"
},
"title": "HTSlib CRAM decoder vulnerable to buffer overflow"
}
},
"cveMetadata": {
"assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"assignerShortName": "GitHub_M",
"cveId": "CVE-2026-31971",
"datePublished": "2026-03-18T19:55:20.379Z",
"dateReserved": "2026-03-10T15:40:10.486Z",
"dateUpdated": "2026-03-18T20:15:22.414Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-31970 (GCVE-0-2026-31970)
Vulnerability from nvd – Published: 2026-03-18 19:53 – Updated: 2026-03-18 23:08
VLAI
EPSS
VEX
Title
HTSlib BGZF index file reader has a heap buffer overflow
Summary
HTSlib is a library for reading and writing bioinformatics file formats. GZI files are used to index block-compressed GZIP [BGZF] files. In the GZI loading function, `bgzf_index_load_hfile()`, it was possible to trigger an integer overflow, leading to an under- or zero-sized buffer being allocated to store the index. Sixteen zero bytes would then be written to this buffer, and, depending on the result of the overflow the rest of the file may also be loaded into the buffer as well. If the function did attempt to load the data, it would eventually fail due to not reading the expected number of records, and then try to free the overflowed heap buffer. Exploiting this bug causes a heap buffer overflow. If a user opens a file crafted to exploit this issue, it could lead to the program crashing, or overwriting of data and heap structures in ways not expected by the program. It may be possible to use this to obtain arbitrary code execution. Versions 1.23.1, 1.22.2 and 1.21.1 include fixes for this issue. The easiest work-around is to discard any `.gzi` index files from untrusted sources, and use the `bgzip -r` option to recreate them.
Severity
SSVC
Exploitation: none
Automatable: no
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-03-18 20:14 UTC
CWE
Assigner
References
3 references
| URL | Tags |
|---|---|
| https://github.com/samtools/htslib/security/advis… | x_refsource_CONFIRM |
| https://github.com/samtools/htslib/commit/6dd0d7d… | x_refsource_MISC |
| http://www.openwall.com/lists/oss-security/2026/03/18/9 |
Impacted products
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-31970",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-03-18T20:14:03.491471Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-03-18T20:14:13.390Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
},
{
"providerMetadata": {
"dateUpdated": "2026-03-18T23:08:18.668Z",
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE"
},
"references": [
{
"url": "http://www.openwall.com/lists/oss-security/2026/03/18/9"
}
],
"title": "CVE Program Container"
}
],
"cna": {
"affected": [
{
"product": "htslib",
"vendor": "samtools",
"versions": [
{
"status": "affected",
"version": "\u003c 1.21.1"
},
{
"status": "affected",
"version": "\u003e= 1.22, \u003c 1.22.2"
},
{
"status": "affected",
"version": "= 1.23"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "HTSlib is a library for reading and writing bioinformatics file formats. GZI files are used to index block-compressed GZIP [BGZF] files. In the GZI loading function, `bgzf_index_load_hfile()`, it was possible to trigger an integer overflow, leading to an under- or zero-sized buffer being allocated to store the index. Sixteen zero bytes would then be written to this buffer, and, depending on the result of the overflow the rest of the file may also be loaded into the buffer as well. If the function did attempt to load the data, it would eventually fail due to not reading the expected number of records, and then try to free the overflowed heap buffer. Exploiting this bug causes a heap buffer overflow. If a user opens a file crafted to exploit this issue, it could lead to the program crashing, or overwriting of data and heap structures in ways not expected by the program. It may be possible to use this to obtain arbitrary code execution. Versions 1.23.1, 1.22.2 and 1.21.1 include fixes for this issue. The easiest work-around is to discard any `.gzi` index files from untrusted sources, and use the `bgzip -r` option to recreate them."
}
],
"metrics": [
{
"cvssV4_0": {
"attackComplexity": "LOW",
"attackRequirements": "NONE",
"attackVector": "NETWORK",
"baseScore": 7.1,
"baseSeverity": "HIGH",
"privilegesRequired": "NONE",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "PASSIVE",
"vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N",
"version": "4.0",
"vulnAvailabilityImpact": "LOW",
"vulnConfidentialityImpact": "NONE",
"vulnIntegrityImpact": "HIGH"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-122",
"description": "CWE-122: Heap-based Buffer Overflow",
"lang": "en",
"type": "CWE"
}
]
},
{
"descriptions": [
{
"cweId": "CWE-131",
"description": "CWE-131: Incorrect Calculation of Buffer Size",
"lang": "en",
"type": "CWE"
}
]
},
{
"descriptions": [
{
"cweId": "CWE-190",
"description": "CWE-190: Integer Overflow or Wraparound",
"lang": "en",
"type": "CWE"
}
]
},
{
"descriptions": [
{
"cweId": "CWE-787",
"description": "CWE-787: Out-of-bounds Write",
"lang": "en",
"type": "CWE"
}
]
},
{
"descriptions": [
{
"cweId": "CWE-1284",
"description": "CWE-1284: Improper Validation of Specified Quantity in Input",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-03-18T19:53:18.719Z",
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M"
},
"references": [
{
"name": "https://github.com/samtools/htslib/security/advisories/GHSA-p345-84hx-fq6q",
"tags": [
"x_refsource_CONFIRM"
],
"url": "https://github.com/samtools/htslib/security/advisories/GHSA-p345-84hx-fq6q"
},
{
"name": "https://github.com/samtools/htslib/commit/6dd0d7d0e9e7e2e173a28969e624db8bc8bb5828",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/commit/6dd0d7d0e9e7e2e173a28969e624db8bc8bb5828"
}
],
"source": {
"advisory": "GHSA-p345-84hx-fq6q",
"discovery": "UNKNOWN"
},
"title": "HTSlib BGZF index file reader has a heap buffer overflow"
}
},
"cveMetadata": {
"assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"assignerShortName": "GitHub_M",
"cveId": "CVE-2026-31970",
"datePublished": "2026-03-18T19:53:18.719Z",
"dateReserved": "2026-03-10T15:40:10.485Z",
"dateUpdated": "2026-03-18T23:08:18.668Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-31969 (GCVE-0-2026-31969)
Vulnerability from nvd – Published: 2026-03-18 19:47 – Updated: 2026-03-18 20:12
VLAI
EPSS
VEX
Title
HTSlib CRAM decoder has a heap buffer overflow
Summary
HTSlib is a library for reading and writing bioinformatics file formats. CRAM is a compressed format which stores DNA sequence alignment data using a variety of encodings and compression methods. When reading data encoded using the `BYTE_ARRAY_STOP` method, an out-by-one error in the `cram_byte_array_stop_decode_char()` function check for a full output buffer could result in a single attacker-controlled byte being written beyond the end of a heap allocation. Exploiting this bug causes a heap buffer overflow. If a user opens a file crafted to exploit this issue, it could lead to the program crashing, or overwriting of data and heap structures in ways not expected by the program. It may be possible to use this to obtain arbitrary code execution. Versions 1.23.1, 1.22.2 and 1.21.1 include fixes for this issue. There is no workaround for this issue.
Severity
SSVC
Exploitation: none
Automatable: no
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-03-18 20:12 UTC
Assigner
References
2 references
| URL | Tags |
|---|---|
| https://github.com/samtools/htslib/security/advis… | x_refsource_CONFIRM |
| https://github.com/samtools/htslib/commit/88cdf69… | x_refsource_MISC |
Impacted products
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-31969",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-03-18T20:12:27.506059Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-03-18T20:12:53.495Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"product": "htslib",
"vendor": "samtools",
"versions": [
{
"status": "affected",
"version": "\u003c 1.21.1"
},
{
"status": "affected",
"version": "\u003e= 1.22, \u003c 1.22.2"
},
{
"status": "affected",
"version": "= 1.23"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "HTSlib is a library for reading and writing bioinformatics file formats. CRAM is a compressed format which stores DNA sequence alignment data using a variety of encodings and compression methods. When reading data encoded using the `BYTE_ARRAY_STOP` method, an out-by-one error in the `cram_byte_array_stop_decode_char()` function check for a full output buffer could result in a single attacker-controlled byte being written beyond the end of a heap allocation. Exploiting this bug causes a heap buffer overflow. If a user opens a file crafted to exploit this issue, it could lead to the program crashing, or overwriting of data and heap structures in ways not expected by the program. It may be possible to use this to obtain arbitrary code execution. Versions 1.23.1, 1.22.2 and 1.21.1 include fixes for this issue. There is no workaround for this issue."
}
],
"metrics": [
{
"cvssV4_0": {
"attackComplexity": "LOW",
"attackRequirements": "NONE",
"attackVector": "NETWORK",
"baseScore": 7.1,
"baseSeverity": "HIGH",
"privilegesRequired": "NONE",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "PASSIVE",
"vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N",
"version": "4.0",
"vulnAvailabilityImpact": "LOW",
"vulnConfidentialityImpact": "NONE",
"vulnIntegrityImpact": "HIGH"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-122",
"description": "CWE-122: Heap-based Buffer Overflow",
"lang": "en",
"type": "CWE"
}
]
},
{
"descriptions": [
{
"cweId": "CWE-787",
"description": "CWE-787: Out-of-bounds Write",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-03-18T19:47:44.893Z",
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M"
},
"references": [
{
"name": "https://github.com/samtools/htslib/security/advisories/GHSA-q4cj-f4h5-fqgc",
"tags": [
"x_refsource_CONFIRM"
],
"url": "https://github.com/samtools/htslib/security/advisories/GHSA-q4cj-f4h5-fqgc"
},
{
"name": "https://github.com/samtools/htslib/commit/88cdf69e4b83bb550ab4f6f7134892c2ad1978f4",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/commit/88cdf69e4b83bb550ab4f6f7134892c2ad1978f4"
}
],
"source": {
"advisory": "GHSA-q4cj-f4h5-fqgc",
"discovery": "UNKNOWN"
},
"title": "HTSlib CRAM decoder has a heap buffer overflow"
}
},
"cveMetadata": {
"assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"assignerShortName": "GitHub_M",
"cveId": "CVE-2026-31969",
"datePublished": "2026-03-18T19:47:44.893Z",
"dateReserved": "2026-03-10T15:40:10.485Z",
"dateUpdated": "2026-03-18T20:12:53.495Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-31968 (GCVE-0-2026-31968)
Vulnerability from nvd – Published: 2026-03-18 19:38 – Updated: 2026-03-18 19:57
VLAI
EPSS
VEX
Title
HTSlib CRAM decoder vulnerable to buffer overflow
Summary
HTSlib is a library for reading and writing bioinformatics file formats. CRAM is a compressed format which stores DNA sequence alignment data using a variety of encodings and compression methods. For the `VARINT` and `CONST` encodings, incomplete validation of the context in which the encodings were used could result in up to eight bytes being written beyond the end of a heap allocation, or up to eight bytes being written to the location of a one byte variable on the stack, possibly causing the values to adjacent variables to change unexpectedly. Depending on the data stream this could result either in a heap buffer overflow or a stack overflow. If a user opens a file crafted to exploit this issue it could lead to the program crashing, overwriting of data structures on the heap or stack in ways not expected by the program, or changing the control flow of the program. It may be possible to use this to obtain arbitrary code execution. Versions 1.23.1, 1.22.2 and 1.21.1 include fixes for this issue. There is no workaround for this issue.
Severity
SSVC
Exploitation: none
Automatable: yes
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-03-18 19:57 UTC
CWE
Assigner
References
2 references
| URL | Tags |
|---|---|
| https://github.com/samtools/htslib/security/advis… | x_refsource_CONFIRM |
| https://github.com/samtools/htslib/commit/0ec4367… | x_refsource_MISC |
Impacted products
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-31968",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "yes"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-03-18T19:57:24.242380Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-03-18T19:57:36.668Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"product": "htslib",
"vendor": "samtools",
"versions": [
{
"status": "affected",
"version": "\u003c 1.21.1"
},
{
"status": "affected",
"version": "\u003e= 1.22, \u003c 1.22.2"
},
{
"status": "affected",
"version": "= 1.23"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "HTSlib is a library for reading and writing bioinformatics file formats. CRAM is a compressed format which stores DNA sequence alignment data using a variety of encodings and compression methods. For the `VARINT` and `CONST` encodings, incomplete validation of the context in which the encodings were used could result in up to eight bytes being written beyond the end of a heap allocation, or up to eight bytes being written to the location of a one byte variable on the stack, possibly causing the values to adjacent variables to change unexpectedly. Depending on the data stream this could result either in a heap buffer overflow or a stack overflow. If a user opens a file crafted to exploit this issue it could lead to the program crashing, overwriting of data structures on the heap or stack in ways not expected by the program, or changing the control flow of the program. It may be possible to use this to obtain arbitrary code execution. Versions 1.23.1, 1.22.2 and 1.21.1 include fixes for this issue. There is no workaround for this issue."
}
],
"metrics": [
{
"cvssV4_0": {
"attackComplexity": "LOW",
"attackRequirements": "NONE",
"attackVector": "NETWORK",
"baseScore": 8.8,
"baseSeverity": "HIGH",
"privilegesRequired": "NONE",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "NONE",
"vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N",
"version": "4.0",
"vulnAvailabilityImpact": "LOW",
"vulnConfidentialityImpact": "NONE",
"vulnIntegrityImpact": "HIGH"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-121",
"description": "CWE-121: Stack-based Buffer Overflow",
"lang": "en",
"type": "CWE"
}
]
},
{
"descriptions": [
{
"cweId": "CWE-122",
"description": "CWE-122: Heap-based Buffer Overflow",
"lang": "en",
"type": "CWE"
}
]
},
{
"descriptions": [
{
"cweId": "CWE-787",
"description": "CWE-787: Out-of-bounds Write",
"lang": "en",
"type": "CWE"
}
]
},
{
"descriptions": [
{
"cweId": "CWE-843",
"description": "CWE-843: Access of Resource Using Incompatible Type (\u0027Type Confusion\u0027)",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-03-18T19:38:11.370Z",
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M"
},
"references": [
{
"name": "https://github.com/samtools/htslib/security/advisories/GHSA-cgcm-c9r2-p57j",
"tags": [
"x_refsource_CONFIRM"
],
"url": "https://github.com/samtools/htslib/security/advisories/GHSA-cgcm-c9r2-p57j"
},
{
"name": "https://github.com/samtools/htslib/commit/0ec436796eca7b4ce7fcc9b77270c102da29bb2e",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/commit/0ec436796eca7b4ce7fcc9b77270c102da29bb2e"
}
],
"source": {
"advisory": "GHSA-cgcm-c9r2-p57j",
"discovery": "UNKNOWN"
},
"title": "HTSlib CRAM decoder vulnerable to buffer overflow"
}
},
"cveMetadata": {
"assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"assignerShortName": "GitHub_M",
"cveId": "CVE-2026-31968",
"datePublished": "2026-03-18T19:38:11.370Z",
"dateReserved": "2026-03-10T15:40:10.485Z",
"dateUpdated": "2026-03-18T19:57:36.668Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-31967 (GCVE-0-2026-31967)
Vulnerability from nvd – Published: 2026-03-18 19:15 – Updated: 2026-03-18 19:58
VLAI
EPSS
VEX
Title
HTSlib CRAM reader has out-of-bounds read due to improper validation of input
Summary
HTSlib is a library for reading and writing bioinformatics file formats. CRAM is a compressed format which stores DNA sequence alignment data. In the `cram_decode_slice()` function called while reading CRAM records, the value of the mate reference id field was not validated. Later use of this value, for example when converting the data to SAM format, could result in the out of bounds array reads when looking up the corresponding reference name. If the array value obtained also happened to be a valid pointer, it would be interpreted as a string and an attempt would be made to write the data as part of the SAM record. This bug may allow information about program state to be leaked. It may also cause a program crash through an attempt to access invalid memory. Versions 1.23.1, 1.22.2 and 1.21.1 include fixes for this issue. There is no workaround for this issue.
Severity
SSVC
Exploitation: none
Automatable: yes
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-03-18 19:58 UTC
Assigner
References
2 references
| URL | Tags |
|---|---|
| https://github.com/samtools/htslib/security/advis… | x_refsource_CONFIRM |
| https://github.com/samtools/htslib/commit/9cefb46… | x_refsource_MISC |
Impacted products
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-31967",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "yes"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-03-18T19:58:48.919498Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-03-18T19:58:55.083Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"product": "htslib",
"vendor": "samtools",
"versions": [
{
"status": "affected",
"version": "\u003c 1.21.1"
},
{
"status": "affected",
"version": "\u003e= 1.22, \u003c 1.22.2"
},
{
"status": "affected",
"version": "= 1.23"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "HTSlib is a library for reading and writing bioinformatics file formats. CRAM is a compressed format which stores DNA sequence alignment data. In the `cram_decode_slice()` function called while reading CRAM records, the value of the mate reference id field was not validated. Later use of this value, for example when converting the data to SAM format, could result in the out of bounds array reads when looking up the corresponding reference name. If the array value obtained also happened to be a valid pointer, it would be interpreted as a string and an attempt would be made to write the data as part of the SAM record. This bug may allow information about program state to be leaked. It may also cause a program crash through an attempt to access invalid memory. Versions 1.23.1, 1.22.2 and 1.21.1 include fixes for this issue. There is no workaround for this issue."
}
],
"metrics": [
{
"cvssV4_0": {
"attackComplexity": "LOW",
"attackRequirements": "NONE",
"attackVector": "NETWORK",
"baseScore": 6.9,
"baseSeverity": "MEDIUM",
"privilegesRequired": "NONE",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "NONE",
"vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N",
"version": "4.0",
"vulnAvailabilityImpact": "LOW",
"vulnConfidentialityImpact": "LOW",
"vulnIntegrityImpact": "NONE"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-125",
"description": "CWE-125: Out-of-bounds Read",
"lang": "en",
"type": "CWE"
}
]
},
{
"descriptions": [
{
"cweId": "CWE-129",
"description": "CWE-129: Improper Validation of Array Index",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-03-18T19:15:48.891Z",
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M"
},
"references": [
{
"name": "https://github.com/samtools/htslib/security/advisories/GHSA-33x5-c6vj-8f2w",
"tags": [
"x_refsource_CONFIRM"
],
"url": "https://github.com/samtools/htslib/security/advisories/GHSA-33x5-c6vj-8f2w"
},
{
"name": "https://github.com/samtools/htslib/commit/9cefb46453ad471e933b8212d4f45920524d3357",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/commit/9cefb46453ad471e933b8212d4f45920524d3357"
}
],
"source": {
"advisory": "GHSA-33x5-c6vj-8f2w",
"discovery": "UNKNOWN"
},
"title": "HTSlib CRAM reader has out-of-bounds read due to improper validation of input"
}
},
"cveMetadata": {
"assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"assignerShortName": "GitHub_M",
"cveId": "CVE-2026-31967",
"datePublished": "2026-03-18T19:15:48.891Z",
"dateReserved": "2026-03-10T15:40:10.485Z",
"dateUpdated": "2026-03-18T19:58:55.083Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-31966 (GCVE-0-2026-31966)
Vulnerability from nvd – Published: 2026-03-18 18:58 – Updated: 2026-03-18 19:58
VLAI
EPSS
VEX
Title
HTSlib CRAM reader has out-of-bounds read due to improper validation of input
Summary
HTSlib is a library for reading and writing bioinformatics file formats. CRAM is a compressed format which stores DNA sequence alignment data. As one method of removing redundant data, CRAM uses reference-based compression so that instead of storing the full sequence for each alignment record it stores a location in an external reference sequence along with a list of differences to the reference at that location as a sequence of "features". When decoding CRAM records, the reference data is stored in a char array, and parts matching the alignment record sequence are copied over as necessary. Due to insufficient validation of the feature data series, it was possible to make the `cram_decode_seq()` function copy data from either before the start, or after the end of the stored reference either into the buffer used to store the output sequence for the cram record, or into the buffer used to build the SAM `MD` tag. This allowed arbitrary data to be leaked to the calling function. This bug may allow information about program state to be leaked. It may also cause a program crash through an attempt to access invalid memory. Versions 1.23.1, 1.22.2 and 1.21.1 include fixes for this issue. There is no workaround for this issue.
Severity
SSVC
Exploitation: none
Automatable: yes
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-03-18 19:58 UTC
Assigner
References
4 references
| URL | Tags |
|---|---|
| https://github.com/samtools/htslib/security/advis… | x_refsource_CONFIRM |
| https://github.com/samtools/htslib/commit/22ec523… | x_refsource_MISC |
| https://github.com/samtools/htslib/commit/2a45eb1… | x_refsource_MISC |
| https://github.com/samtools/htslib/commit/4a5ef25… | x_refsource_MISC |
Impacted products
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-31966",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "yes"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-03-18T19:58:01.811957Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-03-18T19:58:26.525Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"product": "htslib",
"vendor": "samtools",
"versions": [
{
"status": "affected",
"version": "\u003c 1.21.1"
},
{
"status": "affected",
"version": "\u003e= 1.22, \u003c 1.22.2"
},
{
"status": "affected",
"version": "= 1.23"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "HTSlib is a library for reading and writing bioinformatics file formats. CRAM is a compressed format which stores DNA sequence alignment data. As one method of removing redundant data, CRAM uses reference-based compression so that instead of storing the full sequence for each alignment record it stores a location in an external reference sequence along with a list of differences to the reference at that location as a sequence of \"features\". When decoding CRAM records, the reference data is stored in a char array, and parts matching the alignment record sequence are copied over as necessary. Due to insufficient validation of the feature data series, it was possible to make the `cram_decode_seq()` function copy data from either before the start, or after the end of the stored reference either into the buffer used to store the output sequence for the cram record, or into the buffer used to build the SAM `MD` tag. This allowed arbitrary data to be leaked to the calling function. This bug may allow information about program state to be leaked. It may also cause a program crash through an attempt to access invalid memory. Versions 1.23.1, 1.22.2 and 1.21.1 include fixes for this issue. There is no workaround for this issue."
}
],
"metrics": [
{
"cvssV4_0": {
"attackComplexity": "LOW",
"attackRequirements": "NONE",
"attackVector": "NETWORK",
"baseScore": 6.9,
"baseSeverity": "MEDIUM",
"privilegesRequired": "NONE",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "NONE",
"vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N",
"version": "4.0",
"vulnAvailabilityImpact": "LOW",
"vulnConfidentialityImpact": "LOW",
"vulnIntegrityImpact": "NONE"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-125",
"description": "CWE-125: Out-of-bounds Read",
"lang": "en",
"type": "CWE"
}
]
},
{
"descriptions": [
{
"cweId": "CWE-129",
"description": "CWE-129: Improper Validation of Array Index",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-03-18T18:58:47.090Z",
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M"
},
"references": [
{
"name": "https://github.com/samtools/htslib/security/advisories/GHSA-5cj8-mj52-8vp3",
"tags": [
"x_refsource_CONFIRM"
],
"url": "https://github.com/samtools/htslib/security/advisories/GHSA-5cj8-mj52-8vp3"
},
{
"name": "https://github.com/samtools/htslib/commit/22ec5230ef95769ab009420da69568c7e530af28",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/commit/22ec5230ef95769ab009420da69568c7e530af28"
},
{
"name": "https://github.com/samtools/htslib/commit/2a45eb129d703ad27f9fabc8169f0e94d3c69fa3",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/commit/2a45eb129d703ad27f9fabc8169f0e94d3c69fa3"
},
{
"name": "https://github.com/samtools/htslib/commit/4a5ef25eb1fb3d64438103316fffe423b2c3f5f4",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/commit/4a5ef25eb1fb3d64438103316fffe423b2c3f5f4"
}
],
"source": {
"advisory": "GHSA-5cj8-mj52-8vp3",
"discovery": "UNKNOWN"
},
"title": "HTSlib CRAM reader has out-of-bounds read due to improper validation of input"
}
},
"cveMetadata": {
"assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"assignerShortName": "GitHub_M",
"cveId": "CVE-2026-31966",
"datePublished": "2026-03-18T18:58:47.090Z",
"dateReserved": "2026-03-10T15:40:10.484Z",
"dateUpdated": "2026-03-18T19:58:26.525Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-62260 (GCVE-0-2026-62260)
Vulnerability from cvelistv5 – Published: 2026-11-19 15:53 – Updated: 2026-11-19 18:52
VLAI
EPSS
VEX
Title
HTSlib: Out-of-bounds read in HTSlib CRAM 3.x and 4.0 readers due to improper validation of input
Summary
HTSlib is a library for reading and writing bioinformatics file formats. Prior to 1.21.2, 1.22.3, 1.23.2, and 1.24, the CRAM BETA decoder functions cram_beta_decode_long, cram_beta_decode_int, and cram_beta_decode_char, and the experimental CRAM v4 XPACK functions cram_xpack_decode_long and cram_xpack_decode_int, have bounds-checking flaws caused by integer overflow after a multiplication. The resulting incorrect bounds check can allow decoding to read beyond the supplied input buffer, potentially leaking process-state information or crashing the process. This issue is fixed in versions 1.21.2, 1.22.3, 1.23.2, and 1.24.
Severity
SSVC
Exploitation: none
Automatable: no
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-11-19 18:50 UTC
Assigner
References
9 references
| URL | Tags |
|---|---|
| https://github.com/samtools/htslib/security/advis… | x_refsource_CONFIRM |
| https://github.com/samtools/htslib/pull/2046 | x_refsource_MISC |
| https://github.com/samtools/htslib/commit/3eb519c… | x_refsource_MISC |
| https://github.com/samtools/htslib/commit/3eef4ae… | x_refsource_MISC |
| https://github.com/samtools/htslib/commit/a3e8dca… | x_refsource_MISC |
| https://github.com/samtools/htslib/releases/tag/1.21.2 | x_refsource_MISC |
| https://github.com/samtools/htslib/releases/tag/1.22.3 | x_refsource_MISC |
| https://github.com/samtools/htslib/releases/tag/1.23.2 | x_refsource_MISC |
| https://github.com/samtools/htslib/releases/tag/1.24 | x_refsource_MISC |
Impacted products
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-62260",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-11-19T18:50:36.678827Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-11-19T18:52:10.280Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"product": "htslib",
"vendor": "samtools",
"versions": [
{
"status": "affected",
"version": "\u003c 1.21.2"
},
{
"status": "affected",
"version": "\u003e= 1.22.0, \u003c 1.22.3"
},
{
"status": "affected",
"version": "\u003e= 1.23.0, \u003c 1.23.2"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "HTSlib is a library for reading and writing bioinformatics file formats. Prior to 1.21.2, 1.22.3, 1.23.2, and 1.24, the CRAM BETA decoder functions cram_beta_decode_long, cram_beta_decode_int, and cram_beta_decode_char, and the experimental CRAM v4 XPACK functions cram_xpack_decode_long and cram_xpack_decode_int, have bounds-checking flaws caused by integer overflow after a multiplication. The resulting incorrect bounds check can allow decoding to read beyond the supplied input buffer, potentially leaking process-state information or crashing the process. This issue is fixed in versions 1.21.2, 1.22.3, 1.23.2, and 1.24."
}
],
"metrics": [
{
"cvssV4_0": {
"attackComplexity": "LOW",
"attackRequirements": "NONE",
"attackVector": "NETWORK",
"baseScore": 6.9,
"baseSeverity": "MEDIUM",
"privilegesRequired": "NONE",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "NONE",
"vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N",
"version": "4.0",
"vulnAvailabilityImpact": "LOW",
"vulnConfidentialityImpact": "LOW",
"vulnIntegrityImpact": "NONE"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-125",
"description": "CWE-125: Out-of-bounds Read",
"lang": "en",
"type": "CWE"
}
]
},
{
"descriptions": [
{
"cweId": "CWE-129",
"description": "CWE-129: Improper Validation of Array Index",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-19T15:53:13.929Z",
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M"
},
"references": [
{
"name": "https://github.com/samtools/htslib/security/advisories/GHSA-rjqv-xg3q-g423",
"tags": [
"x_refsource_CONFIRM"
],
"url": "https://github.com/samtools/htslib/security/advisories/GHSA-rjqv-xg3q-g423"
},
{
"name": "https://github.com/samtools/htslib/pull/2046",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/pull/2046"
},
{
"name": "https://github.com/samtools/htslib/commit/3eb519cd8a9be35275db46a439eb158e70fe4151",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/commit/3eb519cd8a9be35275db46a439eb158e70fe4151"
},
{
"name": "https://github.com/samtools/htslib/commit/3eef4aece30bc008b251e377085fc944d008d06a",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/commit/3eef4aece30bc008b251e377085fc944d008d06a"
},
{
"name": "https://github.com/samtools/htslib/commit/a3e8dca14dcfdc6167281721ede6d6ecd3395bad",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/commit/a3e8dca14dcfdc6167281721ede6d6ecd3395bad"
},
{
"name": "https://github.com/samtools/htslib/releases/tag/1.21.2",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/releases/tag/1.21.2"
},
{
"name": "https://github.com/samtools/htslib/releases/tag/1.22.3",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/releases/tag/1.22.3"
},
{
"name": "https://github.com/samtools/htslib/releases/tag/1.23.2",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/releases/tag/1.23.2"
},
{
"name": "https://github.com/samtools/htslib/releases/tag/1.24",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/releases/tag/1.24"
}
],
"source": {
"advisory": "GHSA-rjqv-xg3q-g423",
"discovery": "UNKNOWN"
},
"title": "HTSlib: Out-of-bounds read in HTSlib CRAM 3.x and 4.0 readers due to improper validation of input"
}
},
"cveMetadata": {
"assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"assignerShortName": "GitHub_M",
"cveId": "CVE-2026-62260",
"datePublished": "2026-11-19T15:53:13.929Z",
"dateReserved": "2026-07-13T17:09:57.574Z",
"dateUpdated": "2026-11-19T18:52:10.280Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-62256 (GCVE-0-2026-62256)
Vulnerability from cvelistv5 – Published: 2026-11-19 15:52 – Updated: 2026-11-19 15:52
VLAI
EPSS
VEX
Title
HTSlib: Heap write overflow in HTSlib FASTA index handling
Summary
HTSlib is a library for reading and writing bioinformatics file formats. Prior to 1.21.2, 1.22.3, 1.23.2, and 1.24, fai_retrieve does not verify that the line width recorded in a FASTA .fai index is greater than or equal to the number of bases per line. When the line width is exactly one less than the base count, retrieval allocates an undersized heap buffer and writes one byte beyond its end; larger discrepancies instead cause an allocation failure that is handled. This issue can corrupt heap memory and crash the process. This issue is fixed in versions 1.21.2, 1.22.3, 1.23.2, and 1.24.
Severity
Assigner
References
10 references
| URL | Tags |
|---|---|
| https://github.com/samtools/htslib/security/advis… | x_refsource_CONFIRM |
| https://github.com/samtools/htslib/pull/2008 | x_refsource_MISC |
| https://github.com/samtools/htslib/commit/4af640f… | x_refsource_MISC |
| https://github.com/samtools/htslib/commit/504fb84… | x_refsource_MISC |
| https://github.com/samtools/htslib/commit/567fd43… | x_refsource_MISC |
| https://github.com/samtools/htslib/commit/cdf2292… | x_refsource_MISC |
| https://github.com/samtools/htslib/releases/tag/1.21.2 | x_refsource_MISC |
| https://github.com/samtools/htslib/releases/tag/1.22.3 | x_refsource_MISC |
| https://github.com/samtools/htslib/releases/tag/1.23.2 | x_refsource_MISC |
| https://github.com/samtools/htslib/releases/tag/1.24 | x_refsource_MISC |
Impacted products
{
"containers": {
"cna": {
"affected": [
{
"product": "htslib",
"vendor": "samtools",
"versions": [
{
"status": "affected",
"version": "\u003c 1.21.2"
},
{
"status": "affected",
"version": "\u003e= 1.22.0, \u003c 1.22.3"
},
{
"status": "affected",
"version": "\u003e= 1.23.0, \u003c 1.23.2"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "HTSlib is a library for reading and writing bioinformatics file formats. Prior to 1.21.2, 1.22.3, 1.23.2, and 1.24, fai_retrieve does not verify that the line width recorded in a FASTA .fai index is greater than or equal to the number of bases per line. When the line width is exactly one less than the base count, retrieval allocates an undersized heap buffer and writes one byte beyond its end; larger discrepancies instead cause an allocation failure that is handled. This issue can corrupt heap memory and crash the process. This issue is fixed in versions 1.21.2, 1.22.3, 1.23.2, and 1.24."
}
],
"metrics": [
{
"cvssV4_0": {
"attackComplexity": "LOW",
"attackRequirements": "NONE",
"attackVector": "NETWORK",
"baseScore": 7.1,
"baseSeverity": "HIGH",
"privilegesRequired": "NONE",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "PASSIVE",
"vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N",
"version": "4.0",
"vulnAvailabilityImpact": "LOW",
"vulnConfidentialityImpact": "NONE",
"vulnIntegrityImpact": "HIGH"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-122",
"description": "CWE-122: Heap-based Buffer Overflow",
"lang": "en",
"type": "CWE"
}
]
},
{
"descriptions": [
{
"cweId": "CWE-787",
"description": "CWE-787: Out-of-bounds Write",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-19T15:52:04.669Z",
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M"
},
"references": [
{
"name": "https://github.com/samtools/htslib/security/advisories/GHSA-4hjq-r829-8c8v",
"tags": [
"x_refsource_CONFIRM"
],
"url": "https://github.com/samtools/htslib/security/advisories/GHSA-4hjq-r829-8c8v"
},
{
"name": "https://github.com/samtools/htslib/pull/2008",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/pull/2008"
},
{
"name": "https://github.com/samtools/htslib/commit/4af640f9ffd7f1fac95a739df7f560e3e5557960",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/commit/4af640f9ffd7f1fac95a739df7f560e3e5557960"
},
{
"name": "https://github.com/samtools/htslib/commit/504fb841b70afb948f58089c3a4337ce875c1e52",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/commit/504fb841b70afb948f58089c3a4337ce875c1e52"
},
{
"name": "https://github.com/samtools/htslib/commit/567fd43c6ef938de53c98217f99336e3ce5a60ab",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/commit/567fd43c6ef938de53c98217f99336e3ce5a60ab"
},
{
"name": "https://github.com/samtools/htslib/commit/cdf22929aad8dde719c1b2070ad565ac9dd76c02",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/commit/cdf22929aad8dde719c1b2070ad565ac9dd76c02"
},
{
"name": "https://github.com/samtools/htslib/releases/tag/1.21.2",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/releases/tag/1.21.2"
},
{
"name": "https://github.com/samtools/htslib/releases/tag/1.22.3",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/releases/tag/1.22.3"
},
{
"name": "https://github.com/samtools/htslib/releases/tag/1.23.2",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/releases/tag/1.23.2"
},
{
"name": "https://github.com/samtools/htslib/releases/tag/1.24",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/releases/tag/1.24"
}
],
"source": {
"advisory": "GHSA-4hjq-r829-8c8v",
"discovery": "UNKNOWN"
},
"title": "HTSlib: Heap write overflow in HTSlib FASTA index handling"
}
},
"cveMetadata": {
"assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"assignerShortName": "GitHub_M",
"cveId": "CVE-2026-62256",
"datePublished": "2026-11-19T15:52:04.669Z",
"dateReserved": "2026-07-13T17:09:57.573Z",
"dateUpdated": "2026-11-19T15:52:04.669Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-62258 (GCVE-0-2026-62258)
Vulnerability from cvelistv5 – Published: 2026-11-19 15:50 – Updated: 2026-11-19 20:43
VLAI
EPSS
VEX
Title
HTSlib: Stack write overflow in HTSlib CRAM decoder
Summary
HTSlib is a library for reading and writing bioinformatics file formats. Prior to 1.21.2, 1.22.3, 1.23.2, and 1.24, the CRAM decoder validates the 254-character query-name limit only after decoding the name into a 1024-byte stack array. An attacker-controlled CRAM record can provide an overlong query name and overflow the local stack buffer before the later validation runs; all CRAM format versions are affected. Opening such a file can crash the process, corrupt stack data, and may permit arbitrary code execution. This issue is fixed in versions 1.21.2, 1.22.3, 1.23.2, and 1.24.
Severity
SSVC
Exploitation: none
Automatable: yes
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-11-19 20:29 UTC
Assigner
References
9 references
| URL | Tags |
|---|---|
| https://github.com/samtools/htslib/security/advis… | x_refsource_CONFIRM |
| https://github.com/samtools/htslib/pull/2046 | x_refsource_MISC |
| https://github.com/samtools/htslib/commit/2527879… | x_refsource_MISC |
| https://github.com/samtools/htslib/commit/df93e24… | x_refsource_MISC |
| https://github.com/samtools/htslib/commit/f1d1bf8… | x_refsource_MISC |
| https://github.com/samtools/htslib/releases/tag/1.21.2 | x_refsource_MISC |
| https://github.com/samtools/htslib/releases/tag/1.22.3 | x_refsource_MISC |
| https://github.com/samtools/htslib/releases/tag/1.23.2 | x_refsource_MISC |
| https://github.com/samtools/htslib/releases/tag/1.24 | x_refsource_MISC |
Impacted products
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-62258",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "yes"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-11-19T20:29:51.824666Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-11-19T20:43:05.331Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"product": "htslib",
"vendor": "samtools",
"versions": [
{
"status": "affected",
"version": "\u003c 1.21.2"
},
{
"status": "affected",
"version": "\u003e= 1.22.0, \u003c 1.22.3"
},
{
"status": "affected",
"version": "\u003e= 1.23.0, \u003c 1.23.2"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "HTSlib is a library for reading and writing bioinformatics file formats. Prior to 1.21.2, 1.22.3, 1.23.2, and 1.24, the CRAM decoder validates the 254-character query-name limit only after decoding the name into a 1024-byte stack array. An attacker-controlled CRAM record can provide an overlong query name and overflow the local stack buffer before the later validation runs; all CRAM format versions are affected. Opening such a file can crash the process, corrupt stack data, and may permit arbitrary code execution. This issue is fixed in versions 1.21.2, 1.22.3, 1.23.2, and 1.24."
}
],
"metrics": [
{
"cvssV4_0": {
"attackComplexity": "LOW",
"attackRequirements": "NONE",
"attackVector": "NETWORK",
"baseScore": 8.8,
"baseSeverity": "HIGH",
"privilegesRequired": "NONE",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "NONE",
"vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N",
"version": "4.0",
"vulnAvailabilityImpact": "LOW",
"vulnConfidentialityImpact": "NONE",
"vulnIntegrityImpact": "HIGH"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-121",
"description": "CWE-121: Stack-based Buffer Overflow",
"lang": "en",
"type": "CWE"
}
]
},
{
"descriptions": [
{
"cweId": "CWE-787",
"description": "CWE-787: Out-of-bounds Write",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-19T15:50:31.702Z",
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M"
},
"references": [
{
"name": "https://github.com/samtools/htslib/security/advisories/GHSA-2jx2-wm7f-rv9m",
"tags": [
"x_refsource_CONFIRM"
],
"url": "https://github.com/samtools/htslib/security/advisories/GHSA-2jx2-wm7f-rv9m"
},
{
"name": "https://github.com/samtools/htslib/pull/2046",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/pull/2046"
},
{
"name": "https://github.com/samtools/htslib/commit/25278797c251a9af789382ecf5aa0c86f417bdf5",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/commit/25278797c251a9af789382ecf5aa0c86f417bdf5"
},
{
"name": "https://github.com/samtools/htslib/commit/df93e245f1b517aec86c69684fcb2faf5942c5c2",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/commit/df93e245f1b517aec86c69684fcb2faf5942c5c2"
},
{
"name": "https://github.com/samtools/htslib/commit/f1d1bf835aaafa1e511996dcd49760c36f683b17",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/commit/f1d1bf835aaafa1e511996dcd49760c36f683b17"
},
{
"name": "https://github.com/samtools/htslib/releases/tag/1.21.2",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/releases/tag/1.21.2"
},
{
"name": "https://github.com/samtools/htslib/releases/tag/1.22.3",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/releases/tag/1.22.3"
},
{
"name": "https://github.com/samtools/htslib/releases/tag/1.23.2",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/releases/tag/1.23.2"
},
{
"name": "https://github.com/samtools/htslib/releases/tag/1.24",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/releases/tag/1.24"
}
],
"source": {
"advisory": "GHSA-2jx2-wm7f-rv9m",
"discovery": "UNKNOWN"
},
"title": "HTSlib: Stack write overflow in HTSlib CRAM decoder"
}
},
"cveMetadata": {
"assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"assignerShortName": "GitHub_M",
"cveId": "CVE-2026-62258",
"datePublished": "2026-11-19T15:50:31.702Z",
"dateReserved": "2026-07-13T17:09:57.574Z",
"dateUpdated": "2026-11-19T20:43:05.331Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-62255 (GCVE-0-2026-62255)
Vulnerability from cvelistv5 – Published: 2026-11-19 15:45 – Updated: 2026-11-19 18:42
VLAI
EPSS
VEX
Title
HTSlib: Heap write overflow in HTSlib CRAM index handling
Summary
HTSlib is a library for reading and writing bioinformatics file formats. Prior to 1.21.2, 1.22.3, 1.23.2, and 1.24, cram_index_load does not verify that the number of reference sequences in a CRAM .crai index does not exceed the CRAM header reference count. A malformed index can drive unbounded index-array allocation, and when the number of references in the index is within two of INT_MAX, the growth calculation can wrap, read beyond a heap buffer, and use the resulting value as a pointer for an unchecked memory write. Any region query can trigger the flaw, causing denial of service or memory corruption. This issue is fixed in versions 1.21.2, 1.22.3, 1.23.2, and 1.24.
Severity
SSVC
Exploitation: poc
Automatable: no
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-11-19 18:40 UTC
CWE
Assigner
References
10 references
| URL | Tags |
|---|---|
| https://github.com/samtools/htslib/security/advis… | x_refsource_CONFIRM |
| https://github.com/samtools/htslib/pull/2029 | x_refsource_MISC |
| https://github.com/samtools/htslib/commit/08fbbce… | x_refsource_MISC |
| https://github.com/samtools/htslib/commit/57e1a07… | x_refsource_MISC |
| https://github.com/samtools/htslib/commit/8a2394e… | x_refsource_MISC |
| https://github.com/samtools/htslib/commit/924e217… | x_refsource_MISC |
| https://github.com/samtools/htslib/releases/tag/1.21.2 | x_refsource_MISC |
| https://github.com/samtools/htslib/releases/tag/1.22.3 | x_refsource_MISC |
| https://github.com/samtools/htslib/releases/tag/1.23.2 | x_refsource_MISC |
| https://github.com/samtools/htslib/releases/tag/1.24 | x_refsource_MISC |
Impacted products
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-62255",
"options": [
{
"Exploitation": "poc"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-11-19T18:40:34.842826Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-11-19T18:42:06.074Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"references": [
{
"tags": [
"exploit"
],
"url": "https://github.com/samtools/htslib/pull/2029"
}
],
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"product": "htslib",
"vendor": "samtools",
"versions": [
{
"status": "affected",
"version": "\u003c 1.21.2"
},
{
"status": "affected",
"version": "\u003e= 1.22.0, \u003c 1.22.3"
},
{
"status": "affected",
"version": "\u003e= 1.23.0, \u003c 1.23.2"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "HTSlib is a library for reading and writing bioinformatics file formats. Prior to 1.21.2, 1.22.3, 1.23.2, and 1.24, cram_index_load does not verify that the number of reference sequences in a CRAM .crai index does not exceed the CRAM header reference count. A malformed index can drive unbounded index-array allocation, and when the number of references in the index is within two of INT_MAX, the growth calculation can wrap, read beyond a heap buffer, and use the resulting value as a pointer for an unchecked memory write. Any region query can trigger the flaw, causing denial of service or memory corruption. This issue is fixed in versions 1.21.2, 1.22.3, 1.23.2, and 1.24."
}
],
"metrics": [
{
"cvssV4_0": {
"attackComplexity": "LOW",
"attackRequirements": "NONE",
"attackVector": "NETWORK",
"baseScore": 7.1,
"baseSeverity": "HIGH",
"privilegesRequired": "NONE",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "PASSIVE",
"vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N",
"version": "4.0",
"vulnAvailabilityImpact": "LOW",
"vulnConfidentialityImpact": "NONE",
"vulnIntegrityImpact": "HIGH"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-122",
"description": "CWE-122: Heap-based Buffer Overflow",
"lang": "en",
"type": "CWE"
}
]
},
{
"descriptions": [
{
"cweId": "CWE-125",
"description": "CWE-125: Out-of-bounds Read",
"lang": "en",
"type": "CWE"
}
]
},
{
"descriptions": [
{
"cweId": "CWE-787",
"description": "CWE-787: Out-of-bounds Write",
"lang": "en",
"type": "CWE"
}
]
},
{
"descriptions": [
{
"cweId": "CWE-789",
"description": "CWE-789: Memory Allocation with Excessive Size Value",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-19T15:45:54.865Z",
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M"
},
"references": [
{
"name": "https://github.com/samtools/htslib/security/advisories/GHSA-28r7-prwc-hf5c",
"tags": [
"x_refsource_CONFIRM"
],
"url": "https://github.com/samtools/htslib/security/advisories/GHSA-28r7-prwc-hf5c"
},
{
"name": "https://github.com/samtools/htslib/pull/2029",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/pull/2029"
},
{
"name": "https://github.com/samtools/htslib/commit/08fbbceefdfac073e768c1fce593181ca7379222",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/commit/08fbbceefdfac073e768c1fce593181ca7379222"
},
{
"name": "https://github.com/samtools/htslib/commit/57e1a0763c9a5f34a1d1ab9deb3a3ad2bd8fe11d",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/commit/57e1a0763c9a5f34a1d1ab9deb3a3ad2bd8fe11d"
},
{
"name": "https://github.com/samtools/htslib/commit/8a2394e63c9bdd758cc6a7de04c5e2ee7acc8e65",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/commit/8a2394e63c9bdd758cc6a7de04c5e2ee7acc8e65"
},
{
"name": "https://github.com/samtools/htslib/commit/924e21755d0b5db7a33f1920d20c0e441667d22f",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/commit/924e21755d0b5db7a33f1920d20c0e441667d22f"
},
{
"name": "https://github.com/samtools/htslib/releases/tag/1.21.2",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/releases/tag/1.21.2"
},
{
"name": "https://github.com/samtools/htslib/releases/tag/1.22.3",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/releases/tag/1.22.3"
},
{
"name": "https://github.com/samtools/htslib/releases/tag/1.23.2",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/releases/tag/1.23.2"
},
{
"name": "https://github.com/samtools/htslib/releases/tag/1.24",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/releases/tag/1.24"
}
],
"source": {
"advisory": "GHSA-28r7-prwc-hf5c",
"discovery": "UNKNOWN"
},
"title": "HTSlib: Heap write overflow in HTSlib CRAM index handling"
}
},
"cveMetadata": {
"assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"assignerShortName": "GitHub_M",
"cveId": "CVE-2026-62255",
"datePublished": "2026-11-19T15:45:54.865Z",
"dateReserved": "2026-07-13T17:09:57.573Z",
"dateUpdated": "2026-11-19T18:42:06.074Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-62259 (GCVE-0-2026-62259)
Vulnerability from cvelistv5 – Published: 2026-11-19 15:44 – Updated: 2026-11-19 18:53
VLAI
EPSS
VEX
Title
HTSlib: Out-of-bounds read in HTSlib CRAM 4.0 reader due to improper validation of input
Summary
HTSlib is a library for reading and writing bioinformatics file formats. Prior to 1.21.2, 1.22.3, 1.23.2, and 1.24, the experimental CRAM v4 functions cram_xpack_decode_char and cram_xrle_decode_char do not validate that attacker-controlled decode sizes remain within their expanded input arrays. Crafted CRAM data can therefore make either decoder read beyond the supplied input buffer, potentially disclosing process-state information or crashing the process through invalid memory access. This issue is fixed in versions 1.21.2, 1.22.3, 1.23.2, and 1.24.
Severity
SSVC
Exploitation: none
Automatable: yes
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-11-19 18:52 UTC
Assigner
References
9 references
| URL | Tags |
|---|---|
| https://github.com/samtools/htslib/security/advis… | x_refsource_CONFIRM |
| https://github.com/samtools/htslib/pull/2046 | x_refsource_MISC |
| https://github.com/samtools/htslib/commit/76147ed… | x_refsource_MISC |
| https://github.com/samtools/htslib/commit/a1f929d… | x_refsource_MISC |
| https://github.com/samtools/htslib/commit/a3e8dca… | x_refsource_MISC |
| https://github.com/samtools/htslib/releases/tag/1.21.2 | x_refsource_MISC |
| https://github.com/samtools/htslib/releases/tag/1.22.3 | x_refsource_MISC |
| https://github.com/samtools/htslib/releases/tag/1.23.2 | x_refsource_MISC |
| https://github.com/samtools/htslib/releases/tag/1.24 | x_refsource_MISC |
Impacted products
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-62259",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "yes"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-11-19T18:52:54.718823Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-11-19T18:53:09.505Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"product": "htslib",
"vendor": "samtools",
"versions": [
{
"status": "affected",
"version": "\u003c 1.21.2"
},
{
"status": "affected",
"version": "\u003e= 1.22.0, \u003c 1.22.3"
},
{
"status": "affected",
"version": "\u003e= 1.23.0, \u003c 1.23.2"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "HTSlib is a library for reading and writing bioinformatics file formats. Prior to 1.21.2, 1.22.3, 1.23.2, and 1.24, the experimental CRAM v4 functions cram_xpack_decode_char and cram_xrle_decode_char do not validate that attacker-controlled decode sizes remain within their expanded input arrays. Crafted CRAM data can therefore make either decoder read beyond the supplied input buffer, potentially disclosing process-state information or crashing the process through invalid memory access. This issue is fixed in versions 1.21.2, 1.22.3, 1.23.2, and 1.24."
}
],
"metrics": [
{
"cvssV4_0": {
"attackComplexity": "LOW",
"attackRequirements": "NONE",
"attackVector": "NETWORK",
"baseScore": 6.9,
"baseSeverity": "MEDIUM",
"privilegesRequired": "NONE",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "NONE",
"vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N",
"version": "4.0",
"vulnAvailabilityImpact": "LOW",
"vulnConfidentialityImpact": "LOW",
"vulnIntegrityImpact": "NONE"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-125",
"description": "CWE-125: Out-of-bounds Read",
"lang": "en",
"type": "CWE"
}
]
},
{
"descriptions": [
{
"cweId": "CWE-129",
"description": "CWE-129: Improper Validation of Array Index",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-19T15:44:25.840Z",
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M"
},
"references": [
{
"name": "https://github.com/samtools/htslib/security/advisories/GHSA-hg3g-v57p-459q",
"tags": [
"x_refsource_CONFIRM"
],
"url": "https://github.com/samtools/htslib/security/advisories/GHSA-hg3g-v57p-459q"
},
{
"name": "https://github.com/samtools/htslib/pull/2046",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/pull/2046"
},
{
"name": "https://github.com/samtools/htslib/commit/76147edc658e5c19cbae52ececf5e3af81e8998a",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/commit/76147edc658e5c19cbae52ececf5e3af81e8998a"
},
{
"name": "https://github.com/samtools/htslib/commit/a1f929da9f207b099bfc1f5a74aee94fc0eeba6a",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/commit/a1f929da9f207b099bfc1f5a74aee94fc0eeba6a"
},
{
"name": "https://github.com/samtools/htslib/commit/a3e8dca14dcfdc6167281721ede6d6ecd3395bad",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/commit/a3e8dca14dcfdc6167281721ede6d6ecd3395bad"
},
{
"name": "https://github.com/samtools/htslib/releases/tag/1.21.2",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/releases/tag/1.21.2"
},
{
"name": "https://github.com/samtools/htslib/releases/tag/1.22.3",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/releases/tag/1.22.3"
},
{
"name": "https://github.com/samtools/htslib/releases/tag/1.23.2",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/releases/tag/1.23.2"
},
{
"name": "https://github.com/samtools/htslib/releases/tag/1.24",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/releases/tag/1.24"
}
],
"source": {
"advisory": "GHSA-hg3g-v57p-459q",
"discovery": "UNKNOWN"
},
"title": "HTSlib: Out-of-bounds read in HTSlib CRAM 4.0 reader due to improper validation of input"
}
},
"cveMetadata": {
"assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"assignerShortName": "GitHub_M",
"cveId": "CVE-2026-62259",
"datePublished": "2026-11-19T15:44:25.840Z",
"dateReserved": "2026-07-13T17:09:57.574Z",
"dateUpdated": "2026-11-19T18:53:09.505Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-62257 (GCVE-0-2026-62257)
Vulnerability from cvelistv5 – Published: 2026-11-19 15:41 – Updated: 2026-11-19 15:41
VLAI
EPSS
VEX
Title
HTSlib: Heap read and write overflow in HTSlib CRAM 4.0 decoder
Summary
HTSlib is a library for reading and writing bioinformatics file formats. Prior to 1.21.2, 1.22.3, 1.23.2, and 1.24, the experimental CRAM v4 XPACK and XRLE decoders cache expanded block pointers at indexes beyond the 512-element slice->block_by_id array. An array index partially controlled by data in the input file first causes an out-of-bounds read to determine whether a block is cached; a null value then causes allocation of a block and an out-of-bounds pointer write to the same element. The invalid read may crash the process, while the write may corrupt heap state and could permit arbitrary code execution. This issue is fixed in versions 1.21.2, 1.22.3, 1.23.2, and 1.24.
Severity
Assigner
References
10 references
| URL | Tags |
|---|---|
| https://github.com/samtools/htslib/security/advis… | x_refsource_CONFIRM |
| https://github.com/samtools/htslib/pull/2020 | x_refsource_MISC |
| https://github.com/samtools/htslib/pull/2046 | x_refsource_MISC |
| https://github.com/samtools/htslib/commit/a3e8dca… | x_refsource_MISC |
| https://github.com/samtools/htslib/commit/c0b5037… | x_refsource_MISC |
| https://github.com/samtools/htslib/commit/d66a77d… | x_refsource_MISC |
| https://github.com/samtools/htslib/releases/tag/1.21.2 | x_refsource_MISC |
| https://github.com/samtools/htslib/releases/tag/1.22.3 | x_refsource_MISC |
| https://github.com/samtools/htslib/releases/tag/1.23.2 | x_refsource_MISC |
| https://github.com/samtools/htslib/releases/tag/1.24 | x_refsource_MISC |
Impacted products
{
"containers": {
"cna": {
"affected": [
{
"product": "htslib",
"vendor": "samtools",
"versions": [
{
"status": "affected",
"version": "\u003c 1.21.2"
},
{
"status": "affected",
"version": "\u003e= 1.22.0, \u003c 1.22.3"
},
{
"status": "affected",
"version": "\u003e= 1.23.0, \u003c 1.23.2"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "HTSlib is a library for reading and writing bioinformatics file formats. Prior to 1.21.2, 1.22.3, 1.23.2, and 1.24, the experimental CRAM v4 XPACK and XRLE decoders cache expanded block pointers at indexes beyond the 512-element slice-\u003eblock_by_id array. An array index partially controlled by data in the input file first causes an out-of-bounds read to determine whether a block is cached; a null value then causes allocation of a block and an out-of-bounds pointer write to the same element. The invalid read may crash the process, while the write may corrupt heap state and could permit arbitrary code execution. This issue is fixed in versions 1.21.2, 1.22.3, 1.23.2, and 1.24."
}
],
"metrics": [
{
"cvssV4_0": {
"attackComplexity": "LOW",
"attackRequirements": "NONE",
"attackVector": "NETWORK",
"baseScore": 8.8,
"baseSeverity": "HIGH",
"privilegesRequired": "NONE",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "NONE",
"vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N",
"version": "4.0",
"vulnAvailabilityImpact": "LOW",
"vulnConfidentialityImpact": "NONE",
"vulnIntegrityImpact": "HIGH"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-122",
"description": "CWE-122: Heap-based Buffer Overflow",
"lang": "en",
"type": "CWE"
}
]
},
{
"descriptions": [
{
"cweId": "CWE-125",
"description": "CWE-125: Out-of-bounds Read",
"lang": "en",
"type": "CWE"
}
]
},
{
"descriptions": [
{
"cweId": "CWE-787",
"description": "CWE-787: Out-of-bounds Write",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-19T15:41:55.655Z",
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M"
},
"references": [
{
"name": "https://github.com/samtools/htslib/security/advisories/GHSA-6q7c-m967-9v37",
"tags": [
"x_refsource_CONFIRM"
],
"url": "https://github.com/samtools/htslib/security/advisories/GHSA-6q7c-m967-9v37"
},
{
"name": "https://github.com/samtools/htslib/pull/2020",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/pull/2020"
},
{
"name": "https://github.com/samtools/htslib/pull/2046",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/pull/2046"
},
{
"name": "https://github.com/samtools/htslib/commit/a3e8dca14dcfdc6167281721ede6d6ecd3395bad",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/commit/a3e8dca14dcfdc6167281721ede6d6ecd3395bad"
},
{
"name": "https://github.com/samtools/htslib/commit/c0b50372ed133c650fa0a641607da5cde46bcd8c",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/commit/c0b50372ed133c650fa0a641607da5cde46bcd8c"
},
{
"name": "https://github.com/samtools/htslib/commit/d66a77dbf8f52f7f44efd7929a28b94bbfc17f2f",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/commit/d66a77dbf8f52f7f44efd7929a28b94bbfc17f2f"
},
{
"name": "https://github.com/samtools/htslib/releases/tag/1.21.2",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/releases/tag/1.21.2"
},
{
"name": "https://github.com/samtools/htslib/releases/tag/1.22.3",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/releases/tag/1.22.3"
},
{
"name": "https://github.com/samtools/htslib/releases/tag/1.23.2",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/releases/tag/1.23.2"
},
{
"name": "https://github.com/samtools/htslib/releases/tag/1.24",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/releases/tag/1.24"
}
],
"source": {
"advisory": "GHSA-6q7c-m967-9v37",
"discovery": "UNKNOWN"
},
"title": "HTSlib: Heap read and write overflow in HTSlib CRAM 4.0 decoder"
}
},
"cveMetadata": {
"assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"assignerShortName": "GitHub_M",
"cveId": "CVE-2026-62257",
"datePublished": "2026-11-19T15:41:55.655Z",
"dateReserved": "2026-07-13T17:09:57.574Z",
"dateUpdated": "2026-11-19T15:41:55.655Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-63390 (GCVE-0-2026-63390)
Vulnerability from cvelistv5 – Published: 2026-11-19 15:37 – Updated: 2026-11-19 20:43
VLAI
EPSS
VEX
Title
HTSlib: Heap buffer overflow in BCF reader due to improper validation of input.
Summary
HTSlib is a library for reading and writing bioinformatics file formats. Prior to 1.21.2, 1.22.3, 1.23.2, and 1.24, the BCF reader can experience an integer overflow in a record-length check that verifies whether a record contains enough bytes for the expected number and size of stored items. A crafted BCF record can bypass this check, causing reads beyond the stored data and, in some cases, writes beyond the heap buffer when the reader sets the least significant bit of accessed bytes. Opening such a file can crash the process, corrupt data or heap structures, and may permit arbitrary code execution. This issue is fixed in versions 1.21.2, 1.22.3, 1.23.2, and 1.24.
Severity
SSVC
Exploitation: none
Automatable: yes
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-11-19 20:29 UTC
CWE
Assigner
References
9 references
| URL | Tags |
|---|---|
| https://github.com/samtools/htslib/security/advis… | x_refsource_CONFIRM |
| https://github.com/samtools/htslib/pull/2047 | x_refsource_MISC |
| https://github.com/samtools/htslib/commit/00a30cd… | x_refsource_MISC |
| https://github.com/samtools/htslib/commit/2713f39… | x_refsource_MISC |
| https://github.com/samtools/htslib/commit/3a3585d… | x_refsource_MISC |
| https://github.com/samtools/htslib/releases/tag/1.21.2 | x_refsource_MISC |
| https://github.com/samtools/htslib/releases/tag/1.22.3 | x_refsource_MISC |
| https://github.com/samtools/htslib/releases/tag/1.23.2 | x_refsource_MISC |
| https://github.com/samtools/htslib/releases/tag/1.24 | x_refsource_MISC |
Impacted products
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-63390",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "yes"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-11-19T20:29:55.710796Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-11-19T20:43:13.499Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"product": "htslib",
"vendor": "samtools",
"versions": [
{
"status": "affected",
"version": "\u003c 1.21.2"
},
{
"status": "affected",
"version": "\u003e= 1.22.0, \u003c 1.22.3"
},
{
"status": "affected",
"version": "\u003e= 1.23.0, \u003c 1.23.2"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "HTSlib is a library for reading and writing bioinformatics file formats. Prior to 1.21.2, 1.22.3, 1.23.2, and 1.24, the BCF reader can experience an integer overflow in a record-length check that verifies whether a record contains enough bytes for the expected number and size of stored items. A crafted BCF record can bypass this check, causing reads beyond the stored data and, in some cases, writes beyond the heap buffer when the reader sets the least significant bit of accessed bytes. Opening such a file can crash the process, corrupt data or heap structures, and may permit arbitrary code execution. This issue is fixed in versions 1.21.2, 1.22.3, 1.23.2, and 1.24."
}
],
"metrics": [
{
"cvssV4_0": {
"attackComplexity": "LOW",
"attackRequirements": "NONE",
"attackVector": "NETWORK",
"baseScore": 8.8,
"baseSeverity": "HIGH",
"privilegesRequired": "NONE",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "NONE",
"vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N",
"version": "4.0",
"vulnAvailabilityImpact": "LOW",
"vulnConfidentialityImpact": "NONE",
"vulnIntegrityImpact": "HIGH"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-122",
"description": "CWE-122: Heap-based Buffer Overflow",
"lang": "en",
"type": "CWE"
}
]
},
{
"descriptions": [
{
"cweId": "CWE-125",
"description": "CWE-125: Out-of-bounds Read",
"lang": "en",
"type": "CWE"
}
]
},
{
"descriptions": [
{
"cweId": "CWE-190",
"description": "CWE-190: Integer Overflow or Wraparound",
"lang": "en",
"type": "CWE"
}
]
},
{
"descriptions": [
{
"cweId": "CWE-787",
"description": "CWE-787: Out-of-bounds Write",
"lang": "en",
"type": "CWE"
}
]
},
{
"descriptions": [
{
"cweId": "CWE-1284",
"description": "CWE-1284: Improper Validation of Specified Quantity in Input",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-19T15:37:08.984Z",
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M"
},
"references": [
{
"name": "https://github.com/samtools/htslib/security/advisories/GHSA-2wm6-8hgm-7g92",
"tags": [
"x_refsource_CONFIRM"
],
"url": "https://github.com/samtools/htslib/security/advisories/GHSA-2wm6-8hgm-7g92"
},
{
"name": "https://github.com/samtools/htslib/pull/2047",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/pull/2047"
},
{
"name": "https://github.com/samtools/htslib/commit/00a30cdb8db1f5832eb58a799383a462c6b58cb3",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/commit/00a30cdb8db1f5832eb58a799383a462c6b58cb3"
},
{
"name": "https://github.com/samtools/htslib/commit/2713f39242f4afff5382aad5c1ba02abe12950cd",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/commit/2713f39242f4afff5382aad5c1ba02abe12950cd"
},
{
"name": "https://github.com/samtools/htslib/commit/3a3585dc844f7caad266bbec8d91e45c09c1dcd4",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/commit/3a3585dc844f7caad266bbec8d91e45c09c1dcd4"
},
{
"name": "https://github.com/samtools/htslib/releases/tag/1.21.2",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/releases/tag/1.21.2"
},
{
"name": "https://github.com/samtools/htslib/releases/tag/1.22.3",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/releases/tag/1.22.3"
},
{
"name": "https://github.com/samtools/htslib/releases/tag/1.23.2",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/releases/tag/1.23.2"
},
{
"name": "https://github.com/samtools/htslib/releases/tag/1.24",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/releases/tag/1.24"
}
],
"source": {
"advisory": "GHSA-2wm6-8hgm-7g92",
"discovery": "UNKNOWN"
},
"title": "HTSlib: Heap buffer overflow in BCF reader due to improper validation of input."
}
},
"cveMetadata": {
"assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"assignerShortName": "GitHub_M",
"cveId": "CVE-2026-63390",
"datePublished": "2026-11-19T15:37:08.984Z",
"dateReserved": "2026-07-16T17:39:30.171Z",
"dateUpdated": "2026-11-19T20:43:13.499Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-116742 (GCVE-0-2026-116742)
Vulnerability from cvelistv5 – Published: 2026-10-26 21:52 – Updated: 2026-10-27 14:16
VLAI
EPSS
VEX
Title
HTSlib through 1.24 Heap Out-of-Bounds Write via Truncated .gzi Index Count
Summary
HTSlib through 1.24 contains a heap out-of-bounds write and read vulnerability in bgzf_index_load_hfile() in bgzf.c that allows attackers to corrupt heap memory by supplying a crafted .gzi index entry count. A count of 0xFFFFFFFF truncates noffs to zero, causing writes past a malloc(0) buffer and an offs[-1] read in bgzf_useek(), resulting in heap corruption or crashes in tools like samtools and bcftools.
Severity
4.4 (Medium)
SSVC
Exploitation: none
Automatable: no
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-10-27 13:42 UTC
CWE
- CWE-197 - Numeric Truncation Error
Assigner
References
7 references
| URL | Tags |
|---|---|
| https://github.com/samtools/htslib/pull/2057 | issue-trackingpatch |
| https://github.com/samtools/htslib/commit/18dddf0… | patch |
| https://github.com/samtools/htslib | product |
| https://github.com/samtools/htslib/blob/1.24/bgzf… | technical-description |
| https://hackmd.io/@haindpwn/htslib-bgzf-gzi-int-t… | third-party-advisory |
| https://github.com/samtools/htslib/issues/2113 | issue-tracking |
| https://www.vulncheck.com/advisories/htslib-throu… | third-party-advisory |
Impacted products
Date Public
2026-07-31 00:00
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-116742",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-10-27T13:42:04.833817Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-10-27T14:16:48.820Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"defaultStatus": "unaffected",
"packageURL": "pkg:github/samtools/htslib",
"product": "htslib",
"repo": "https://github.com/samtools/htslib",
"vendor": "samtools",
"versions": [
{
"lessThanOrEqual": "1.24",
"status": "affected",
"version": "0",
"versionType": "custom"
}
]
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:htslib:htslib:*:*:*:*:*:*:*:*",
"versionEndIncluding": "1.24",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
]
}
],
"credits": [
{
"lang": "en",
"type": "finder",
"value": "HaiND from the Post and Telecommunication Institute of Technology"
},
{
"lang": "en",
"type": "remediation developer",
"value": "daviesrob"
}
],
"datePublic": "2026-07-31T00:00:00.000Z",
"descriptions": [
{
"lang": "en",
"value": "HTSlib through 1.24 contains a heap out-of-bounds write and read vulnerability in bgzf_index_load_hfile() in bgzf.c that allows attackers to corrupt heap memory by supplying a crafted .gzi index entry count. A count of 0xFFFFFFFF truncates noffs to zero, causing writes past a malloc(0) buffer and an offs[-1] read in bgzf_useek(), resulting in heap corruption or crashes in tools like samtools and bcftools."
}
],
"metrics": [
{
"cvssV4_0": {
"attackComplexity": "LOW",
"attackRequirements": "NONE",
"attackVector": "LOCAL",
"baseScore": 4.8,
"baseSeverity": "MEDIUM",
"privilegesRequired": "NONE",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "PASSIVE",
"vectorString": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N",
"version": "4.0",
"vulnAvailabilityImpact": "LOW",
"vulnConfidentialityImpact": "NONE",
"vulnIntegrityImpact": "LOW"
},
"format": "CVSS"
},
{
"cvssV3_1": {
"attackComplexity": "LOW",
"attackVector": "LOCAL",
"availabilityImpact": "LOW",
"baseScore": 4.4,
"baseSeverity": "MEDIUM",
"confidentialityImpact": "NONE",
"integrityImpact": "LOW",
"privilegesRequired": "NONE",
"scope": "UNCHANGED",
"userInteraction": "REQUIRED",
"vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L",
"version": "3.1"
},
"format": "CVSS"
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-197",
"description": "Numeric Truncation Error",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-10-26T21:52:41.511Z",
"orgId": "83251b91-4cc7-4094-a5c7-464a1b83ea10",
"shortName": "VulnCheck"
},
"references": [
{
"name": "Pull Request #2057",
"tags": [
"issue-tracking",
"patch"
],
"url": "https://github.com/samtools/htslib/pull/2057"
},
{
"name": "Patch Commit",
"tags": [
"patch"
],
"url": "https://github.com/samtools/htslib/commit/18dddf02bb2c0053b32acec427723555a24b2873"
},
{
"tags": [
"product"
],
"url": "https://github.com/samtools/htslib"
},
{
"tags": [
"technical-description"
],
"url": "https://github.com/samtools/htslib/blob/1.24/bgzf.c#L2504"
},
{
"tags": [
"third-party-advisory"
],
"url": "https://hackmd.io/@haindpwn/htslib-bgzf-gzi-int-truncation-oob"
},
{
"tags": [
"issue-tracking"
],
"url": "https://github.com/samtools/htslib/issues/2113"
},
{
"name": "VulnCheck Advisory: HTSlib through 1.24 Heap Out-of-Bounds Write via Truncated .gzi Index Count",
"tags": [
"third-party-advisory"
],
"url": "https://www.vulncheck.com/advisories/htslib-through-1.24-heap-out-of-bounds-write-via-truncated-gzi-index-count"
}
],
"title": "HTSlib through 1.24 Heap Out-of-Bounds Write via Truncated .gzi Index Count",
"x_generator": {
"engine": "vulncheck-endgame"
}
}
},
"cveMetadata": {
"assignerOrgId": "83251b91-4cc7-4094-a5c7-464a1b83ea10",
"assignerShortName": "VulnCheck",
"cveId": "CVE-2026-116742",
"datePublished": "2026-10-26T21:52:41.511Z",
"dateReserved": "2026-10-26T20:23:36.636Z",
"dateUpdated": "2026-10-27T14:16:48.820Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-31973 (GCVE-0-2026-31973)
Vulnerability from cvelistv5 – Published: 2026-03-18 20:34 – Updated: 2026-03-19 16:14
VLAI
EPSS
VEX
Title
NULL pointer dereference in samtools cram-size
Summary
SAMtools is a program for reading, manipulating and writing bioinformatics file formats. Starting in version 1.17, in the cram-size command, used to write information about how well CRAM files are compressed, a check to see if the `cram_decode_compression_header()` was missing. If the function returned an error, this could lead to a NULL pointer dereference. Exploiting this bug causes a NULL pointer dereference. Typically this will cause the program to crash. Versions 1.23.1, 1.22.2 and 1.21.1 include fixes for this issue. There is no workaround for this issue.
Severity
SSVC
Exploitation: none
Automatable: no
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-03-19 16:14 UTC
CWE
- CWE-476 - NULL Pointer Dereference
Assigner
References
3 references
| URL | Tags |
|---|---|
| https://github.com/samtools/samtools/security/adv… | x_refsource_CONFIRM |
| https://github.com/samtools/samtools/commit/06fc2… | x_refsource_MISC |
| http://www.openwall.com/lists/oss-security/2026/0… |
Impacted products
{
"containers": {
"adp": [
{
"providerMetadata": {
"dateUpdated": "2026-03-18T23:08:20.721Z",
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE"
},
"references": [
{
"url": "http://www.openwall.com/lists/oss-security/2026/03/18/12"
}
],
"title": "CVE Program Container"
},
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-31973",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-03-19T16:14:49.923184Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-03-19T16:14:59.386Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"product": "samtools",
"vendor": "samtools",
"versions": [
{
"status": "affected",
"version": "\u003e= 1.17, \u003c 1.21.1"
},
{
"status": "affected",
"version": "\u003e= 1.22, \u003c 1.22.2"
},
{
"status": "affected",
"version": "= 1.23"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "SAMtools is a program for reading, manipulating and writing bioinformatics file formats. Starting in version 1.17, in the cram-size command, used to write information about how well CRAM files are compressed, a check to see if the `cram_decode_compression_header()` was missing. If the function returned an error, this could lead to a NULL pointer dereference. Exploiting this bug causes a NULL pointer dereference. Typically this will cause the program to crash. Versions 1.23.1, 1.22.2 and 1.21.1 include fixes for this issue. There is no workaround for this issue."
}
],
"metrics": [
{
"cvssV4_0": {
"attackComplexity": "LOW",
"attackRequirements": "NONE",
"attackVector": "NETWORK",
"baseScore": 6.9,
"baseSeverity": "MEDIUM",
"privilegesRequired": "NONE",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "NONE",
"vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N",
"version": "4.0",
"vulnAvailabilityImpact": "LOW",
"vulnConfidentialityImpact": "NONE",
"vulnIntegrityImpact": "LOW"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-476",
"description": "CWE-476: NULL Pointer Dereference",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-03-18T20:34:00.846Z",
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M"
},
"references": [
{
"name": "https://github.com/samtools/samtools/security/advisories/GHSA-x86f-q6fj-cm43",
"tags": [
"x_refsource_CONFIRM"
],
"url": "https://github.com/samtools/samtools/security/advisories/GHSA-x86f-q6fj-cm43"
},
{
"name": "https://github.com/samtools/samtools/commit/06fc2a219b3d7c94d3f412c09f6d1efd51199f2f",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/samtools/commit/06fc2a219b3d7c94d3f412c09f6d1efd51199f2f"
}
],
"source": {
"advisory": "GHSA-x86f-q6fj-cm43",
"discovery": "UNKNOWN"
},
"title": "NULL pointer dereference in samtools cram-size"
}
},
"cveMetadata": {
"assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"assignerShortName": "GitHub_M",
"cveId": "CVE-2026-31973",
"datePublished": "2026-03-18T20:34:00.846Z",
"dateReserved": "2026-03-10T15:40:10.486Z",
"dateUpdated": "2026-03-19T16:14:59.386Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-31972 (GCVE-0-2026-31972)
Vulnerability from cvelistv5 – Published: 2026-03-18 20:32 – Updated: 2026-03-19 14:22
VLAI
EPSS
VEX
Title
samtools mpileup has use-after-free leading to an invalid read
Summary
SAMtools is a program for reading, manipulating and writing bioinformatics file formats. The `mpileup` command outputs DNA sequences that have been aligned against a known reference. On each output line it writes the reference position, optionally the reference DNA base at that position (obtained from a separate file) and all of the DNA bases that aligned to that position. As the output is ordered by position, reference data that is no longer needed is discarded once it has been printed out. Under certain conditions the data could be discarded too early, leading to an attempt to read from a pointer to freed memory. This bug may allow information about program state to be leaked. It may also cause a program crash through an attempt to access invalid memory. This bug is fixed in versions 1.21.1 and 1.22. There is no workaround for this issue.
Severity
SSVC
Exploitation: none
Automatable: yes
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-03-19 14:22 UTC
CWE
- CWE-416 - Use After Free
Assigner
References
3 references
| URL | Tags |
|---|---|
| https://github.com/samtools/samtools/security/adv… | x_refsource_CONFIRM |
| https://github.com/samtools/samtools/commit/3036e… | x_refsource_MISC |
| http://www.openwall.com/lists/oss-security/2026/0… |
{
"containers": {
"adp": [
{
"providerMetadata": {
"dateUpdated": "2026-03-18T23:08:19.727Z",
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE"
},
"references": [
{
"url": "http://www.openwall.com/lists/oss-security/2026/03/18/11"
}
],
"title": "CVE Program Container"
},
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-31972",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "yes"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-03-19T14:22:51.070597Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-03-19T14:22:59.713Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"product": "samtools",
"vendor": "samtools",
"versions": [
{
"status": "affected",
"version": "\u003c 1.21.1"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "SAMtools is a program for reading, manipulating and writing bioinformatics file formats. The `mpileup` command outputs DNA sequences that have been aligned against a known reference. On each output line it writes the reference position, optionally the reference DNA base at that position (obtained from a separate file) and all of the DNA bases that aligned to that position. As the output is ordered by position, reference data that is no longer needed is discarded once it has been printed out. Under certain conditions the data could be discarded too early, leading to an attempt to read from a pointer to freed memory. This bug may allow information about program state to be leaked. It may also cause a program crash through an attempt to access invalid memory. This bug is fixed in versions 1.21.1 and 1.22. There is no workaround for this issue."
}
],
"metrics": [
{
"cvssV4_0": {
"attackComplexity": "LOW",
"attackRequirements": "NONE",
"attackVector": "NETWORK",
"baseScore": 6.9,
"baseSeverity": "MEDIUM",
"privilegesRequired": "NONE",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "NONE",
"vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N",
"version": "4.0",
"vulnAvailabilityImpact": "LOW",
"vulnConfidentialityImpact": "LOW",
"vulnIntegrityImpact": "NONE"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-416",
"description": "CWE-416: Use After Free",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-03-18T20:32:29.862Z",
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M"
},
"references": [
{
"name": "https://github.com/samtools/samtools/security/advisories/GHSA-72c8-4jf3-f27p",
"tags": [
"x_refsource_CONFIRM"
],
"url": "https://github.com/samtools/samtools/security/advisories/GHSA-72c8-4jf3-f27p"
},
{
"name": "https://github.com/samtools/samtools/commit/3036eb9af945fcef359427a2d359855553da4adf",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/samtools/commit/3036eb9af945fcef359427a2d359855553da4adf"
}
],
"source": {
"advisory": "GHSA-72c8-4jf3-f27p",
"discovery": "UNKNOWN"
},
"title": "samtools mpileup has use-after-free leading to an invalid read"
}
},
"cveMetadata": {
"assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"assignerShortName": "GitHub_M",
"cveId": "CVE-2026-31972",
"datePublished": "2026-03-18T20:32:29.862Z",
"dateReserved": "2026-03-10T15:40:10.486Z",
"dateUpdated": "2026-03-19T14:22:59.713Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-31971 (GCVE-0-2026-31971)
Vulnerability from cvelistv5 – Published: 2026-03-18 19:55 – Updated: 2026-03-18 20:15
VLAI
EPSS
VEX
Title
HTSlib CRAM decoder vulnerable to buffer overflow
Summary
HTSlib is a library for reading and writing bioinformatics file formats. CRAM is a compressed format which stores DNA sequence alignment data using a variety of encodings and compression methods. When reading data encoded using the `BYTE_ARRAY_LEN` method, the `cram_byte_array_len_decode()` failed to validate that the amount of data being unpacked matched the size of the output buffer where it was to be stored. Depending on the data series being read, this could result either in a heap or a stack overflow with attacker-controlled bytes. Depending on the data stream this could result either in a heap buffer overflow or a stack overflow. If a user opens a file crafted to exploit this issue it could lead to the program crashing, overwriting of data structures on the heap or stack in ways not expected by the program, or changing the control flow of the program. It may be possible to use this to obtain arbitrary code execution. Versions 1.23.1, 1.22.2 and 1.21.1 include fixes for this issue. There is no workaround for this issue.
Severity
SSVC
Exploitation: none
Automatable: no
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-03-18 20:15 UTC
CWE
Assigner
References
2 references
| URL | Tags |
|---|---|
| https://github.com/samtools/htslib/security/advis… | x_refsource_CONFIRM |
| https://github.com/samtools/htslib/commit/01cd003… | x_refsource_MISC |
Impacted products
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-31971",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-03-18T20:15:12.038273Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-03-18T20:15:22.414Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"product": "htslib",
"vendor": "samtools",
"versions": [
{
"status": "affected",
"version": "\u003c 1.21.1"
},
{
"status": "affected",
"version": "\u003e= 1.22, \u003c 1.22.2"
},
{
"status": "affected",
"version": "= 1.23"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "HTSlib is a library for reading and writing bioinformatics file formats. CRAM is a compressed format which stores DNA sequence alignment data using a variety of encodings and compression methods. When reading data encoded using the `BYTE_ARRAY_LEN` method, the `cram_byte_array_len_decode()` failed to validate that the amount of data being unpacked matched the size of the output buffer where it was to be stored. Depending on the data series being read, this could result either in a heap or a stack overflow with attacker-controlled bytes. Depending on the data stream this could result either in a heap buffer overflow or a stack overflow. If a user opens a file crafted to exploit this issue it could lead to the program crashing, overwriting of data structures on the heap or stack in ways not expected by the program, or changing the control flow of the program. It may be possible to use this to obtain arbitrary code execution. Versions 1.23.1, 1.22.2 and 1.21.1 include fixes for this issue. There is no workaround for this issue."
}
],
"metrics": [
{
"cvssV4_0": {
"attackComplexity": "LOW",
"attackRequirements": "NONE",
"attackVector": "NETWORK",
"baseScore": 7.1,
"baseSeverity": "HIGH",
"privilegesRequired": "NONE",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "PASSIVE",
"vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N",
"version": "4.0",
"vulnAvailabilityImpact": "LOW",
"vulnConfidentialityImpact": "NONE",
"vulnIntegrityImpact": "HIGH"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-121",
"description": "CWE-121: Stack-based Buffer Overflow",
"lang": "en",
"type": "CWE"
}
]
},
{
"descriptions": [
{
"cweId": "CWE-122",
"description": "CWE-122: Heap-based Buffer Overflow",
"lang": "en",
"type": "CWE"
}
]
},
{
"descriptions": [
{
"cweId": "CWE-787",
"description": "CWE-787: Out-of-bounds Write",
"lang": "en",
"type": "CWE"
}
]
},
{
"descriptions": [
{
"cweId": "CWE-1284",
"description": "CWE-1284: Improper Validation of Specified Quantity in Input",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-03-18T19:55:20.379Z",
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M"
},
"references": [
{
"name": "https://github.com/samtools/htslib/security/advisories/GHSA-jvx4-4wq7-6fmh",
"tags": [
"x_refsource_CONFIRM"
],
"url": "https://github.com/samtools/htslib/security/advisories/GHSA-jvx4-4wq7-6fmh"
},
{
"name": "https://github.com/samtools/htslib/commit/01cd003b46fa2ebea4d9be5475b11217eb4c11be",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/commit/01cd003b46fa2ebea4d9be5475b11217eb4c11be"
}
],
"source": {
"advisory": "GHSA-jvx4-4wq7-6fmh",
"discovery": "UNKNOWN"
},
"title": "HTSlib CRAM decoder vulnerable to buffer overflow"
}
},
"cveMetadata": {
"assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"assignerShortName": "GitHub_M",
"cveId": "CVE-2026-31971",
"datePublished": "2026-03-18T19:55:20.379Z",
"dateReserved": "2026-03-10T15:40:10.486Z",
"dateUpdated": "2026-03-18T20:15:22.414Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-31970 (GCVE-0-2026-31970)
Vulnerability from cvelistv5 – Published: 2026-03-18 19:53 – Updated: 2026-03-18 23:08
VLAI
EPSS
VEX
Title
HTSlib BGZF index file reader has a heap buffer overflow
Summary
HTSlib is a library for reading and writing bioinformatics file formats. GZI files are used to index block-compressed GZIP [BGZF] files. In the GZI loading function, `bgzf_index_load_hfile()`, it was possible to trigger an integer overflow, leading to an under- or zero-sized buffer being allocated to store the index. Sixteen zero bytes would then be written to this buffer, and, depending on the result of the overflow the rest of the file may also be loaded into the buffer as well. If the function did attempt to load the data, it would eventually fail due to not reading the expected number of records, and then try to free the overflowed heap buffer. Exploiting this bug causes a heap buffer overflow. If a user opens a file crafted to exploit this issue, it could lead to the program crashing, or overwriting of data and heap structures in ways not expected by the program. It may be possible to use this to obtain arbitrary code execution. Versions 1.23.1, 1.22.2 and 1.21.1 include fixes for this issue. The easiest work-around is to discard any `.gzi` index files from untrusted sources, and use the `bgzip -r` option to recreate them.
Severity
SSVC
Exploitation: none
Automatable: no
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-03-18 20:14 UTC
CWE
Assigner
References
3 references
| URL | Tags |
|---|---|
| https://github.com/samtools/htslib/security/advis… | x_refsource_CONFIRM |
| https://github.com/samtools/htslib/commit/6dd0d7d… | x_refsource_MISC |
| http://www.openwall.com/lists/oss-security/2026/03/18/9 |
Impacted products
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-31970",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-03-18T20:14:03.491471Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-03-18T20:14:13.390Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
},
{
"providerMetadata": {
"dateUpdated": "2026-03-18T23:08:18.668Z",
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE"
},
"references": [
{
"url": "http://www.openwall.com/lists/oss-security/2026/03/18/9"
}
],
"title": "CVE Program Container"
}
],
"cna": {
"affected": [
{
"product": "htslib",
"vendor": "samtools",
"versions": [
{
"status": "affected",
"version": "\u003c 1.21.1"
},
{
"status": "affected",
"version": "\u003e= 1.22, \u003c 1.22.2"
},
{
"status": "affected",
"version": "= 1.23"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "HTSlib is a library for reading and writing bioinformatics file formats. GZI files are used to index block-compressed GZIP [BGZF] files. In the GZI loading function, `bgzf_index_load_hfile()`, it was possible to trigger an integer overflow, leading to an under- or zero-sized buffer being allocated to store the index. Sixteen zero bytes would then be written to this buffer, and, depending on the result of the overflow the rest of the file may also be loaded into the buffer as well. If the function did attempt to load the data, it would eventually fail due to not reading the expected number of records, and then try to free the overflowed heap buffer. Exploiting this bug causes a heap buffer overflow. If a user opens a file crafted to exploit this issue, it could lead to the program crashing, or overwriting of data and heap structures in ways not expected by the program. It may be possible to use this to obtain arbitrary code execution. Versions 1.23.1, 1.22.2 and 1.21.1 include fixes for this issue. The easiest work-around is to discard any `.gzi` index files from untrusted sources, and use the `bgzip -r` option to recreate them."
}
],
"metrics": [
{
"cvssV4_0": {
"attackComplexity": "LOW",
"attackRequirements": "NONE",
"attackVector": "NETWORK",
"baseScore": 7.1,
"baseSeverity": "HIGH",
"privilegesRequired": "NONE",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "PASSIVE",
"vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N",
"version": "4.0",
"vulnAvailabilityImpact": "LOW",
"vulnConfidentialityImpact": "NONE",
"vulnIntegrityImpact": "HIGH"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-122",
"description": "CWE-122: Heap-based Buffer Overflow",
"lang": "en",
"type": "CWE"
}
]
},
{
"descriptions": [
{
"cweId": "CWE-131",
"description": "CWE-131: Incorrect Calculation of Buffer Size",
"lang": "en",
"type": "CWE"
}
]
},
{
"descriptions": [
{
"cweId": "CWE-190",
"description": "CWE-190: Integer Overflow or Wraparound",
"lang": "en",
"type": "CWE"
}
]
},
{
"descriptions": [
{
"cweId": "CWE-787",
"description": "CWE-787: Out-of-bounds Write",
"lang": "en",
"type": "CWE"
}
]
},
{
"descriptions": [
{
"cweId": "CWE-1284",
"description": "CWE-1284: Improper Validation of Specified Quantity in Input",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-03-18T19:53:18.719Z",
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M"
},
"references": [
{
"name": "https://github.com/samtools/htslib/security/advisories/GHSA-p345-84hx-fq6q",
"tags": [
"x_refsource_CONFIRM"
],
"url": "https://github.com/samtools/htslib/security/advisories/GHSA-p345-84hx-fq6q"
},
{
"name": "https://github.com/samtools/htslib/commit/6dd0d7d0e9e7e2e173a28969e624db8bc8bb5828",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/commit/6dd0d7d0e9e7e2e173a28969e624db8bc8bb5828"
}
],
"source": {
"advisory": "GHSA-p345-84hx-fq6q",
"discovery": "UNKNOWN"
},
"title": "HTSlib BGZF index file reader has a heap buffer overflow"
}
},
"cveMetadata": {
"assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"assignerShortName": "GitHub_M",
"cveId": "CVE-2026-31970",
"datePublished": "2026-03-18T19:53:18.719Z",
"dateReserved": "2026-03-10T15:40:10.485Z",
"dateUpdated": "2026-03-18T23:08:18.668Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-31969 (GCVE-0-2026-31969)
Vulnerability from cvelistv5 – Published: 2026-03-18 19:47 – Updated: 2026-03-18 20:12
VLAI
EPSS
VEX
Title
HTSlib CRAM decoder has a heap buffer overflow
Summary
HTSlib is a library for reading and writing bioinformatics file formats. CRAM is a compressed format which stores DNA sequence alignment data using a variety of encodings and compression methods. When reading data encoded using the `BYTE_ARRAY_STOP` method, an out-by-one error in the `cram_byte_array_stop_decode_char()` function check for a full output buffer could result in a single attacker-controlled byte being written beyond the end of a heap allocation. Exploiting this bug causes a heap buffer overflow. If a user opens a file crafted to exploit this issue, it could lead to the program crashing, or overwriting of data and heap structures in ways not expected by the program. It may be possible to use this to obtain arbitrary code execution. Versions 1.23.1, 1.22.2 and 1.21.1 include fixes for this issue. There is no workaround for this issue.
Severity
SSVC
Exploitation: none
Automatable: no
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-03-18 20:12 UTC
Assigner
References
2 references
| URL | Tags |
|---|---|
| https://github.com/samtools/htslib/security/advis… | x_refsource_CONFIRM |
| https://github.com/samtools/htslib/commit/88cdf69… | x_refsource_MISC |
Impacted products
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-31969",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-03-18T20:12:27.506059Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-03-18T20:12:53.495Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"product": "htslib",
"vendor": "samtools",
"versions": [
{
"status": "affected",
"version": "\u003c 1.21.1"
},
{
"status": "affected",
"version": "\u003e= 1.22, \u003c 1.22.2"
},
{
"status": "affected",
"version": "= 1.23"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "HTSlib is a library for reading and writing bioinformatics file formats. CRAM is a compressed format which stores DNA sequence alignment data using a variety of encodings and compression methods. When reading data encoded using the `BYTE_ARRAY_STOP` method, an out-by-one error in the `cram_byte_array_stop_decode_char()` function check for a full output buffer could result in a single attacker-controlled byte being written beyond the end of a heap allocation. Exploiting this bug causes a heap buffer overflow. If a user opens a file crafted to exploit this issue, it could lead to the program crashing, or overwriting of data and heap structures in ways not expected by the program. It may be possible to use this to obtain arbitrary code execution. Versions 1.23.1, 1.22.2 and 1.21.1 include fixes for this issue. There is no workaround for this issue."
}
],
"metrics": [
{
"cvssV4_0": {
"attackComplexity": "LOW",
"attackRequirements": "NONE",
"attackVector": "NETWORK",
"baseScore": 7.1,
"baseSeverity": "HIGH",
"privilegesRequired": "NONE",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "PASSIVE",
"vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N",
"version": "4.0",
"vulnAvailabilityImpact": "LOW",
"vulnConfidentialityImpact": "NONE",
"vulnIntegrityImpact": "HIGH"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-122",
"description": "CWE-122: Heap-based Buffer Overflow",
"lang": "en",
"type": "CWE"
}
]
},
{
"descriptions": [
{
"cweId": "CWE-787",
"description": "CWE-787: Out-of-bounds Write",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-03-18T19:47:44.893Z",
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M"
},
"references": [
{
"name": "https://github.com/samtools/htslib/security/advisories/GHSA-q4cj-f4h5-fqgc",
"tags": [
"x_refsource_CONFIRM"
],
"url": "https://github.com/samtools/htslib/security/advisories/GHSA-q4cj-f4h5-fqgc"
},
{
"name": "https://github.com/samtools/htslib/commit/88cdf69e4b83bb550ab4f6f7134892c2ad1978f4",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/commit/88cdf69e4b83bb550ab4f6f7134892c2ad1978f4"
}
],
"source": {
"advisory": "GHSA-q4cj-f4h5-fqgc",
"discovery": "UNKNOWN"
},
"title": "HTSlib CRAM decoder has a heap buffer overflow"
}
},
"cveMetadata": {
"assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"assignerShortName": "GitHub_M",
"cveId": "CVE-2026-31969",
"datePublished": "2026-03-18T19:47:44.893Z",
"dateReserved": "2026-03-10T15:40:10.485Z",
"dateUpdated": "2026-03-18T20:12:53.495Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-31968 (GCVE-0-2026-31968)
Vulnerability from cvelistv5 – Published: 2026-03-18 19:38 – Updated: 2026-03-18 19:57
VLAI
EPSS
VEX
Title
HTSlib CRAM decoder vulnerable to buffer overflow
Summary
HTSlib is a library for reading and writing bioinformatics file formats. CRAM is a compressed format which stores DNA sequence alignment data using a variety of encodings and compression methods. For the `VARINT` and `CONST` encodings, incomplete validation of the context in which the encodings were used could result in up to eight bytes being written beyond the end of a heap allocation, or up to eight bytes being written to the location of a one byte variable on the stack, possibly causing the values to adjacent variables to change unexpectedly. Depending on the data stream this could result either in a heap buffer overflow or a stack overflow. If a user opens a file crafted to exploit this issue it could lead to the program crashing, overwriting of data structures on the heap or stack in ways not expected by the program, or changing the control flow of the program. It may be possible to use this to obtain arbitrary code execution. Versions 1.23.1, 1.22.2 and 1.21.1 include fixes for this issue. There is no workaround for this issue.
Severity
SSVC
Exploitation: none
Automatable: yes
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-03-18 19:57 UTC
CWE
Assigner
References
2 references
| URL | Tags |
|---|---|
| https://github.com/samtools/htslib/security/advis… | x_refsource_CONFIRM |
| https://github.com/samtools/htslib/commit/0ec4367… | x_refsource_MISC |
Impacted products
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-31968",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "yes"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-03-18T19:57:24.242380Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-03-18T19:57:36.668Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"product": "htslib",
"vendor": "samtools",
"versions": [
{
"status": "affected",
"version": "\u003c 1.21.1"
},
{
"status": "affected",
"version": "\u003e= 1.22, \u003c 1.22.2"
},
{
"status": "affected",
"version": "= 1.23"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "HTSlib is a library for reading and writing bioinformatics file formats. CRAM is a compressed format which stores DNA sequence alignment data using a variety of encodings and compression methods. For the `VARINT` and `CONST` encodings, incomplete validation of the context in which the encodings were used could result in up to eight bytes being written beyond the end of a heap allocation, or up to eight bytes being written to the location of a one byte variable on the stack, possibly causing the values to adjacent variables to change unexpectedly. Depending on the data stream this could result either in a heap buffer overflow or a stack overflow. If a user opens a file crafted to exploit this issue it could lead to the program crashing, overwriting of data structures on the heap or stack in ways not expected by the program, or changing the control flow of the program. It may be possible to use this to obtain arbitrary code execution. Versions 1.23.1, 1.22.2 and 1.21.1 include fixes for this issue. There is no workaround for this issue."
}
],
"metrics": [
{
"cvssV4_0": {
"attackComplexity": "LOW",
"attackRequirements": "NONE",
"attackVector": "NETWORK",
"baseScore": 8.8,
"baseSeverity": "HIGH",
"privilegesRequired": "NONE",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "NONE",
"vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N",
"version": "4.0",
"vulnAvailabilityImpact": "LOW",
"vulnConfidentialityImpact": "NONE",
"vulnIntegrityImpact": "HIGH"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-121",
"description": "CWE-121: Stack-based Buffer Overflow",
"lang": "en",
"type": "CWE"
}
]
},
{
"descriptions": [
{
"cweId": "CWE-122",
"description": "CWE-122: Heap-based Buffer Overflow",
"lang": "en",
"type": "CWE"
}
]
},
{
"descriptions": [
{
"cweId": "CWE-787",
"description": "CWE-787: Out-of-bounds Write",
"lang": "en",
"type": "CWE"
}
]
},
{
"descriptions": [
{
"cweId": "CWE-843",
"description": "CWE-843: Access of Resource Using Incompatible Type (\u0027Type Confusion\u0027)",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-03-18T19:38:11.370Z",
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M"
},
"references": [
{
"name": "https://github.com/samtools/htslib/security/advisories/GHSA-cgcm-c9r2-p57j",
"tags": [
"x_refsource_CONFIRM"
],
"url": "https://github.com/samtools/htslib/security/advisories/GHSA-cgcm-c9r2-p57j"
},
{
"name": "https://github.com/samtools/htslib/commit/0ec436796eca7b4ce7fcc9b77270c102da29bb2e",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/samtools/htslib/commit/0ec436796eca7b4ce7fcc9b77270c102da29bb2e"
}
],
"source": {
"advisory": "GHSA-cgcm-c9r2-p57j",
"discovery": "UNKNOWN"
},
"title": "HTSlib CRAM decoder vulnerable to buffer overflow"
}
},
"cveMetadata": {
"assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"assignerShortName": "GitHub_M",
"cveId": "CVE-2026-31968",
"datePublished": "2026-03-18T19:38:11.370Z",
"dateReserved": "2026-03-10T15:40:10.485Z",
"dateUpdated": "2026-03-18T19:57:36.668Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}