Skip to main content

Htslib

23 CVEs product

Monthly

CVE-2026-62256 Nov 19, 15:52 HIGH PATCH This Week

A heap-based buffer overflow in HTSlib's fai_retrieve allows a crafted FASTA .fai index to write one byte past the end of an undersized heap allocation, corrupting memory and crashing the process that consumes the file. The bug affects HTSlib releases up to and including 1.23.1, 1.22.2 and 1.21.1, and fires only in the narrow case where the index's recorded line width is exactly one less than the bases-per-line count - any larger discrepancy instead produces a negative-size allocation that fails with NULL and is handled cleanly. According to the CVSS vector the flaw is reachable without authentication (PR:N) but requires the victim to interact with an untrusted index (UI:P), so an attacker must first deliver the malicious .fai file and get the target application to load it and call fai_retrieve; no public exploit is identified at time of analysis and the issue is not in CISA KEV.

Buffer Overflow Heap Overflow Htslib Samtools
NVD GitHub
CVSS 4.0
7.1
EPSS
0.4%
CVE-2026-62258 Nov 19, 15:50 HIGH PATCH This Week

Stack-based buffer overflow in HTSlib's CRAM decoder affects all releases before 1.21.2, 1.22.3, 1.23.2, and 1.24: a crafted CRAM record whose query name exceeds the 254-character specification limit is decoded into a 1024-byte stack array before the length check runs, so an overlong name is written past that buffer. Successful exploitation crashes the process or corrupts stack data and may allow arbitrary code execution, though the vendor rates integrity impact high and availability impact low. Reaching the flaw requires that an HTSlib-based application such as samtools or bcftools, or any downstream consumer, open and decode an attacker-supplied CRAM file, so delivery depends on victim interaction; no public exploit code has been identified at time of analysis and the vendor states there is no workaround, only upgrading to a fixed release.

RCE Buffer Overflow Stack Overflow Htslib Samtools
NVD GitHub
CVSS 4.0
8.8
EPSS
0.8%
CVE-2026-62255 Nov 19, 15:45 HIGH PATCH This Week

Heap-based memory corruption in HTSlib's CRAM index loader (cram_index_load) lets a malformed .crai index drive out-of-bounds memory access when the victim runs any region query on the associated CRAM file. Affected are HTSlib builds before 1.21.2, 1.22.3, 1.23.2 and 1.24, and because cram_index_load never checks the index's reference-sequence count against the CRAM header's count, an oversized index first causes unbounded allocation (denial of service) and, when the index reference count lands within two of INT_MAX, an integer wrap-around in the array-growth calculation that reads past a heap buffer and uses the value as a write pointer. The CVSS 4.0 base score is 7.1 and the assessed vector is AV:N/AC:L/PR:N/UI:R with high integrity and low availability impact; no public exploit code has been identified at time of analysis, and exploitation requires the victim to process an attacker-supplied index.

Buffer Overflow Denial Of Service Heap Overflow Htslib Samtools
NVD GitHub
CVSS 4.0
7.1
EPSS
0.6%
CVE-2026-62257 Nov 19, 15:41 HIGH PATCH This Week

Heap out-of-bounds read and write in HTSlib's experimental CRAM v4 XPACK and XRLE decoders allows a remote, unauthenticated attacker to corrupt heap state by supplying a crafted CRAM file. The decoders cache expanded block pointers into the fixed 512-element slice->block_by_id array using an index partially derived from file contents; the resulting out-of-bounds read can crash the process, and when the read returns NULL the subsequent out-of-bounds pointer write can corrupt heap memory and may permit arbitrary code execution. All versions up to and including 1.23.1, 1.22.2 and 1.21.1 are affected and are fixed in 1.21.2, 1.22.3, 1.23.2 and 1.24; no public exploit code was identified at time of analysis, and exposure is gated on whether a target actually decodes experimental CRAM v4 data using these codecs.

RCE Buffer Overflow Heap Overflow Htslib Samtools
NVD GitHub
CVSS 4.0
8.8
EPSS
0.8%
CVE-2026-63390 Nov 19, 15:37 HIGH PATCH This Week

