{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2024-58399",
        "assignerOrgId": "83251b91-4cc7-4094-a5c7-464a1b83ea10",
        "state": "PUBLISHED",
        "assignerShortName": "VulnCheck",
        "dateReserved": "2026-10-27T00:10:21.023Z",
        "datePublished": "2026-10-27T00:33:56.695Z",
        "dateUpdated": "2026-10-27T00:33:56.695Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "83251b91-4cc7-4094-a5c7-464a1b83ea10",
                "shortName": "VulnCheck",
                "dateUpdated": "2026-10-27T00:33:56.695Z"
            },
            "datePublic": "2024-04-19T00:00:00.000Z",
            "title": "llama.cpp before b2731 Out-of-Bounds Read via GGUF Tensor Offsets",
            "descriptions": [
                {
                    "lang": "en",
                    "value": "llama.cpp before b2731 contains an out-of-bounds read vulnerability in llama_model_loader that allows attackers to read memory outside the mapped model file via crafted GGUF tensor offsets. Attackers can supply a crafted or truncated GGUF model file with arbitrary 64-bit tensor offsets to crash the process or load adjacent process memory as model weights."
                }
            ],
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "lang": "en",
                            "description": "Out-of-bounds Read",
                            "cweId": "CWE-125",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "vendor": "ggml-org",
                    "product": "llama.cpp",
                    "defaultStatus": "unaffected",
                    "packageURL": "pkg:github/ggml-org/llama.cpp",
                    "versions": [
                        {
                            "version": "b1046",
                            "status": "affected",
                            "versionType": "custom",
                            "lessThan": "b2731"
                        }
                    ]
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:a:ggml:llama.cpp:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "b1046",
                                    "versionEndExcluding": "b2731"
                                }
                            ]
                        }
                    ]
                }
            ],
            "metrics": [
                {
                    "format": "CVSS",
                    "cvssV4_0": {
                        "version": "4.0",
                        "vectorString": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N",
                        "attackVector": "LOCAL",
                        "attackComplexity": "LOW",
                        "attackRequirements": "NONE",
                        "privilegesRequired": "NONE",
                        "userInteraction": "PASSIVE",
                        "vulnConfidentialityImpact": "LOW",
                        "vulnIntegrityImpact": "NONE",
                        "vulnAvailabilityImpact": "HIGH",
                        "subConfidentialityImpact": "NONE",
                        "subIntegrityImpact": "NONE",
                        "subAvailabilityImpact": "NONE",
                        "baseScore": 6.9,
                        "baseSeverity": "MEDIUM"
                    }
                },
                {
                    "format": "CVSS",
                    "cvssV3_1": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H",
                        "attackVector": "LOCAL",
                        "attackComplexity": "LOW",
                        "privilegesRequired": "NONE",
                        "userInteraction": "REQUIRED",
                        "scope": "UNCHANGED",
                        "confidentialityImpact": "LOW",
                        "integrityImpact": "NONE",
                        "availabilityImpact": "HIGH",
                        "baseScore": 6.1,
                        "baseSeverity": "MEDIUM"
                    }
                }
            ],
            "references": [
                {
                    "url": "https://github.com/ggml-org/llama.cpp/issues/6774",
                    "tags": [
                        "issue-tracking"
                    ]
                },
                {
                    "url": "https://github.com/ggml-org/llama.cpp/pull/6885",
                    "tags": [
                        "patch",
                        "issue-tracking"
                    ]
                },
                {
                    "url": "https://github.com/ggml-org/llama.cpp/commit/0ead1f1072fdc70720f92e008a294dc74a826b1d",
                    "tags": [
                        "patch"
                    ]
                },
                {
                    "url": "https://github.com/ggml-org/llama.cpp/blob/b2730/llama.cpp#L3002-L3004",
                    "tags": [
                        "technical-description"
                    ]
                },
                {
                    "url": "https://github.com/ggml-org/llama.cpp/releases/tag/b2731",
                    "tags": [
                        "release-notes"
                    ],
                    "name": "llama.cpp b2731 Release Notes"
                },
                {
                    "name": "VulnCheck Advisory: llama.cpp before b2731 Out-of-Bounds Read via GGUF Tensor Offsets",
                    "tags": [
                        "third-party-advisory"
                    ],
                    "url": "https://www.vulncheck.com/advisories/llama-cpp-before-b2731-out-of-bounds-read-via-gguf-tensor-offsets"
                }
            ],
            "credits": [
                {
                    "lang": "en",
                    "value": "slaren",
                    "type": "finder"
                },
                {
                    "lang": "en",
                    "value": "Jeongwoo Lee",
                    "type": "reporter"
                },
                {
                    "lang": "en",
                    "value": "slaren",
                    "type": "remediation developer"
                }
            ],
            "x_generator": {
                "engine": "vulncheck-endgame"
            }
        }
    }
}