Skip to content
Heist/ feed
Back to feed
Low

llama.cpp — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2026-18581

A vulnerability was determined in ggml-org llama.cpp e15efe0. Affected by this issue is some unknown functionality of the file common/jinja/parser.cpp of the component Jinja Minja Template Parser. Executing a manipulation with the input {{9|9|{ can lead to reachable assertion. The attack requires local access. The exploit has been publicly disclosed and may be utilized. The project was informed of the problem early through an issue report but has not responded yet.

Products
llama.cpp
Affected versions
10438+dfsg-1, 10438+dfsg-1ubuntu1, 5882+dfsg-2, 8064+dfsg-1ubuntu1, 8681+dfsg-1, 9721+dfsg-1ubuntu1
Fixed versions
Not specified
CVEs
CVE-2026-18581
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 01:07 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-18581

core-osv · Original source

Published 3 Aug 2026, 01:16 UTC

A vulnerability was determined in ggml-org llama.cpp e15efe0. Affected by this issue is some unknown functionality of the file common/jinja/parser.cpp of the component Jinja Minja Template Parser. Executing a manipulation with the input {{9|9|{ can lead to reachable assertion. The attack requires local access. The exploit has been publicly disclosed and may be utilized. The project was informed of the problem early through an issue report but has not responded yet.

osv:UBUNTU-CVE-2026-18581

llama.cpp

Fixed versions: Not specified

llama.cpp

Fixed versions: Not specified

Complete source record
{
  "id": "847edfcba5280aa3e1376f4b1ca004d2e795c0fa4b0ab12e3240ff71b9a6fe61",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-18581",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-18581",
    "summary": "A vulnerability was determined in ggml-org llama.cpp e15efe0. Affected by this issue is some unknown functionality of the file common/jinja/parser.cpp of the component Jinja Minja Template Parser. Executing a manipulation with the input {{9|9|{ can lead to reachable assertion. The attack requires local access. The exploit has been publicly disclosed and may be utilized. The project was informed of the problem early through an issue report but has not responded yet.",
    "evidence": "osv:UBUNTU-CVE-2026-18581",
    "products": [
      {
        "name": {
          "value": "llama.cpp",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "8681+dfsg-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "9721+dfsg-1ubuntu1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "10438+dfsg-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "10438+dfsg-1ubuntu1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "llama.cpp",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "5882+dfsg-2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "8064+dfsg-1ubuntu1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "8681+dfsg-1",
            "evidence": "/affected/1/versions"
          }
        ]
      }
    ],
    "severity": "low",
    "structured": {
      "id": "UBUNTU-CVE-2026-18581",
      "aliases": [
        "UBUNTU-CVE-2026-18581"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L"
        },
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "llama.cpp",
            "purl": "pkg:deb/ubuntu/llama.cpp?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "8681+dfsg-1",
            "9721+dfsg-1ubuntu1",
            "10438+dfsg-1",
            "10438+dfsg-1ubuntu1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-18581.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libllama0",
                "binary_version": "10438+dfsg-1ubuntu1"
              },
              {
                "binary_name": "llama.cpp",
                "binary_version": "10438+dfsg-1ubuntu1"
              },
              {
                "binary_name": "llama.cpp-examples",
                "binary_version": "10438+dfsg-1ubuntu1"
              },
              {
                "binary_name": "llama.cpp-services",
                "binary_version": "10438+dfsg-1ubuntu1"
              },
              {
                "binary_name": "llama.cpp-tests",
                "binary_version": "10438+dfsg-1ubuntu1"
              },
              {
                "binary_name": "llama.cpp-tools",
                "binary_version": "10438+dfsg-1ubuntu1"
              },
              {
                "binary_name": "llama.cpp-tools-extra",
                "binary_version": "10438+dfsg-1ubuntu1"
              },
              {
                "binary_name": "python3-gguf",
                "binary_version": "10438+dfsg-1ubuntu1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "llama.cpp",
            "purl": "pkg:deb/ubuntu/llama.cpp?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "5882+dfsg-2",
            "8064+dfsg-1ubuntu1",
            "8681+dfsg-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-18581.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libllama0",
                "binary_version": "8681+dfsg-1"
              },
              {
                "binary_name": "llama.cpp",
                "binary_version": "8681+dfsg-1"
              },
              {
                "binary_name": "llama.cpp-examples",
                "binary_version": "8681+dfsg-1"
              },
              {
                "binary_name": "llama.cpp-tests",
                "binary_version": "8681+dfsg-1"
              },
              {
                "binary_name": "llama.cpp-tools",
                "binary_version": "8681+dfsg-1"
              },
              {
                "binary_name": "llama.cpp-tools-extra",
                "binary_version": "8681+dfsg-1"
              },
              {
                "binary_name": "python3-gguf",
                "binary_version": "8681+dfsg-1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:56:35.759500117Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-18581"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-18581",
        "https://www.cve.org/CVERecord?id=CVE-2026-18581",
        "https://github.com/ggml-org/llama.cpp/issues/25282",
        "https://drive.proton.me/urls/R8D8NGZ6Z0#C2cVZYn5z1Xc",
        "https://github.com/ggml-org/llama.cpp/",
        "https://vuldb.com/cve/CVE-2026-18581",
        "https://vuldb.com/submit/799118",
        "https://vuldb.com/vuln/385409",
        "https://vuldb.com/vuln/385409/cti"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-18581",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 355832,
  "published_at": "2026-08-03T01:16:00+00:00"
}