Heap buffer overflow in HTSlib's BCF reader allows an attacker-crafted BCF file to corrupt heap memory when opened by an affected version (<= 1.21.1, 1.22.2, 1.23.1, or any release before 1.24). The flaw is an integer overflow in the record-length check inside bcf_record_check(), which lets a record bypass validation so the parser reads past the stored data and, when it sets the least significant bit of each accessed byte, writes past the heap buffer - crashing the process, corrupting data and heap structures, and potentially enabling arbitrary code execution. The CVSS 4.0 vector scores this 8.8 (AV:N/AC:L/PR:N/UI:N/VI:H/VA:L), and the independently assessed CVSS 3.1 vector is AV:N/AC:L/PR:N/UI:R with high integrity and low availability impact and no confidentiality impact; exploitation is unauthenticated but in interactive tools requires the victim to open a malicious BCF file, while automated genomics pipelines ingesting untrusted BCF inputs remove that interaction step. No public exploit code and no CISA KEV entry were identified at time of analysis; the priority label is this_week.

RCE Buffer Overflow Heap Overflow Htslib Samtools
NVD GitHub
CVSS 4.0
8.8
EPSS
0.9%
CVE-2026-31971 Mar 18, 19:55 HIGH PATCH This Week

HTSlib, a widely-used bioinformatics library for reading and writing sequence alignment formats, contains a critical buffer overflow vulnerability in its CRAM format decoder. The vulnerability exists in the `cram_byte_array_len_decode()` function which fails to validate that unpacked data matches the output buffer size, affecting HTSlib versions prior to 1.23.1, 1.22.2, and 1.21.1. An attacker can craft a malicious CRAM file that, when opened by a user, triggers either a heap or stack overflow with attacker-controlled bytes, potentially leading to arbitrary code execution, program crash, or memory corruption.

RCE Buffer Overflow Denial Of Service Memory Corruption Heap Overflow +4
NVD GitHub VulDB
CVSS 4.0
7.1
EPSS
0.2%
CVE-2026-31970 Mar 18, 19:53 HIGH PATCH This Week

HTSlib versions prior to 1.23.1, 1.22.2, and 1.21.1 contain a heap buffer overflow vulnerability in the GZI index loading function `bgzf_index_load_hfile()`. An integer overflow during buffer allocation allows attackers to craft malicious `.gzi` files that trigger heap memory corruption, potentially leading to denial of service, data corruption, or remote code execution when a user opens the compromised file. No evidence of active exploitation in the wild has been reported, but the vulnerability is demonstrable and patch availability is confirmed.

RCE Buffer Overflow Denial Of Service Heap Overflow Integer Overflow +3
NVD GitHub VulDB
CVSS 4.0
7.1
EPSS
0.0%
CVE-2026-31969 Mar 18, 19:47 HIGH PATCH This Week

HTSlib versions prior to 1.21.1, 1.22.2, and 1.23.1 contain an out-by-one error in the CRAM decoder's `cram_byte_array_stop_decode_char()` function that allows a single attacker-controlled byte to be written beyond the end of a heap allocation. This heap buffer overflow (CWE-122) affects bioinformatics applications using HTSlib to process CRAM-formatted DNA sequence alignment files, and could enable arbitrary code execution if exploited. No public exploit code or KEV status is currently documented, but patch availability exists for multiple stable release branches.

RCE Buffer Overflow Denial Of Service Heap Overflow Debian +2
NVD GitHub VulDB
CVSS 4.0
7.1
EPSS
0.1%
CVE-2026-31968 Mar 18, 19:38 HIGH PATCH This Week

HTSlib contains a buffer overflow vulnerability in its CRAM format decoder affecting the VARINT and CONST encoding handlers, where incomplete context validation allows writes of up to eight bytes beyond heap allocation boundaries or into stack-allocated single-byte variables. This vulnerability affects HTSlib versions prior to 1.23.1, 1.22.2, and 1.21.1, and impacts any application using the library to process CRAM-formatted bioinformatics data files. An attacker can craft a malicious CRAM file to trigger heap or stack overflow conditions, potentially leading to denial of service, memory corruption, or arbitrary code execution when processed by a vulnerable application.

