Description
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
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | htslib | 1.4.1-1 | — |
| Debian 13 | htslib | 1.4.1-1 | — |
| Debian 12 | htslib | 1.4.1-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 18.04 LTS | htslib | 1.7-2ubuntu0.1~esm1 | USN-4802-1 |
| Ubuntu Pro 16.04 LTS | htslib | 1.2.1-2ubuntu1+esm1 | USN-4802-1 |
| Ubuntu Pro 14.04 LTS | htslib | 0.2.0~rc3-1ubuntu0.1~esm1 | USN-4802-1 |
Advisories 1
- USN-4802-1 htslib vulnerabilities Ubuntu Security Notices (USN) · Jun 29, 2026