CVE-2024-37032 in Ollama
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.
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Ollama | Ollama | < 0.1.34 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2024-37032 |
|---|---|
| BreachSpider ID | BS-2024-GLOBAL-268855-H |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| Published | 2024-05-31 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-22: Path Traversal
Attacker manipulates file path inputs to access files outside the intended directory.
Related attack patterns (CAPEC)
CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic via CWE-22
CAPEC-76 Manipulating Web Input to File System Calls via CWE-22
CAPEC-78 Using Escaped Slashes in Alternate Encoding via CWE-22
CAPEC-79 Using Slashes in Alternate Encoding via CWE-22
CAPEC-126 Path Traversal via CWE-22
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
CVE-2024-37032 affects Ollama versions before 0.1.34, where the software does not validate the format of the digest (sha256 with 64 hex digits) when getting the model path. This can lead to path traversal vulnerabilities, allowing an attacker to manipulate the model path and potentially access or modify sensitive files. The CVSS score of 8.8 indicates a high severity, and the presence of a public proof of concept (PoC) increases the risk of exploitation. Immediate action is recommended to mitigate this vulnerability, especially in environments where Ollama is used for critical operations or data management.
The vulnerability can be exploited remotely without user interaction, requiring only low privileges. An attacker can manipulate the digest to include path traversal sequences (e.g., '../') or invalid lengths, leading to unauthorized access to the file system. This can result in data exfiltration, modification, or denial of service, impacting the integrity and availability of the system.
Compensating controls AI-drafted, review before use
Implement strict input validation for the digest to ensure it is a valid sha256 hash (64 hex digits) and does not contain path traversal sequences. Use a whitelist approach to restrict the model path to a predefined directory.
NERC CIP: CIP-007 CIP-007-R2
IEC 62443: SR 7.6
Not validated for your network. A compensating control does not replace the vendor fix.
Questions
What is CVE-2024-37032?
CVE-2024-37032 affects Ollama versions before 0.1.34, where the software does not validate the format of the digest (sha256 with 64 hex digits) when getting the model path. This can lead to path traversal vulnerabilities, allowing an attacker to manipulate the model path and potentially access or modify sensitive files. The CVSS score of 8.8 indicates a high severity, and the presence of a public proof of concept (PoC) increases the risk of exploitation. Immediate action is recommended to mitiga
What is the CVSS score for CVE-2024-37032?
CVE-2024-37032 has CVSS 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. EPSS: 54.5%.
Is CVE-2024-37032 actively exploited?
No confirmed active exploitation of CVE-2024-37032 as of 2026-09-25.
How do I remediate CVE-2024-37032?
Priority: IMMEDIATE.
What systems are affected by CVE-2024-37032?
CVE-2024-37032 affects Ollama Ollama.
What NERC-CIP standard applies to CVE-2024-37032?
NERC CIP CIP-007 CIP-007-R2: This CVE violates CIP-007-R2 by allowing unauthorized access to the file system, which can compromise the security of the electronic security perimeter and the critical assets it protects.
What IEC 62443 requirement maps to CVE-2024-37032?
IEC 62443 SR 7.6: This CVE maps to SR 7.6, which requires the implementation of input validation to prevent unauthorized access to system resources. The lack of validation in Ollama can lead to path traversal attacks, compromising the security of the system.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Ollama","product":"Ollama","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.