RCE Buffer Overflow Denial Of Service Memory Corruption Heap Overflow +4
NVD GitHub VulDB
CVSS 4.0
8.8
EPSS
0.0%
CVE-2026-31963 Mar 18, 18:22 HIGH PATCH This Week

HTSlib contains a heap buffer overflow vulnerability in its CRAM decoder caused by an out-by-one error when validating feature boundaries. When a user opens a maliciously crafted CRAM file, an attacker can write one controlled byte beyond the end of a heap buffer, potentially causing application crashes, data corruption, or arbitrary code execution. Versions 1.23.1, 1.22.2, and 1.21.1 include fixes, and patches are available via the official GitHub repository.

RCE Buffer Overflow Denial Of Service Heap Overflow Debian +3
NVD GitHub VulDB
CVSS 4.0
8.8
EPSS
0.1%
CVE-2026-31962 Mar 18, 18:08 HIGH PATCH This Week

HTSlib versions prior to 1.23.1, 1.22.2, and 1.21.1 contain a heap buffer overflow vulnerability in the cram_decode_seq() function when processing CRAM-formatted bioinformatics files with omitted sequence and quality data. An attacker can craft a malicious CRAM file that triggers an out-of-bounds read followed by an attacker-controlled single-byte write to heap memory, potentially enabling arbitrary code execution, data corruption, or denial of service when a user opens the file. No public exploit proof-of-concept has been identified, but the vulnerability is confirmed and patched by the HTSlib project.

RCE Buffer Overflow Denial Of Service Information Disclosure Heap Overflow +4
NVD GitHub VulDB
CVSS 4.0
8.8
EPSS
0.1%
CVE-2026-62260 Nov 19, 15:53 MEDIUM PATCH This Month

Out-of-bounds reads in HTSlib's CRAM decoders - the BETA codec (cram_beta_decode_long/int/char) and the experimental CRAM v4 XPACK codec (cram_xpack_decode_long/int) - allow a crafted CRAM file to make the library read past the supplied input buffer, leaking information about process state or crashing the process. All releases up to and including 1.23.1, 1.22.2 and 1.21.1 are vulnerable; fixes ship in 1.24, 1.23.2, 1.22.3 and 1.21.2. There is no public exploit identified at time of analysis and no confirmed active exploitation; because the attacker must get the victim to decode a malicious CRAM and the impact is limited to a read, this is a moderate-priority issue for pipelines that ingest untrusted alignment files, not a code-execution emergency.

Buffer Overflow Information Disclosure Htslib Samtools
NVD GitHub
CVSS 4.0
6.9
EPSS
0.5%
CVE-2026-62259 Nov 19, 15:44 MEDIUM PATCH This Month

An out-of-bounds read in HTSlib's experimental CRAM v4 XPACK and XRLE decoders (cram_xpack_decode_char and cram_xrle_decode_char) lets crafted CRAM data drive decode sizes past the expanded input array, so a decoding process can read beyond the supplied buffer and either leak process-state information or crash on invalid memory access. All HTSlib releases up to and including 1.23.1, 1.22.2 and 1.21.1 are affected, with fixes published in 1.24, 1.23.2, 1.22.3 and 1.21.2; per the CVSS vector (AV:N/AC:L/PR:N/UI:N) no authentication or user interaction is required, but exploitation is gated on the target actually parsing attacker-supplied CRAM data through these experimental code paths. Impact is bounded to information disclosure and denial of service rather than code execution, and no public exploit was identified at the time of analysis; the vendor states there is no workaround other than updating.

Buffer Overflow Information Disclosure Htslib Samtools
NVD GitHub
CVSS 4.0
6.9
EPSS
0.5%
CVE-2026-116742 Oct 26, 21:52 MEDIUM PATCH This Month

Heap out-of-bounds write and read in HTSlib through 1.24 is triggered when a crafted .gzi BGZF index stores an entry count of 0xFFFFFFFF, which truncates the 32-bit noffs/moffs fields in bgzf_index_load_hfile() to zero and collapses the index allocation to malloc(0); subsequent writes past that buffer and an offs[-1] read in bgzf_useek() corrupt heap memory or crash HTSlib-based tools such as samtools and bcftools. The vector is local: the victim must load an attacker-supplied .gzi index file and then perform a seek, with assessed impact limited to Low integrity and Low availability - no confidentiality impact and no confirmed code execution. EPSS is 0.12% (2nd percentile), there is no CISA KEV listing, and a public technical write-up describing the truncation exists; it is not verified as working exploit code.

