CVE-2026-31963
8.1Samtools · HTSlib
HTSlib contains a heap-based buffer overflow vulnerability in CRAM file processing, which could allow an unauthenticated attacker to trigger a crash or achieve arbitrary code execution.
Executive summary
A heap-based buffer overflow in the HTSlib library poses a high risk of remote code execution or application compromise when processing maliciously crafted CRAM files.
Vulnerability
The vulnerability is an out-of-bounds write (CWE-787) caused by an out-by-one error during the decoding of CRAM file features. An unauthenticated attacker can exploit this by providing a specially crafted CRAM file to an application utilizing the library, resulting in a heap-based buffer overflow.
Business impact
The exploitation of this vulnerability can lead to unauthorized arbitrary code execution, which undermines the integrity and confidentiality of the host system. Given the CVSS score of 8.1, the high potential for system compromise necessitates immediate attention, particularly for environments that process untrusted bioinformatics data as part of their core business operations.
Remediation
Immediate Action: Update HTSlib to version 1.21.1, 1.22.2, or 1.23.1 to apply the necessary security fixes.
Proactive Monitoring: Monitor application logs for unexpected termination or segmentation fault errors that may indicate failed exploitation attempts.
Compensating Controls: Implement strict input validation or sandboxing for any services that automatically ingest or process bioinformatics file formats from external sources.
Exploitation status
Public Exploit Available: No (exploit_available: unknown)
Analyst recommendation
The vulnerability represents a significant security risk for any software relying on HTSlib for CRAM file handling. Organizations should prioritize patching their affected dependencies immediately to prevent potential remote code execution. Given the lack of a viable workaround, upgrading to the patched versions is the only definitive method to mitigate this risk.