Appsecure logo

CVE-2026-7020: Low Vulnerability in Ollama

A low-severity vulnerability has been identified in Ollama versions up to 0.20.2, potentially allowing for path traversal attacks. Organizations should take action to address this issue promptly.

LOWCVSS 2.9 · Published April 26, 2026

Not a customer? See how AppSecure simulates real world attacks to protect your infrastructure.

Speak to Experts

A security flaw has been discovered in Ollama up to version 0.20.2, affecting the function digestToPath in the file x/imagegen/transfer/transfer.go of the component Tensor Model Transfer Handler. This vulnerability allows for path traversal due to the manipulation of the argument digest. The attack may be performed remotely and is characterized by high complexity, making the exploitability reported as difficult. Although the vendor was contacted early about this disclosure, they did not respond.

Given the nature of this vulnerability, organizations utilizing Ollama should prioritize patching to mitigate potential risks. The exploit has been released to the public, which increases the urgency for defenders to address this issue promptly.

The CVSS score for this vulnerability is 2.9, indicating a low severity but still necessitating attention due to the potential for exploitation. Organizations should evaluate their exposure and implement necessary remediation strategies.

Risk to organizations includes unauthorized access to sensitive paths, which could lead to further exploitation. It is essential for security teams to be aware of the implications of this vulnerability and take appropriate action.

Vulnerability Details

Officially, this vulnerability is categorized as CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'). The CVSS score of 2.9 suggests low severity, but organizations should not underestimate the potential impacts of successful exploitation. The affected product is the Ollama software, specifically the versions from 0.20.0 to 0.20.2, as detailed in the vendor's configurations.

Technical Analysis

The root cause of this vulnerability stems from inadequate validation of the digest argument within the function digestToPath. This allows an attacker to manipulate the path, leading to potential unauthorized file access. The attack vector is network-based, requiring high complexity to exploit. Importantly, no privileges are needed to execute the attack, and user interaction is not required.

The impacts of this vulnerability are categorized as low for confidentiality, integrity, and availability, but the potential for unauthorized access to sensitive information remains a concern. Organizations are encouraged to assess their specific configurations to determine the potential blast radius of exploitation.

Risk & Impact Analysis

The real-world deployment risk associated with this vulnerability, although rated low, should not be dismissed. The potential for attackers to leverage path traversal techniques could lead to broader implications, especially in environments where sensitive data is handled. Organizations utilizing Ollama should evaluate their risk profiles and prioritize remediation efforts accordingly.

Organizations should assess their exposure to this vulnerability, especially in the context of network access. The urgency for remediation is classified as low, allowing for scheduled updates, but prompt action is still recommended to mitigate any potential exploitation.

Exploitation Status

Signal

Status

Known Exploit

No

Public PoC

Yes

Actively Exploited

No

Ransomware Use

No

Affected Versions

Ollama versions from 0.20.0 to 0.20.2 are affected by this vulnerability. If version information is missing, users should consider that all versions prior to the vendor patch may be susceptible.

Mitigation & Remediation

Organizations should prioritize patching Ollama to version 0.20.3 or later to mitigate this vulnerability. In addition, it is advisable to implement configuration hardening measures and network controls to limit exposure to potential attacks. Regular monitoring for unusual behavior may help detect any exploitation attempts.

Detection Guidance

Security teams should monitor logs for indicators of path traversal attempts, including anomalies in file access patterns. Behavioral anomalies during remote access sessions can also provide clues to potential exploitation.

AppSecure Threat Intelligence Insight

The long-term significance of this vulnerability may reflect a trend in the exploitation of path traversal vulnerabilities within widely used software. Security teams should consider proactive measures in their development and deployment processes to prevent similar vulnerabilities.

Organizations should evaluate their vulnerability management programs and ensure they are equipped to handle emerging threats. Continuous security testing, such as continuous security testing, can help identify and remediate vulnerabilities effectively.

Additionally, organizations should be aware of the potential impact of similar vulnerabilities in their software components. Regular audits and assessments can help maintain security posture.

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Latest CVEs. Recently published vulnerabilities from the NVD database.

View all vulnerabilities
CVE IDSeverity
CVE-2025-65418HIGH
CVE-2025-65417MEDIUM
CVE-2025-65416MEDIUM
CVE-2025-65415MEDIUM
CVE-2025-61314HIGH

Protect Your Business with Hacker-Focused Approach.