Buffer Overflow Htslib
NVD GitHub
CVSS 4.0
4.8
EPSS
0.1%
CVE-2026-31967 Mar 18, 19:15 MEDIUM PATCH This Month

HTSlib versions prior to 1.23.1, 1.22.2, and 1.21.1 contain an out-of-bounds read vulnerability in the CRAM file parser where the mate reference ID field is not validated during decoding. An attacker can craft a malicious CRAM file that, when processed by affected applications (particularly those converting CRAM to SAM format), triggers out-of-bounds array access that may leak sensitive information about program state or cause a denial of service through memory access violations. No public exploit has been reported, but no workaround exists, making patching essential.

Denial Of Service Debian Htslib Samtools
NVD GitHub VulDB
CVSS 4.0
6.9
EPSS
0.0%
CVE-2026-31966 Mar 18, 18:58 MEDIUM PATCH This Month

HTSlib versions prior to 1.21.1, 1.22.2, and 1.23.1 contain a buffer over-read vulnerability in the CRAM decoder's cram_decode_seq() function that fails to properly validate feature data offsets. An attacker can craft malicious CRAM files to read arbitrary data from memory adjacent to reference sequence buffers, leading to information disclosure of program state or denial of service through memory access violations. No active exploitation has been documented, but patches are available from the vendor.

Buffer Overflow Denial Of Service Information Disclosure Debian Htslib +1
NVD GitHub VulDB
CVSS 4.0
6.9
EPSS
0.0%
CVE-2026-31965 Mar 18, 18:50 MEDIUM PATCH This Month

HTSlib contains an out-of-bounds read vulnerability in the cram_decode_slice() function that fails to validate the reference ID field early enough during CRAM file parsing, allowing two separate out-of-bounds reads before error detection. The vulnerability affects HTSlib versions prior to 1.23.1, 1.22.2, and 1.21.1, and can result in information disclosure through leaked memory values or application crashes when processing malicious or corrupted CRAM bioinformatics files. While the function reports an error after the reads occur, the window for exploitation exists and the practical impact depends on memory layout and application context.

Buffer Overflow Denial Of Service Information Disclosure Debian Red Hat +2
NVD GitHub VulDB
CVSS 4.0
6.9
EPSS
0.0%
CVE-2026-31964 Mar 18, 18:27 MEDIUM PATCH This Month

HTSlib, a bioinformatics library for reading and writing sequence alignment formats, contains a null pointer dereference vulnerability in its CRAM format decoder affecting versions before 1.23.1, 1.22.2, and 1.21.1. The vulnerability exists in the CONST, XPACK, and XRLE encodings which fail to properly handle CRAM records with omitted sequence or quality data, causing attempts to write to NULL pointers when these records are decoded. An attacker can exploit this by providing a malformed CRAM file to any application using vulnerable HTSlib versions, resulting in denial of service through application crash, with no known active exploitation or public proof-of-concept at this time.

Denial Of Service Debian Red Hat Htslib Samtools
NVD GitHub VulDB
CVSS 4.0
6.9
EPSS
0.0%
CVE-2018-14329 Jul 17, 02:29 MEDIUM POC This Month

In HTSlib 1.8, a race condition in cram/cram_io.c might allow local users to overwrite arbitrary files via a symlink attack. Rated medium severity (CVSS 4.7). Public exploit code available and no vendor patch available.

Information Disclosure Htslib
NVD GitHub
CVSS 3.1
4.7
EPSS
0.2%
CVE-2018-13845 Jul 10, 18:29 CRITICAL Act Now

An issue has been found in HTSlib 1.8. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable, no authentication required, low attack complexity. No vendor patch available.

Buffer Overflow Information Disclosure Htslib
NVD GitHub
CVSS 3.0
9.8
EPSS
1.6%
CVE-2018-13844 Jul 10, 18:29 HIGH This Week

