{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "b1046"
                  },
                  {
                    "fixed": "b2731"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "fixed": "0ead1f1072fdc70720f92e008a294dc74a826b1d"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "original_tag": "b2731",
                "range": [
                  {
                    "fixed": "0ead1f1072fdc70720f92e008a294dc74a826b1d"
                  }
                ],
                "source": "REFERENCES_TAG"
              }
            ]
          },
          "events": [
            {
              "introduced": "6e91a1b0706c2e0e52b9d9be7ee82d3c1e7a33c1"
            },
            {
              "fixed": "0ead1f1072fdc70720f92e008a294dc74a826b1d"
            }
          ],
          "repo": "https://github.com/ggml-org/llama.cpp",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-125"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/58xxx/CVE-2024-58399.json"
  },
  "details": "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.",
  "id": "CVE-2024-58399",
  "modified": "2026-11-04T02:30:55.273718130Z",
  "published": "2026-10-27T00:33:56.695Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/58xxx/CVE-2024-58399.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/ggml-org/llama.cpp/releases/tag/b2731"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-58399"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/llama-cpp-before-b2731-out-of-bounds-read-via-gguf-tensor-offsets"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/ggml-org/llama.cpp/issues/6774"
    },
    {
      "type": "FIX",
      "url": "https://github.com/ggml-org/llama.cpp/commit/0ead1f1072fdc70720f92e008a294dc74a826b1d"
    },
    {
      "type": "FIX",
      "url": "https://github.com/ggml-org/llama.cpp/pull/6885"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/ggml-org/llama.cpp/blob/b2730/llama.cpp#L3002-L3004"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "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",
      "type": "CVSS_V4"
    }
  ],
  "summary": "llama.cpp before b2731 Out-of-Bounds Read via GGUF Tensor Offsets"
}