GHSA-8HQG-WHRW-PV92

Vulnerability from github – Published: 2024-05-31 06:30 – Updated: 2024-09-06 21:37
VLAI?
Summary
Ollama does not validate the format of the digest (sha256 with 64 hex digits)
Details

Ollama before 0.1.34 does not validate the format of the digest (sha256 with 64 hex digits) when getting the model path, and thus mishandles the TestGetBlobsPath test cases such as fewer than 64 hex digits, more than 64 hex digits, or an initial ../ substring.

Show details on source website

{
  "affected": [
    {
      "package": {
        "ecosystem": "Go",
        "name": "github.com/ollama/ollama"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "0.1.34"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "aliases": [
    "CVE-2024-37032"
  ],
  "database_specific": {
    "cwe_ids": [],
    "github_reviewed": true,
    "github_reviewed_at": "2024-06-02T22:32:29Z",
    "nvd_published_at": "2024-05-31T04:15:09Z",
    "severity": "MODERATE"
  },
  "details": "Ollama before 0.1.34 does not validate the format of the digest (sha256 with 64 hex digits) when getting the model path, and thus mishandles the TestGetBlobsPath test cases such as fewer than 64 hex digits, more than 64 hex digits, or an initial `../` substring.",
  "id": "GHSA-8hqg-whrw-pv92",
  "modified": "2024-09-06T21:37:30Z",
  "published": "2024-05-31T06:30:27Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-37032"
    },
    {
      "type": "WEB",
      "url": "https://github.com/ollama/ollama/pull/4175"
    },
    {
      "type": "WEB",
      "url": "https://github.com/ollama/ollama/commit/2a21363bb756a7341d3d577f098583865bd7603f"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/advisories/GHSA-8hqg-whrw-pv92"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/ollama/ollama"
    },
    {
      "type": "WEB",
      "url": "https://github.com/ollama/ollama/blob/adeb40eaf29039b8964425f69a9315f9f1694ba8/server/modelpath_test.go#L41-L58"
    },
    {
      "type": "WEB",
      "url": "https://github.com/ollama/ollama/compare/v0.1.33...v0.1.34"
    },
    {
      "type": "WEB",
      "url": "https://pkg.go.dev/vuln/GO-2024-2901"
    },
    {
      "type": "WEB",
      "url": "https://www.vicarius.io/vsociety/posts/probllama-in-ollama-a-tale-of-a-yet-another-rce-vulnerability-cve-2024-37032"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [],
  "summary": "Ollama does not validate the format of the digest (sha256 with 64 hex digits)"
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.


Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…