GHSA-2xf2-gjm6-g2c6

Suggest an improvement
Source
https://github.com/advisories/GHSA-2xf2-gjm6-g2c6
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/03/GHSA-2xf2-gjm6-g2c6/GHSA-2xf2-gjm6-g2c6.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-2xf2-gjm6-g2c6
Aliases
Published
2025-03-20T12:32:47Z
Modified
2025-05-15T20:11:51.695033Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
Ollama Divide by Zero Vulnerability
Details

A divide by zero vulnerability exists in ollama/ollama version v0.3.3. The vulnerability occurs when importing GGUF models with a crafted type for block_count in the Modelfile. This can lead to a denial of service (DoS) condition when the server processes the model, causing it to crash.

Database specific
{
    "nvd_published_at": "2025-03-20T10:15:40Z",
    "cwe_ids": [
        "CWE-369"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2025-05-15T17:06:19Z"
}
References

Affected packages

Go / github.com/ollama/ollama

Package

Name
github.com/ollama/ollama
View open source insights on deps.dev
Purl
pkg:golang/github.com/ollama/ollama

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Last affected
0.3.3