{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0.1"
                  },
                  {
                    "last_affected": "0.1"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandaloneSingleVersion"
              },
              {
                "range": [
                  {
                    "introduced": "0.2"
                  },
                  {
                    "last_affected": "0.2"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandaloneSingleVersion"
              },
              {
                "range": [
                  {
                    "introduced": "0.3"
                  },
                  {
                    "last_affected": "0.3"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandaloneSingleVersion"
              },
              {
                "range": [
                  {
                    "introduced": "0.4"
                  },
                  {
                    "last_affected": "0.4"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandaloneSingleVersion"
              },
              {
                "range": [
                  {
                    "introduced": "0.5"
                  },
                  {
                    "last_affected": "0.5"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandaloneSingleVersion"
              },
              {
                "range": [
                  {
                    "introduced": "0.6"
                  },
                  {
                    "last_affected": "0.6"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandaloneSingleVersion"
              },
              {
                "range": [
                  {
                    "introduced": "0.7"
                  },
                  {
                    "last_affected": "0.7"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandaloneSingleVersion"
              },
              {
                "range": [
                  {
                    "introduced": "0.8.0"
                  },
                  {
                    "last_affected": "0.8.0"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandaloneSingleVersion"
              },
              {
                "range": [
                  {
                    "fixed": "0978a6e9022fb9bd6874b86154ee304e81929b9f"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "original_tag": "v0.9.0",
                "range": [
                  {
                    "fixed": "cd959bae99ff4bed22bef2604f45241c09bbb8c8"
                  }
                ],
                "source": "REFERENCES_TAG"
              }
            ]
          },
          "events": [
            {
              "introduced": "0ecb1bbbeb16e36a2ea7a5ce525c6c59ef74312b"
            },
            {
              "last_affected": "8642541b255bfb5dc39cd351a178be09013a55d6"
            },
            {
              "fixed": "0978a6e9022fb9bd6874b86154ee304e81929b9f"
            },
            {
              "fixed": "cd959bae99ff4bed22bef2604f45241c09bbb8c8"
            }
          ],
          "repo": "https://github.com/ggml-org/llama.cpp",
          "type": "GIT"
        }
      ],
      "versions": [
        "0.1",
        "0.2",
        "0.3",
        "0.4",
        "0.5",
        "0.6",
        "0.7",
        "0.8.0"
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulDB",
    "cwe_ids": [
      "CWE-189",
      "CWE-190"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138092.json"
  },
  "details": "A security flaw has been discovered in ggml-org llama.cpp up to 0.8.0. This vulnerability affects the function ggml_roll of the file ggml/src/ggml.c of the component Ggml Tensor Library Roll Operation. The manipulation results in integer overflow. The attack needs to be approached locally. Upgrading to version 0.9.0 is able to resolve this issue. The patch is identified as 0978a6e9022fb9bd6874b86154ee304e81929b9f. It is suggested to upgrade the affected component.",
  "id": "CVE-2026-138092",
  "modified": "2026-11-29T00:45:30.794214731Z",
  "published": "2026-11-28T23:15:26.563Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138092.json"
    },
    {
      "type": "WEB",
      "url": "https://github.com/ggml-org/llama.cpp/"
    },
    {
      "type": "FIX",
      "url": "https://github.com/ggml-org/llama.cpp/commit/0978a6e9022fb9bd6874b86154ee304e81929b9f"
    },
    {
      "type": "FIX",
      "url": "https://github.com/ggml-org/llama.cpp/pull/30375"
    },
    {
      "type": "FIX",
      "url": "https://github.com/ggml-org/llama.cpp/releases/tag/v0.9.0"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-138092"
    },
    {
      "type": "ADVISORY",
      "url": "https://vuldb.com/cve/CVE-2026-138092"
    },
    {
      "type": "ADVISORY",
      "url": "https://vuldb.com/submit/1071565"
    },
    {
      "type": "ADVISORY",
      "url": "https://vuldb.com/vuln/445009"
    },
    {
      "type": "REPORT",
      "url": "https://vuldb.com/vuln/445009/cti"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:X",
      "type": "CVSS_V4"
    }
  ],
  "summary": "ggml-org llama.cpp Ggml Tensor Library Roll Operation ggml.c ggml_roll integer overflow"
}