Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
CVE-2026-62258
Published:November 19, 2026
Updated:November 20, 2026
HTSlib is a library for reading and writing bioinformatics file formats. Prior to 1.21.2, 1.22.3, 1.23.2, and 1.24, the CRAM decoder validates the 254-character query-name limit only after decoding the name into a 1024-byte stack array. An attacker-controlled CRAM record can provide an overlong query name and overflow the local stack buffer before the later validation runs; all CRAM format versions are affected. Opening such a file can crash the process, corrupt stack data, and may permit arbitrary code execution. This issue is fixed in versions 1.21.2, 1.22.3, 1.23.2, and 1.24.
Affected Packages
https://github.com/samtools/htslib.git (GITHUB):
Affected version(s) >=1.23 <1.23.2
Fix Suggestion:
Update to version 1.23.2
https://github.com/samtools/htslib.git (GITHUB):
Affected version(s) >=0.2.0-rc1 <1.21.2 || >=1.0 <1.21.2
Fix Suggestion:
Update to version 1.21.2
https://github.com/samtools/htslib.git (GITHUB):
Affected version(s) >=1.22 <1.22.3
Fix Suggestion:
Update to version 1.22.3
Do you need more information?
Contact Us
CVSS v4
Base Score:
8.8
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
HIGH
Vulnerable System Availability
LOW
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
8.2
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
HIGH
Availability
LOW
Weakness Type (CWE)
Stack-based Buffer Overflow
Out-of-bounds Write