Skip to main content
VulnerabilityPublished Updated

CVE-2026-31962: Htslib · CRAM is a compressed format which stores DNA sequence alignment data

Affects htslibSource GCVE Database

0
Compare
Authoritative record:CVE-2026-31962· High 8.8

Not known to be exploited · CVSS 8.8 High.

Data as of 24 Nov 2026, 21:15 UTC

CVSS 4.0 base score
8.8High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.4% chance of exploitation in 30 days – higher than 37% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:H/VA:L/SC:N/SI:N/SA:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 18 Mar 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.

What to do

Affected software

ProductAffectedFixed in
Ubuntu 26.10htslibpkg:deb/ubuntu/htslib?arch=source&distro=stonkingOther threatsAffected
  • =1.22.1+ds2-1
  • =1.22.1+ds2-1build1
Fixed in–
Ubuntu 26.04 LTShtslibpkg:deb/ubuntu/htslib?arch=source&distro=resoluteOther threatsAffected
  • =1.21+ds-1
  • =1.22.1+ds2-1
Fixed in–
Ubuntu 25.10htslibpkg:deb/ubuntu/htslib?arch=source&distro=questingOther threatsAffected
  • =1.21+ds-1
Fixed in–
Ubuntu 24.04 LTShtslibpkg:deb/ubuntu/htslib?arch=source&distro=nobleOther threatsAffected
  • 1.17+ds-1 – 1.19+ds-1.1build3
4 affected builds
Fixed in–
Ubuntu 22.04 LTShtslibpkg:deb/ubuntu/htslib?arch=source&distro=jammyOther threatsAffected
  • =1.13+ds-2
  • =1.13+ds-2build1
Fixed in–
Ubuntu 20.04 LTShtslibpkg:deb/ubuntu/htslib?arch=source&distro=focalOther threatsAffected
  • 1.9-10 – 1.10.2-3ubuntu0.1
7 affected builds
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

HTSlib is a library for reading and writing bioinformatics file formats. CRAM is a compressed format which stores DNA sequence alignment data. While most alignment records store DNA sequence and quality values, the format also allows them to omit this data in certain cases to save space. Due to some quirks of the CRAM format, it is necessary to handle these records carefully as they will actually store data that needs to be consumed and then discarded. Unfortunately the `cram_decode_seq()` did not handle this correctly in some cases. Where this happened it could result in reading a single byte from beyond the end of a heap allocation, followed by writing a single attacker-controlled byte to the same location. 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.

References

Community reviews

Loading reviews…