CVE Explorer
CVE-2026-31971
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 stac
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
1
Preserved source conflicts
No provider value was silently selected as the winner.
cwe · 4 assertions
{"cweId":"CWE-122","description":"CWE-122: Heap-based Buffer Overflow","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:a5297b62a81d38424efed55e2e0a767d528e2475fc82e41ec5fe4b08a61edddf · sha256:f4c07e6cc56c7b0a… · /containers/cna/problemTypes/1/descriptions/0
{"cweId":"CWE-1284","description":"CWE-1284: Improper Validation of Specified Quantity in Input","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:a5297b62a81d38424efed55e2e0a767d528e2475fc82e41ec5fe4b08a61edddf · sha256:f4c07e6cc56c7b0a… · /containers/cna/problemTypes/3/descriptions/0
{"cweId":"CWE-121","description":"CWE-121: Stack-based Buffer Overflow","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:a5297b62a81d38424efed55e2e0a767d528e2475fc82e41ec5fe4b08a61edddf · sha256:f4c07e6cc56c7b0a… · /containers/cna/problemTypes/0/descriptions/0
{"cweId":"CWE-787","description":"CWE-787: Out-of-bounds Write","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:a5297b62a81d38424efed55e2e0a767d528e2475fc82e41ec5fe4b08a61edddf · sha256:f4c07e6cc56c7b0a… · /containers/cna/problemTypes/2/descriptions/0
Affected products and versions
1 source assertion{"product":"htslib","vendor":"samtools","versions":[{"status":"affected","version":"< 1.21.1"},{"status":"affected","version":">= 1.22, < 1.22.2"},{"status":"affected","version":"= 1.23"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:a5297b62a81d38424efed55e2e0a767d528e2475fc82e41ec5fe4b08a61edddf · sha256:f4c07e6cc56c7b0a… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"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"},"metric_type":"cvssV4_0"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:a5297b62a81d38424efed55e2e0a767d528e2475fc82e41ec5fe4b08a61edddf · sha256:f4c07e6cc56c7b0a… · /containers/cna/metrics/0/cvssV4_0
CWE assertions
4 source assertions{"cweId":"CWE-122","description":"CWE-122: Heap-based Buffer Overflow","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:a5297b62a81d38424efed55e2e0a767d528e2475fc82e41ec5fe4b08a61edddf · sha256:f4c07e6cc56c7b0a… · /containers/cna/problemTypes/1/descriptions/0
{"cweId":"CWE-1284","description":"CWE-1284: Improper Validation of Specified Quantity in Input","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:a5297b62a81d38424efed55e2e0a767d528e2475fc82e41ec5fe4b08a61edddf · sha256:f4c07e6cc56c7b0a… · /containers/cna/problemTypes/3/descriptions/0
{"cweId":"CWE-121","description":"CWE-121: Stack-based Buffer Overflow","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:a5297b62a81d38424efed55e2e0a767d528e2475fc82e41ec5fe4b08a61edddf · sha256:f4c07e6cc56c7b0a… · /containers/cna/problemTypes/0/descriptions/0
{"cweId":"CWE-787","description":"CWE-787: Out-of-bounds Write","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:a5297b62a81d38424efed55e2e0a767d528e2475fc82e41ec5fe4b08a61edddf · sha256:f4c07e6cc56c7b0a… · /containers/cna/problemTypes/2/descriptions/0
Source references
2 source assertions{"name":"https://github.com/samtools/htslib/commit/01cd003b46fa2ebea4d9be5475b11217eb4c11be","tags":["x_refsource_MISC"],"url":"https://github.com/samtools/htslib/commit/01cd003b46fa2ebea4d9be5475b11217eb4c11be"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:a5297b62a81d38424efed55e2e0a767d528e2475fc82e41ec5fe4b08a61edddf · sha256:f4c07e6cc56c7b0a… · /containers/cna/references/1
{"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"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:a5297b62a81d38424efed55e2e0a767d528e2475fc82e41ec5fe4b08a61edddf · sha256:f4c07e6cc56c7b0a… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.