{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-116816",
        "assignerOrgId": "83251b91-4cc7-4094-a5c7-464a1b83ea10",
        "state": "PUBLISHED",
        "assignerShortName": "VulnCheck",
        "dateReserved": "2026-10-26T22:13:56.315Z",
        "datePublished": "2026-10-27T00:33:58.581Z",
        "dateUpdated": "2026-10-27T00:33:58.581Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "83251b91-4cc7-4094-a5c7-464a1b83ea10",
                "shortName": "VulnCheck",
                "dateUpdated": "2026-10-27T00:33:58.581Z"
            },
            "datePublic": "2026-07-21T00:00:00.000Z",
            "title": "llama.cpp b5899 before b10261 Heap Out-of-Bounds Write via plamo2 Tokenizer",
            "descriptions": [
                {
                    "lang": "en",
                    "value": "llama.cpp b5899 before b10261 contains a heap out-of-bounds write vulnerability in llm_tokenizer_plamo2::build that allows attackers to corrupt heap memory via crafted GGUF models. Attackers can supply BYTE-typed token text like <0x-1> whose negative parsed value writes token ids before the bytes_ buffer during model loading, causing crashes or potential code execution."
                }
            ],
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "lang": "en",
                            "description": "Improper Validation of Array Index",
                            "cweId": "CWE-129",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "vendor": "ggml-org",
                    "product": "llama.cpp",
                    "defaultStatus": "unaffected",
                    "packageURL": "pkg:github/ggml-org/llama.cpp",
                    "versions": [
                        {
                            "version": "b5899",
                            "status": "affected",
                            "versionType": "custom",
                            "lessThan": "b10261"
                        }
                    ]
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:a:ggml:llama.cpp:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "b5899",
                                    "versionEndExcluding": "b10261"
                                }
                            ]
                        }
                    ]
                }
            ],
            "metrics": [
                {
                    "format": "CVSS",
                    "cvssV4_0": {
                        "version": "4.0",
                        "vectorString": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
                        "attackVector": "LOCAL",
                        "attackComplexity": "LOW",
                        "attackRequirements": "NONE",
                        "privilegesRequired": "NONE",
                        "userInteraction": "PASSIVE",
                        "vulnConfidentialityImpact": "HIGH",
                        "vulnIntegrityImpact": "HIGH",
                        "vulnAvailabilityImpact": "HIGH",
                        "subConfidentialityImpact": "NONE",
                        "subIntegrityImpact": "NONE",
                        "subAvailabilityImpact": "NONE",
                        "baseScore": 8.5,
                        "baseSeverity": "HIGH"
                    }
                },
                {
                    "format": "CVSS",
                    "cvssV3_1": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
                        "attackVector": "LOCAL",
                        "attackComplexity": "LOW",
                        "privilegesRequired": "NONE",
                        "userInteraction": "REQUIRED",
                        "scope": "UNCHANGED",
                        "confidentialityImpact": "HIGH",
                        "integrityImpact": "HIGH",
                        "availabilityImpact": "HIGH",
                        "baseScore": 7.8,
                        "baseSeverity": "HIGH"
                    }
                }
            ],
            "references": [
                {
                    "url": "https://github.com/ggml-org/llama.cpp/pull/25969",
                    "tags": [
                        "issue-tracking",
                        "patch"
                    ]
                },
                {
                    "url": "https://github.com/ggml-org/llama.cpp/pull/26511",
                    "tags": [
                        "patch",
                        "issue-tracking"
                    ]
                },
                {
                    "url": "https://github.com/ggml-org/llama.cpp/commit/cf06ad7dfe79e7bf2934150d4fefe1ce8db05490",
                    "tags": [
                        "patch"
                    ]
                },
                {
                    "url": "https://github.com/ggml-org/llama.cpp/blob/b10259/src/llama-vocab.cpp#L1376-L1377",
                    "tags": [
                        "technical-description"
                    ]
                },
                {
                    "url": "https://github.com/ggml-org/llama.cpp/releases/tag/b10261",
                    "tags": [
                        "release-notes"
                    ],
                    "name": "llama.cpp b10261 Release Notes"
                },
                {
                    "name": "VulnCheck Advisory: llama.cpp b5899 before b10261 Heap Out-of-Bounds Write via plamo2 Tokenizer",
                    "tags": [
                        "third-party-advisory"
                    ],
                    "url": "https://www.vulncheck.com/advisories/llama-cpp-b5899-before-b10261-heap-out-of-bounds-write-via-plamo2-tokenizer"
                }
            ],
            "credits": [
                {
                    "lang": "en",
                    "value": "Pedro Cruz (g4nkd)",
                    "type": "finder"
                },
                {
                    "lang": "en",
                    "value": "Jeongwoo Lee",
                    "type": "reporter"
                },
                {
                    "lang": "en",
                    "value": "CISC",
                    "type": "remediation developer"
                }
            ],
            "x_generator": {
                "engine": "vulncheck-endgame"
            }
        }
    }
}