{"schema_version":"1.7.2","id":"OESA-2026-2547","modified":"2026-06-05T15:48:18Z","published":"2026-06-05T15:48:18Z","upstream":["CVE-2026-31962"],"summary":"htslib security update","details":"HTSlib is an implementation of a unified C library for accessing common file  formats, such as SAM, CRAM and VCF, used for high-throughput sequencing data,  and is the core library used by samtools and bcftools. HTSlib only depends on  zlib. It is known to be compatible with gcc, g++ and clang. HTSlib implements a generalized BAM index, with file extension .csi ( coordinate-sorted index). The HTSlib file reader first looks for the new index and then for the old if the new index is absent.\r\n\r\nSecurity Fix(es):\n\nHTSlib 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.(CVE-2026-31962)","affected":[{"package":{"ecosystem":"openEuler:24.03-LTS-SP3","name":"htslib","purl":"pkg:rpm/openEuler/htslib&distro=openEuler-24.03-LTS-SP3"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.19-2.oe2403sp3"}]}],"ecosystem_specific":{"aarch64":["htslib-1.19-2.oe2403sp3.aarch64.rpm","htslib-debuginfo-1.19-2.oe2403sp3.aarch64.rpm","htslib-debugsource-1.19-2.oe2403sp3.aarch64.rpm","htslib-devel-1.19-2.oe2403sp3.aarch64.rpm","htslib-tools-1.19-2.oe2403sp3.aarch64.rpm"],"src":["htslib-1.19-2.oe2403sp3.src.rpm"],"x86_64":["htslib-1.19-2.oe2403sp3.x86_64.rpm","htslib-debuginfo-1.19-2.oe2403sp3.x86_64.rpm","htslib-debugsource-1.19-2.oe2403sp3.x86_64.rpm","htslib-devel-1.19-2.oe2403sp3.x86_64.rpm","htslib-tools-1.19-2.oe2403sp3.x86_64.rpm"]}}],"references":[{"type":"ADVISORY","url":"https://www.openeuler.org/zh/security/security-bulletins/detail/?id=openEuler-SA-2026-2547"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31962"}],"database_specific":{"severity":"High"}}
