CVE-2026-62257

Source
https://cve.org/CVERecord?id=CVE-2026-62257
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-62257.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-62257
Aliases
  • GHSA-6q7c-m967-9v37
Published
2026-11-19T15:41:55Z
Modified
2026-11-19T17:00:39Z
Severity
  • 8.8 (High) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N CVSS Calculator
Summary
HTSlib: Heap read and write overflow in HTSlib CRAM 4.0 decoder
Details

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 experimental CRAM v4 XPACK and XRLE decoders cache expanded block pointers at indexes beyond the 512-element slice->block_by_id array. An array index partially controlled by data in the input file first causes an out-of-bounds read to determine whether a block is cached; a null value then causes allocation of a block and an out-of-bounds pointer write to the same element. The invalid read may crash the process, while the write may corrupt heap state and could permit arbitrary code execution. This issue is fixed in versions 1.21.2, 1.22.3, 1.23.2, and 1.24.

Database specific
{
    "cna_assigner":  "GitHub_M",
    "cwe_ids":  [
        "CWE-122",
        "CWE-125",
        "CWE-787"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/62xxx/CVE-2026-62257.json"
}
References

Affected packages

Git / github.com/samtools/htslib

Affected ranges

Type
GIT
Repo
https://github.com/samtools/htslib
Events
Database specific
Show details
{
    "extracted_events":  [
        {
            "range":  [
                {
                    "introduced":  "0"
                },
                {
                    "fixed":  "1.21.2"
                }
            ],
            "source":  "AFFECTED_FIELD",
            "strategy":  "StringRangeExpression"
        },
        {
            "range":  [
                {
                    "introduced":  "1.22.0"
                },
                {
                    "fixed":  "1.22.3"
                }
            ],
            "source":  "AFFECTED_FIELD",
            "strategy":  "StringRangeExpression"
        },
        {
            "range":  [
                {
                    "introduced":  "1.23.0"
                },
                {
                    "fixed":  "1.23.2"
                }
            ],
            "source":  "AFFECTED_FIELD",
            "strategy":  "StringRangeExpression"
        },
        {
            "range":  [
                {
                    "fixed":  "a3e8dca14dcfdc6167281721ede6d6ecd3395bad"
                }
            ],
            "source":  "REFERENCES_COMMIT"
        },
        {
            "range":  [
                {
                    "fixed":  "c0b50372ed133c650fa0a641607da5cde46bcd8c"
                }
            ],
            "source":  "REFERENCES_COMMIT"
        },
        {
            "range":  [
                {
                    "fixed":  "d66a77dbf8f52f7f44efd7929a28b94bbfc17f2f"
                }
            ],
            "source":  "REFERENCES_COMMIT"
        },
        {
            "original_tag":  "1.21.2",
            "range":  [
                {
                    "fixed":  "03e8c34690124033f6552a22442418c93f058388"
                }
            ],
            "source":  "REFERENCES_TAG"
        },
        {
            "original_tag":  "1.22.3",
            "range":  [
                {
                    "fixed":  "22ef718565b378e0604e678761fd4be3b1e4055b"
                }
            ],
            "source":  "REFERENCES_TAG"
        },
        {
            "original_tag":  "1.23.2",
            "range":  [
                {
                    "fixed":  "3beae100a4c6b066e7f601f7e244bb371b9c1c16"
                }
            ],
            "source":  "REFERENCES_TAG"
        },
        {
            "original_tag":  "1.24",
            "range":  [
                {
                    "fixed":  "4b705e4fada8ee2b6b15746f725ee8ac51631803"
                }
            ],
            "source":  "REFERENCES_TAG"
        }
    ]
}

Affected versions

0.*
0.2.0-rc10
0.2.0-rc11
0.2.0-rc12
0.2.0-rc2
0.2.0-rc3
0.2.0-rc4
0.2.0-rc5
0.2.0-rc6
0.2.0-rc7
0.2.0-rc8
0.2.0-rc9
1.*
1.0
1.1
1.10
1.10.1
1.10.2
1.11
1.11.0
1.12
1.13
1.14
1.15
1.15.1
1.16
1.17
1.18
1.19
1.19.1
1.2
1.2.1
1.20
1.21
1.21.1
1.22
1.22.1
1.22.2
1.23
1.23.1
1.3
1.3.1
1.3.2
1.4
1.4.1
1.5
1.6
1.7
1.8
1.9
Other
stable1
stable2
vcf-direct-final

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-62257.json"