DEBIAN-CVE-2026-31971

Source
https://security-tracker.debian.org/tracker/CVE-2026-31971
Import Source
https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-31971.json
JSON Data
https://api.osv.dev/v1/vulns/DEBIAN-CVE-2026-31971
Upstream
Published
2026-03-18T20:16:22Z
Modified
2026-09-14T17:03:29Z
Severity
  • 8.1 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Debian:12 / htslib

Package

Name
htslib
Purl
pkg:deb/debian/htslib?arch=source&distro=bookworm

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.16+ds-3
1.17+ds-0+exp1
1.17+ds-1
1.18+ds-0+exp1
1.18+ds-1
1.19+ds-0+exp0
1.19+ds-1
1.19+ds-1+exp1
1.19+ds-1.1
1.20+ds-1
1.20+ds-2
1.21+ds-0+exp1
1.21+ds-0+exp2
1.21+ds-1
1.22.1+ds-1
1.22.1+ds-2
1.22.1+ds2-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Database specific

source
"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-31971.json"

Debian:13 / htslib

Package

Name
htslib
Purl
pkg:deb/debian/htslib?arch=source&distro=trixie

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.21+ds-1
1.22.1+ds-1
1.22.1+ds-2
1.22.1+ds2-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Database specific

source
"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-31971.json"

Debian:14 / htslib

Package

Name
htslib
Purl
pkg:deb/debian/htslib?arch=source&distro=forky

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.21+ds-1
1.22.1+ds-1
1.22.1+ds-2
1.22.1+ds2-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Database specific

source
"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-31971.json"