Bug 2353591 (CVE-2024-7773) - CVE-2024-7773 ollama: Remote Code Execution via ZipSlip in ollama/ollama
Summary: CVE-2024-7773 ollama: Remote Code Execution via ZipSlip in ollama/ollama
Keywords:
Status: NEW
Alias: CVE-2024-7773
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-03-20 11:03 UTC by OSIDB Bzimport
Modified: 2025-06-18 10:23 UTC (History)
22 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-03-20 11:03:31 UTC
A vulnerability in ollama/ollama version 0.1.37 allows for remote code execution (RCE) due to improper input validation in the handling of zip files. The vulnerability, known as ZipSlip, occurs in the parseFromZipFile function in server/model.go. The code does not check for directory traversal sequences (../) in file names within the zip archive, allowing an attacker to write arbitrary files to the file system. This can be exploited to create files such as /etc/ld.so.preload and a malicious shared library, leading to RCE.


Note You need to log in before you can comment on or make changes to this bug.