ghsa-8hqg-whrw-pv92
Vulnerability from github
Published
2024-05-31 06:30
Modified
2024-09-06 21:37
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 seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.