Appsecure logo

CVE-2024-45436: High Vulnerability in Ollama

A high-severity vulnerability in Ollama allows extraction of ZIP archive contents outside the intended directory. Organizations are urged to patch immediately to mitigate risks.

HIGHPublic ExploitCVSS 7.5 · Published August 29, 2024

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

Speak to Experts

The vulnerability identified as CVE-2024-45436 allows the function extractFromZipFile in model.go of Ollama versions prior to 0.1.47 to extract members of a ZIP archive outside of the parent directory. This vulnerability has been assigned a CVSS score of 7.5, categorizing it as high severity. Such vulnerabilities can pose significant risks as they may lead to unauthorized access to sensitive data.

Organizations utilizing Ollama should be aware that the attack vector is classified as network-based, with low complexity and no privileges required for exploitation. The potential for high confidentiality impact makes this vulnerability particularly concerning, necessitating immediate attention from security teams.

Given the nature of this vulnerability, organizations are advised to prioritize patching as soon as possible. The release of version 0.1.47 includes fixes that mitigate this vulnerability effectively. Failure to address this issue could expose organizations to significant data extraction risks.

In conclusion, the urgency for organizations to update to the latest version cannot be overstated. The implications of the vulnerability are serious, and timely remediation is crucial to safeguard sensitive data.

Vulnerability Details

The vulnerability CVE-2024-45436 is described as follows: extractFromZipFile in model.go in Ollama before 0.1.47 can extract members of a ZIP archive outside of the parent directory.

This vulnerability is classified under CWE-22, which pertains to improper restriction of operations within the bounds of a memory buffer. The CVSS score of 7.5 indicates a high severity level, which suggests that this vulnerability is relatively easy to exploit and can have a significant impact on confidentiality.

The affected product is Ollama, with all versions prior to 0.1.47 being vulnerable. The disclosure date was August 29, 2024.

Technical Analysis

The root cause of CVE-2024-45436 lies in the inadequate handling of ZIP file extraction paths, allowing for the extraction of files outside the designated directory. This vulnerability can be exploited via a network attack, with low complexity and no privileges required, meaning an attacker does not need to authenticate or have special access to exploit this issue.

The attack vector is straightforward, as the vulnerability can be triggered without user interaction. The high confidentiality impact suggests that sensitive files can be extracted, while integrity and availability impacts remain unaffected.

Risk & Impact Analysis

The real-world deployment risk associated with CVE-2024-45436 is significant. Organizations that utilize Ollama must recognize that attackers may leverage this vulnerability to extract sensitive information, potentially leading to data breaches. The blast radius of this vulnerability could encompass entire systems relying on vulnerable versions of Ollama.

With a CVSS score of 7.5, the urgency for organizations to address this vulnerability is high. Security teams should incorporate this vulnerability into their risk assessments and prioritize it within their patch management cycles.

Signal

Status

Known Exploit

Yes

Public PoC

Yes

Actively Exploited

No

Ransomware Use

No

Affected Versions

The vulnerable versions of Ollama are all versions prior to 0.1.47. Organizations must ensure they update to this version or later to mitigate the risks associated with CVE-2024-45436.

Mitigation & Remediation

To remediate CVE-2024-45436, organizations should upgrade to Ollama version 0.1.47 or later. This patch addresses the vulnerability effectively. Additionally, organizations are encouraged to conduct regular security audits and implement secure coding practices to prevent similar vulnerabilities.

For ongoing security validation, organizations may consider engaging in penetration testing services to identify any potential weaknesses.

Detection Guidance

Organizations should monitor for anomalous file extraction activities, particularly those involving ZIP files. Log indicators should include failed attempts to extract files to unauthorized locations. Additionally, network signatures that detect unexpected outbound connections during ZIP extraction processes should be reviewed.

AppSecure Threat Intelligence Insight

The long-term significance of CVE-2024-45436 reflects the necessity for robust input validation in file handling functions. This vulnerability exemplifies a pattern where improper handling of file paths can lead to severe data exposure risks. Security teams must learn from this incident to enhance their security posture against similar vulnerabilities in the future.

Organizations should also consider reviewing their vulnerability management program to ensure all vulnerabilities are tracked and remediated in a timely manner.

In conclusion, the strategic takeaway is clear: proactive measures in vulnerability management and regular security assessments can significantly reduce the risk of exploitation in the evolving threat landscape.

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.