An issue has been found in HTSlib 1.8. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no authentication required, low attack complexity. No vendor patch available.

Denial Of Service Htslib
NVD GitHub
CVSS 3.1
7.5
EPSS
1.4%
CVE-2018-13843 Jul 10, 18:29 HIGH POC This Week

An issue has been found in HTSlib 1.8. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no authentication required, low attack complexity. Public exploit code available and no vendor patch available.

Information Disclosure Htslib
NVD GitHub
CVSS 3.0
7.5
EPSS
1.5%
CVE-2017-1000206 Nov 17, 15:29 CRITICAL Act Now

samtools htslib library version 1.4.0 and earlier is vulnerable to buffer overflow in the CRAM rANS codec resulting in potential arbitrary code execution. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable, no authentication required, low attack complexity. No vendor patch available.

RCE Buffer Overflow Htslib
NVD GitHub
CVSS 3.0
9.8
EPSS
0.6%
EPSS 0% CVSS 7.1
HIGH PATCH This Week

A heap-based buffer overflow in HTSlib's fai_retrieve allows a crafted FASTA .fai index to write one byte past the end of an undersized heap allocation, corrupting memory and crashing the process that consumes the file. The bug affects HTSlib releases up to and including 1.23.1, 1.22.2 and 1.21.1, and fires only in the narrow case where the index's recorded line width is exactly one less than the bases-per-line count - any larger discrepancy instead produces a negative-size allocation that fails with NULL and is handled cleanly. According to the CVSS vector the flaw is reachable without authentication (PR:N) but requires the victim to interact with an untrusted index (UI:P), so an attacker must first deliver the malicious .fai file and get the target application to load it and call fai_retrieve; no public exploit is identified at time of analysis and the issue is not in CISA KEV.

Buffer Overflow Heap Overflow Htslib +1
NVD GitHub
EPSS 1% CVSS 8.8
HIGH PATCH This Week

Stack-based buffer overflow in HTSlib's CRAM decoder affects all releases before 1.21.2, 1.22.3, 1.23.2, and 1.24: a crafted CRAM record whose query name exceeds the 254-character specification limit is decoded into a 1024-byte stack array before the length check runs, so an overlong name is written past that buffer. Successful exploitation crashes the process or corrupts stack data and may allow arbitrary code execution, though the vendor rates integrity impact high and availability impact low. Reaching the flaw requires that an HTSlib-based application such as samtools or bcftools, or any downstream consumer, open and decode an attacker-supplied CRAM file, so delivery depends on victim interaction; no public exploit code has been identified at time of analysis and the vendor states there is no workaround, only upgrading to a fixed release.

RCE Buffer Overflow Stack Overflow +2
NVD GitHub
EPSS 1% CVSS 7.1
HIGH PATCH This Week

Heap-based memory corruption in HTSlib's CRAM index loader (cram_index_load) lets a malformed .crai index drive out-of-bounds memory access when the victim runs any region query on the associated CRAM file. Affected are HTSlib builds before 1.21.2, 1.22.3, 1.23.2 and 1.24, and because cram_index_load never checks the index's reference-sequence count against the CRAM header's count, an oversized index first causes unbounded allocation (denial of service) and, when the index reference count lands within two of INT_MAX, an integer wrap-around in the array-growth calculation that reads past a heap buffer and uses the value as a write pointer. The CVSS 4.0 base score is 7.1 and the assessed vector is AV:N/AC:L/PR:N/UI:R with high integrity and low availability impact; no public exploit code has been identified at time of analysis, and exploitation requires the victim to process an attacker-supplied index.

Buffer Overflow Denial Of Service Heap Overflow +2
NVD GitHub
EPSS 1% CVSS 8.8
HIGH PATCH This Week

