CVE-2024-39722 in Ollama
An issue was discovered in Ollama before 0.1.46. It exposes which files exist on the server on which it is deployed via path traversal in the api/push route.
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, no integrity impact, no availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Ollama | Ollama | < 0.1.46 |
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
An issue was discovered in Ollama before 0.1.46. It exposes which files exist on the server on which it is deployed via path traversal in the api/push route.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2024-39722 |
|---|---|
| BreachSpider ID | BS-2024-GLOBAL-267220-H |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| Published | 2024-10-31 |
| Last modified | 2025-05-13 |
| 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
A path traversal vulnerability in Ollama versions before 0.1.46 allows an attacker to determine which files exist on the server via the api/push route. This could lead to information disclosure and potential further exploitation. The CVSS score of 7.5 indicates a high severity, and the presence of a public proof of concept (PoC) increases the risk of exploitation.
The vulnerability is exploitable remotely without authentication, requiring low skill. An attacker can use the api/push route to traverse the file system and identify the existence of files on the server. This can lead to the exposure of sensitive information and potential further attacks.
Compensating controls AI-drafted, review before use
Implement strict input validation and sanitization for the api/push route to prevent path traversal. Additionally, configure the server to restrict access to sensitive files and directories.
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-39722?
A path traversal vulnerability in Ollama versions before 0.1.46 allows an attacker to determine which files exist on the server via the api/push route. This could lead to information disclosure and potential further exploitation. The CVSS score of 7.5 indicates a high severity, and the presence of a public proof of concept (PoC) increases the risk of exploitation.
What is the CVSS score for CVE-2024-39722?
CVE-2024-39722 has CVSS 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N. EPSS: 2.0%.
Is CVE-2024-39722 actively exploited?
No confirmed active exploitation of CVE-2024-39722 as of 2026-05-30.
How do I remediate CVE-2024-39722?
Priority: MEDIUM.
What systems are affected by CVE-2024-39722?
CVE-2024-39722 affects Ollama Ollama.
What NERC-CIP standard applies to CVE-2024-39722?
NERC CIP CIP-007 CIP-007-R2: This CVE violates CIP-007-R2 by allowing unauthorized access to system files, which could compromise the security of the control system and lead to unauthorized control or data exfiltration.
What IEC 62443 requirement maps to CVE-2024-39722?
IEC 62443 SR 7.6: This CVE maps to SR 7.6, which requires the implementation of security controls to prevent unauthorized access to system resources. The path traversal vulnerability allows an attacker to access sensitive files, violating this requirement.
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 2025-05-13.