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.test.osv.dev/v1/vulns/GHSA-2xf2-gjm6-g2c6
Aliases
Downstream
CGA (6)
MINI (2)
Published
2025-03-20T12:32:47Z
Modified
2026-07-17T21:11:16Z
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
{
    "cwe_ids":  [
        "CWE-369"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2025-05-15T17:06:19Z",
    "nvd_published_at":  "2025-03-20T10:15:40Z",
    "severity":  "HIGH"
}
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
0 Unknown introduced version / All previous versions are affected
Last Affected
0.3.3

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/03/GHSA-2xf2-gjm6-g2c6/GHSA-2xf2-gjm6-g2c6.json"