Heap out-of-bounds read and write in HTSlib's experimental CRAM v4 XPACK and XRLE decoders allows a remote, unauthenticated attacker to corrupt heap state by supplying a crafted CRAM file. The decoders cache expanded block pointers into the fixed 512-element slice->block_by_id array using an index partially derived from file contents; the resulting out-of-bounds read can crash the process, and when the read returns NULL the subsequent out-of-bounds pointer write can corrupt heap memory and may permit arbitrary code execution. All versions up to and including 1.23.1, 1.22.2 and 1.21.1 are affected and are fixed in 1.21.2, 1.22.3, 1.23.2 and 1.24; no public exploit code was identified at time of analysis, and exposure is gated on whether a target actually decodes experimental CRAM v4 data using these codecs.

RCE Buffer Overflow Heap Overflow +2
NVD GitHub
EPSS 1% CVSS 8.8
HIGH PATCH This Week

Heap buffer overflow in HTSlib's BCF reader allows an attacker-crafted BCF file to corrupt heap memory when opened by an affected version (<= 1.21.1, 1.22.2, 1.23.1, or any release before 1.24). The flaw is an integer overflow in the record-length check inside bcf_record_check(), which lets a record bypass validation so the parser reads past the stored data and, when it sets the least significant bit of each accessed byte, writes past the heap buffer - crashing the process, corrupting data and heap structures, and potentially enabling arbitrary code execution. The CVSS 4.0 vector scores this 8.8 (AV:N/AC:L/PR:N/UI:N/VI:H/VA:L), and the independently assessed CVSS 3.1 vector is AV:N/AC:L/PR:N/UI:R with high integrity and low availability impact and no confidentiality impact; exploitation is unauthenticated but in interactive tools requires the victim to open a malicious BCF file, while automated genomics pipelines ingesting untrusted BCF inputs remove that interaction step. No public exploit code and no CISA KEV entry were identified at time of analysis; the priority label is this_week.

RCE Buffer Overflow Heap Overflow +2
NVD GitHub
EPSS 0% CVSS 7.1
HIGH PATCH This Week

HTSlib, a widely-used bioinformatics library for reading and writing sequence alignment formats, contains a critical buffer overflow vulnerability in its CRAM format decoder. The vulnerability exists in the `cram_byte_array_len_decode()` function which fails to validate that unpacked data matches the output buffer size, affecting HTSlib versions prior to 1.23.1, 1.22.2, and 1.21.1. An attacker can craft a malicious CRAM file that, when opened by a user, triggers either a heap or stack overflow with attacker-controlled bytes, potentially leading to arbitrary code execution, program crash, or memory corruption.

RCE Buffer Overflow Denial Of Service +6
NVD GitHub VulDB
EPSS 0% CVSS 7.1
HIGH PATCH This Week

HTSlib versions prior to 1.23.1, 1.22.2, and 1.21.1 contain a heap buffer overflow vulnerability in the GZI index loading function `bgzf_index_load_hfile()`. An integer overflow during buffer allocation allows attackers to craft malicious `.gzi` files that trigger heap memory corruption, potentially leading to denial of service, data corruption, or remote code execution when a user opens the compromised file. No evidence of active exploitation in the wild has been reported, but the vulnerability is demonstrable and patch availability is confirmed.

RCE Buffer Overflow Denial Of Service +5
NVD GitHub VulDB
EPSS 0% CVSS 7.1
HIGH PATCH This Week

HTSlib versions prior to 1.21.1, 1.22.2, and 1.23.1 contain an out-by-one error in the CRAM decoder's `cram_byte_array_stop_decode_char()` function that allows a single attacker-controlled byte to be written beyond the end of a heap allocation. This heap buffer overflow (CWE-122) affects bioinformatics applications using HTSlib to process CRAM-formatted DNA sequence alignment files, and could enable arbitrary code execution if exploited. No public exploit code or KEV status is currently documented, but patch availability exists for multiple stable release branches.

RCE Buffer Overflow Denial Of Service +4
NVD GitHub VulDB
EPSS 0% CVSS 8.8
HIGH PATCH This Week

HTSlib contains a buffer overflow vulnerability in its CRAM format decoder affecting the VARINT and CONST encoding handlers, where incomplete context validation allows writes of up to eight bytes beyond heap allocation boundaries or into stack-allocated single-byte variables. This vulnerability affects HTSlib versions prior to 1.23.1, 1.22.2, and 1.21.1, and impacts any application using the library to process CRAM-formatted bioinformatics data files. An attacker can craft a malicious CRAM file to trigger heap or stack overflow conditions, potentially leading to denial of service, memory corruption, or arbitrary code execution when processed by a vulnerable application.

