{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-62257",
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "state": "PUBLISHED",
        "assignerShortName": "GitHub_M",
        "dateReserved": "2026-07-13T17:09:57.574Z",
        "datePublished": "2026-11-19T15:41:55.655Z",
        "dateUpdated": "2026-11-24T03:24:40.683Z"
    },
    "containers": {
        "cna": {
            "title": "HTSlib: Heap read and write overflow in HTSlib CRAM 4.0 decoder",
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-122",
                            "lang": "en",
                            "description": "CWE-122: Heap-based Buffer Overflow",
                            "type": "CWE"
                        }
                    ]
                },
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-125",
                            "lang": "en",
                            "description": "CWE-125: Out-of-bounds Read",
                            "type": "CWE"
                        }
                    ]
                },
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-787",
                            "lang": "en",
                            "description": "CWE-787: Out-of-bounds Write",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "metrics": [
                {
                    "cvssV4_0": {
                        "attackVector": "NETWORK",
                        "attackComplexity": "LOW",
                        "attackRequirements": "NONE",
                        "privilegesRequired": "NONE",
                        "userInteraction": "NONE",
                        "vulnConfidentialityImpact": "NONE",
                        "vulnIntegrityImpact": "HIGH",
                        "vulnAvailabilityImpact": "LOW",
                        "subConfidentialityImpact": "NONE",
                        "subIntegrityImpact": "NONE",
                        "subAvailabilityImpact": "NONE",
                        "baseScore": 8.8,
                        "baseSeverity": "HIGH",
                        "vectorString": "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",
                        "version": "4.0"
                    }
                }
            ],
            "references": [
                {
                    "name": "https://github.com/samtools/htslib/security/advisories/GHSA-6q7c-m967-9v37",
                    "tags": [
                        "x_refsource_CONFIRM"
                    ],
                    "url": "https://github.com/samtools/htslib/security/advisories/GHSA-6q7c-m967-9v37"
                },
                {
                    "name": "https://github.com/samtools/htslib/pull/2020",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/samtools/htslib/pull/2020"
                },
                {
                    "name": "https://github.com/samtools/htslib/pull/2046",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/samtools/htslib/pull/2046"
                },
                {
                    "name": "https://github.com/samtools/htslib/commit/a3e8dca14dcfdc6167281721ede6d6ecd3395bad",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/samtools/htslib/commit/a3e8dca14dcfdc6167281721ede6d6ecd3395bad"
                },
                {
                    "name": "https://github.com/samtools/htslib/commit/c0b50372ed133c650fa0a641607da5cde46bcd8c",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/samtools/htslib/commit/c0b50372ed133c650fa0a641607da5cde46bcd8c"
                },
                {
                    "name": "https://github.com/samtools/htslib/commit/d66a77dbf8f52f7f44efd7929a28b94bbfc17f2f",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/samtools/htslib/commit/d66a77dbf8f52f7f44efd7929a28b94bbfc17f2f"
                },
                {
                    "name": "https://github.com/samtools/htslib/releases/tag/1.21.2",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/samtools/htslib/releases/tag/1.21.2"
                },
                {
                    "name": "https://github.com/samtools/htslib/releases/tag/1.22.3",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/samtools/htslib/releases/tag/1.22.3"
                },
                {
                    "name": "https://github.com/samtools/htslib/releases/tag/1.23.2",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/samtools/htslib/releases/tag/1.23.2"
                },
                {
                    "name": "https://github.com/samtools/htslib/releases/tag/1.24",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/samtools/htslib/releases/tag/1.24"
                }
            ],
            "affected": [
                {
                    "vendor": "samtools",
                    "product": "htslib",
                    "versions": [
                        {
                            "version": "< 1.21.2",
                            "status": "affected"
                        },
                        {
                            "version": ">= 1.22.0, < 1.22.3",
                            "status": "affected"
                        },
                        {
                            "version": ">= 1.23.0, < 1.23.2",
                            "status": "affected"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
                "shortName": "GitHub_M",
                "dateUpdated": "2026-11-19T15:41:55.655Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "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."
                }
            ],
            "source": {
                "advisory": "GHSA-6q7c-m967-9v37",
                "discovery": "UNKNOWN"
            }
        },
        "adp": [
            {
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "timestamp": "2026-11-24T03:24:28.873551Z",
                                "id": "CVE-2026-62257",
                                "options": [
                                    {
                                        "Exploitation": "none"
                                    },
                                    {
                                        "Automatable": "no"
                                    },
                                    {
                                        "Technical Impact": "total"
                                    }
                                ],
                                "role": "CISA Coordinator",
                                "version": "2.0.3"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2026-11-24T03:24:40.683Z"
                }
            }
        ]
    }
}