CVE-2024-45436: n/a
extractFromZipFile in model.go in Ollama before 0.1.47 can extract members of a ZIP archive outside of the parent directory.
AI Analysis
Technical Summary
CVE-2024-45436 is a critical security vulnerability identified in the Ollama software prior to version 0.1.47, specifically in the extractFromZipFile function located in model.go. The vulnerability is classified as CWE-22, a directory traversal flaw, which allows an attacker to manipulate the extraction process of ZIP archives so that files can be written outside the intended parent directory. This occurs because the function does not properly sanitize or validate the paths of files within the ZIP archive, enabling crafted archive members to escape the extraction root directory. Exploiting this vulnerability can lead to arbitrary file overwrite or creation on the target system, potentially allowing an attacker to place malicious files, modify configuration files, or overwrite critical system files, thereby compromising confidentiality and integrity. The vulnerability has a CVSS v3.1 base score of 9.1, indicating a critical severity with network attack vector, low attack complexity, no privileges required, and no user interaction needed. The scope is unchanged, meaning the impact is confined to the vulnerable component. Although no exploits are currently known in the wild, the ease of exploitation and the severity of impact make this a high-priority issue. The vulnerability affects all versions of Ollama prior to 0.1.47, though exact affected versions are not specified. No official patches or mitigations are linked yet, but upgrading to 0.1.47 or later is expected to resolve the issue.
Potential Impact
The impact of CVE-2024-45436 is significant for organizations using vulnerable versions of Ollama, especially those processing ZIP files from untrusted or external sources. Successful exploitation can lead to arbitrary file writes outside the intended directory, enabling attackers to overwrite critical files, implant backdoors, or alter application behavior. This compromises the confidentiality and integrity of the system and data. While availability is not directly impacted, the resulting unauthorized file modifications could lead to system instability or facilitate further attacks. Organizations relying on Ollama in production environments, particularly in automated workflows or cloud deployments, face increased risk of supply chain or lateral movement attacks. The vulnerability's network accessibility and lack of authentication requirements increase the attack surface, making it a high-risk threat globally. Without timely remediation, attackers could leverage this flaw to gain persistent footholds or escalate privileges indirectly.
Mitigation Recommendations
To mitigate CVE-2024-45436, organizations should immediately upgrade Ollama to version 0.1.47 or later once available, as this version addresses the directory traversal issue. Until an upgrade is possible, implement strict input validation to reject ZIP archives containing suspicious path elements such as '../' sequences or absolute paths. Employ sandboxing or containerization to isolate the extraction process, limiting the potential impact of any malicious file writes. Monitor file system changes in directories where ZIP files are extracted to detect unauthorized modifications. Additionally, restrict the sources of ZIP files to trusted origins and use file integrity monitoring tools to verify critical files have not been altered. Security teams should also review application logs for unusual extraction activities and consider deploying host-based intrusion detection systems (HIDS) to alert on suspicious file operations. Finally, coordinate with Ollama developers or vendors for official patches and security advisories.
Affected Countries
United States, Germany, United Kingdom, Canada, Australia, France, Japan, South Korea, Netherlands, Sweden
CVE-2024-45436: n/a
Description
extractFromZipFile in model.go in Ollama before 0.1.47 can extract members of a ZIP archive outside of the parent directory.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2024-45436 is a critical security vulnerability identified in the Ollama software prior to version 0.1.47, specifically in the extractFromZipFile function located in model.go. The vulnerability is classified as CWE-22, a directory traversal flaw, which allows an attacker to manipulate the extraction process of ZIP archives so that files can be written outside the intended parent directory. This occurs because the function does not properly sanitize or validate the paths of files within the ZIP archive, enabling crafted archive members to escape the extraction root directory. Exploiting this vulnerability can lead to arbitrary file overwrite or creation on the target system, potentially allowing an attacker to place malicious files, modify configuration files, or overwrite critical system files, thereby compromising confidentiality and integrity. The vulnerability has a CVSS v3.1 base score of 9.1, indicating a critical severity with network attack vector, low attack complexity, no privileges required, and no user interaction needed. The scope is unchanged, meaning the impact is confined to the vulnerable component. Although no exploits are currently known in the wild, the ease of exploitation and the severity of impact make this a high-priority issue. The vulnerability affects all versions of Ollama prior to 0.1.47, though exact affected versions are not specified. No official patches or mitigations are linked yet, but upgrading to 0.1.47 or later is expected to resolve the issue.
Potential Impact
The impact of CVE-2024-45436 is significant for organizations using vulnerable versions of Ollama, especially those processing ZIP files from untrusted or external sources. Successful exploitation can lead to arbitrary file writes outside the intended directory, enabling attackers to overwrite critical files, implant backdoors, or alter application behavior. This compromises the confidentiality and integrity of the system and data. While availability is not directly impacted, the resulting unauthorized file modifications could lead to system instability or facilitate further attacks. Organizations relying on Ollama in production environments, particularly in automated workflows or cloud deployments, face increased risk of supply chain or lateral movement attacks. The vulnerability's network accessibility and lack of authentication requirements increase the attack surface, making it a high-risk threat globally. Without timely remediation, attackers could leverage this flaw to gain persistent footholds or escalate privileges indirectly.
Mitigation Recommendations
To mitigate CVE-2024-45436, organizations should immediately upgrade Ollama to version 0.1.47 or later once available, as this version addresses the directory traversal issue. Until an upgrade is possible, implement strict input validation to reject ZIP archives containing suspicious path elements such as '../' sequences or absolute paths. Employ sandboxing or containerization to isolate the extraction process, limiting the potential impact of any malicious file writes. Monitor file system changes in directories where ZIP files are extracted to detect unauthorized modifications. Additionally, restrict the sources of ZIP files to trusted origins and use file integrity monitoring tools to verify critical files have not been altered. Security teams should also review application logs for unusual extraction activities and consider deploying host-based intrusion detection systems (HIDS) to alert on suspicious file operations. Finally, coordinate with Ollama developers or vendors for official patches and security advisories.
Technical Details
- Data Version
- 5.1
- Assigner Short Name
- mitre
- Date Reserved
- 2024-08-29T00:00:00.000Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 699f6cedb7ef31ef0b56a42b
Added to database: 2/25/2026, 9:43:09 PM
Last enriched: 2/26/2026, 8:13:19 AM
Last updated: 4/12/2026, 3:42:07 PM
Views: 9
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.