RCE Buffer Overflow Denial Of Service +6
NVD GitHub VulDB
EPSS 0% CVSS 8.8
HIGH PATCH This Week

HTSlib contains a heap buffer overflow vulnerability in its CRAM decoder caused by an out-by-one error when validating feature boundaries. When a user opens a maliciously crafted CRAM file, an attacker can write one controlled byte beyond the end of a heap buffer, potentially causing application crashes, data corruption, or arbitrary code execution. Versions 1.23.1, 1.22.2, and 1.21.1 include fixes, and patches are available via the official GitHub repository.

RCE Buffer Overflow Denial Of Service +5
NVD GitHub VulDB
EPSS 0% CVSS 8.8
HIGH PATCH This Week

HTSlib versions prior to 1.23.1, 1.22.2, and 1.21.1 contain a heap buffer overflow vulnerability in the cram_decode_seq() function when processing CRAM-formatted bioinformatics files with omitted sequence and quality data. An attacker can craft a malicious CRAM file that triggers an out-of-bounds read followed by an attacker-controlled single-byte write to heap memory, potentially enabling arbitrary code execution, data corruption, or denial of service when a user opens the file. No public exploit proof-of-concept has been identified, but the vulnerability is confirmed and patched by the HTSlib project.

RCE Buffer Overflow Denial Of Service +6
NVD GitHub VulDB
EPSS 1% CVSS 6.9
MEDIUM PATCH This Month

Out-of-bounds reads in HTSlib's CRAM decoders - the BETA codec (cram_beta_decode_long/int/char) and the experimental CRAM v4 XPACK codec (cram_xpack_decode_long/int) - allow a crafted CRAM file to make the library read past the supplied input buffer, leaking information about process state or crashing the process. All releases up to and including 1.23.1, 1.22.2 and 1.21.1 are vulnerable; fixes ship in 1.24, 1.23.2, 1.22.3 and 1.21.2. There is no public exploit identified at time of analysis and no confirmed active exploitation; because the attacker must get the victim to decode a malicious CRAM and the impact is limited to a read, this is a moderate-priority issue for pipelines that ingest untrusted alignment files, not a code-execution emergency.

Buffer Overflow Information Disclosure Htslib +1
NVD GitHub
EPSS 1% CVSS 6.9
MEDIUM PATCH This Month

An out-of-bounds read in HTSlib's experimental CRAM v4 XPACK and XRLE decoders (cram_xpack_decode_char and cram_xrle_decode_char) lets crafted CRAM data drive decode sizes past the expanded input array, so a decoding process can read beyond the supplied buffer and either leak process-state information or crash on invalid memory access. All HTSlib releases up to and including 1.23.1, 1.22.2 and 1.21.1 are affected, with fixes published in 1.24, 1.23.2, 1.22.3 and 1.21.2; per the CVSS vector (AV:N/AC:L/PR:N/UI:N) no authentication or user interaction is required, but exploitation is gated on the target actually parsing attacker-supplied CRAM data through these experimental code paths. Impact is bounded to information disclosure and denial of service rather than code execution, and no public exploit was identified at the time of analysis; the vendor states there is no workaround other than updating.

Buffer Overflow Information Disclosure Htslib +1
NVD GitHub
EPSS 0% CVSS 4.8
MEDIUM PATCH This Month

Heap out-of-bounds write and read in HTSlib through 1.24 is triggered when a crafted .gzi BGZF index stores an entry count of 0xFFFFFFFF, which truncates the 32-bit noffs/moffs fields in bgzf_index_load_hfile() to zero and collapses the index allocation to malloc(0); subsequent writes past that buffer and an offs[-1] read in bgzf_useek() corrupt heap memory or crash HTSlib-based tools such as samtools and bcftools. The vector is local: the victim must load an attacker-supplied .gzi index file and then perform a seek, with assessed impact limited to Low integrity and Low availability - no confidentiality impact and no confirmed code execution. EPSS is 0.12% (2nd percentile), there is no CISA KEV listing, and a public technical write-up describing the truncation exists; it is not verified as working exploit code.

