CVE Explorer
CVE-2026-31965
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, validation of the reference id field occurred too late, allowing two out of bounds reads to occur before the invalid data was detected. The bug does allow two values to be leaked to the caller, however as the function reports an error it may be difficult to exploit them. It is also p
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
1
Preserved source conflicts
No provider value was silently selected as the winner.
cwe · 2 assertions
{"cweId":"CWE-129","description":"CWE-129: Improper Validation of Array Index","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:f9486717a700348c715127be686f5e4fa73aac38fa4822e3ee8b454d9f3b4170 · sha256:d6aa08442425fe0d… · /containers/cna/problemTypes/1/descriptions/0
{"cweId":"CWE-125","description":"CWE-125: Out-of-bounds Read","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:f9486717a700348c715127be686f5e4fa73aac38fa4822e3ee8b454d9f3b4170 · sha256:d6aa08442425fe0d… · /containers/cna/problemTypes/0/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:f9486717a700348c715127be686f5e4fa73aac38fa4822e3ee8b454d9f3b4170 · sha256:d6aa08442425fe0d… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"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"},"metric_type":"cvssV4_0"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:f9486717a700348c715127be686f5e4fa73aac38fa4822e3ee8b454d9f3b4170 · sha256:d6aa08442425fe0d… · /containers/cna/metrics/0/cvssV4_0
CWE assertions
2 source assertions{"cweId":"CWE-129","description":"CWE-129: Improper Validation of Array Index","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:f9486717a700348c715127be686f5e4fa73aac38fa4822e3ee8b454d9f3b4170 · sha256:d6aa08442425fe0d… · /containers/cna/problemTypes/1/descriptions/0
{"cweId":"CWE-125","description":"CWE-125: Out-of-bounds Read","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:f9486717a700348c715127be686f5e4fa73aac38fa4822e3ee8b454d9f3b4170 · sha256:d6aa08442425fe0d… · /containers/cna/problemTypes/0/descriptions/0
Source references
2 source assertions{"name":"https://github.com/samtools/htslib/commit/9cefb46453ad471e933b8212d4f45920524d3357","tags":["x_refsource_MISC"],"url":"https://github.com/samtools/htslib/commit/9cefb46453ad471e933b8212d4f45920524d3357"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:f9486717a700348c715127be686f5e4fa73aac38fa4822e3ee8b454d9f3b4170 · sha256:d6aa08442425fe0d… · /containers/cna/references/1
{"name":"https://github.com/samtools/htslib/security/advisories/GHSA-mqm2-v645-3qhr","tags":["x_refsource_CONFIRM"],"url":"https://github.com/samtools/htslib/security/advisories/GHSA-mqm2-v645-3qhr"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:f9486717a700348c715127be686f5e4fa73aac38fa4822e3ee8b454d9f3b4170 · sha256:d6aa08442425fe0d… · /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.