Buffer Overflow Htslib
NVD GitHub
EPSS 0% CVSS 6.9
MEDIUM PATCH This Month

HTSlib versions prior to 1.23.1, 1.22.2, and 1.21.1 contain an out-of-bounds read vulnerability in the CRAM file parser where the mate reference ID field is not validated during decoding. An attacker can craft a malicious CRAM file that, when processed by affected applications (particularly those converting CRAM to SAM format), triggers out-of-bounds array access that may leak sensitive information about program state or cause a denial of service through memory access violations. No public exploit has been reported, but no workaround exists, making patching essential.

Denial Of Service Debian Htslib +1
NVD GitHub VulDB
EPSS 0% CVSS 6.9
MEDIUM PATCH This Month

HTSlib versions prior to 1.21.1, 1.22.2, and 1.23.1 contain a buffer over-read vulnerability in the CRAM decoder's cram_decode_seq() function that fails to properly validate feature data offsets. An attacker can craft malicious CRAM files to read arbitrary data from memory adjacent to reference sequence buffers, leading to information disclosure of program state or denial of service through memory access violations. No active exploitation has been documented, but patches are available from the vendor.

Buffer Overflow Denial Of Service Information Disclosure +3
NVD GitHub VulDB
EPSS 0% CVSS 6.9
MEDIUM PATCH This Month

HTSlib contains an out-of-bounds read vulnerability in the cram_decode_slice() function that fails to validate the reference ID field early enough during CRAM file parsing, allowing two separate out-of-bounds reads before error detection. The vulnerability affects HTSlib versions prior to 1.23.1, 1.22.2, and 1.21.1, and can result in information disclosure through leaked memory values or application crashes when processing malicious or corrupted CRAM bioinformatics files. While the function reports an error after the reads occur, the window for exploitation exists and the practical impact depends on memory layout and application context.

Buffer Overflow Denial Of Service Information Disclosure +4
NVD GitHub VulDB
EPSS 0% CVSS 6.9
MEDIUM PATCH This Month

HTSlib, a bioinformatics library for reading and writing sequence alignment formats, contains a null pointer dereference vulnerability in its CRAM format decoder affecting versions before 1.23.1, 1.22.2, and 1.21.1. The vulnerability exists in the CONST, XPACK, and XRLE encodings which fail to properly handle CRAM records with omitted sequence or quality data, causing attempts to write to NULL pointers when these records are decoded. An attacker can exploit this by providing a malformed CRAM file to any application using vulnerable HTSlib versions, resulting in denial of service through application crash, with no known active exploitation or public proof-of-concept at this time.

Denial Of Service Debian Red Hat +2
NVD GitHub VulDB
EPSS 0% CVSS 4.7
MEDIUM POC This Month

In HTSlib 1.8, a race condition in cram/cram_io.c might allow local users to overwrite arbitrary files via a symlink attack. Rated medium severity (CVSS 4.7). Public exploit code available and no vendor patch available.

Information Disclosure Htslib
NVD GitHub
EPSS 2% CVSS 9.8
CRITICAL Act Now

An issue has been found in HTSlib 1.8. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable, no authentication required, low attack complexity. No vendor patch available.

Buffer Overflow Information Disclosure Htslib
NVD GitHub
EPSS 1% CVSS 7.5
HIGH This Week

An issue has been found in HTSlib 1.8. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no authentication required, low attack complexity. No vendor patch available.

Denial Of Service Htslib
NVD GitHub
EPSS 1% CVSS 7.5
HIGH POC This Week

An issue has been found in HTSlib 1.8. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no authentication required, low attack complexity. Public exploit code available and no vendor patch available.

Information Disclosure Htslib
NVD GitHub
EPSS 1% CVSS 9.8
CRITICAL Act Now

samtools htslib library version 1.4.0 and earlier is vulnerable to buffer overflow in the CRAM rANS codec resulting in potential arbitrary code execution. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable, no authentication required, low attack complexity. No vendor patch available.

RCE Buffer Overflow Htslib
NVD GitHub

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy