S4E just found a high-severity finding from top 10 tcp port service scan
PlatformPlansPartners
Resources
ToolsBlogDocs
Sign Up →
critical·Product Based Web Vulnerabilities·Updated Aug 10, 2024

CVE-2024-37032 Scanner

CVE-2024-37032 scanner - Remote Code Execution vulnerability in Ollama

Est. Time~10 seconds
Scan TypeSingle Scan
Targetsdomain, ipv4, subdomain
CostFree
3.1k
Times Used
continuous scan runs
5.8k
Continuously Checked
assets under CS
0
Vulnerabilities Found
confirmed findings
References
CVECVE-2024-37032
8.8
CVSShigh
Exploitable remotely over the internet · low-privilege account sufficient.

Ollama before 0.1.34 does not validate the format of the digest (sha256 with 64 hex digits) when getting the model path, and thus mishandles the TestGetBlobsPath test cases such as fewer than 64 hex digits, more than 64 hex digits, or an initial ../ substring.

Attack Vector
Network
Privileges Req.
Low
User Interaction
None
Affected
n/aby n/a
n/a
Updated Sep 10, 2026View on NVD →
Detail

Ollama is a software tool used by developers and IT professionals to manage and interact with various models and APIs. It is commonly used in environments where secure data processing and manipulation are critical. The platform supports multiple integrations, making it a versatile tool in the development ecosystem. It is widely adopted in enterprises for automating tasks and enhancing productivity. Ollama ensures seamless connectivity and data flow across different platforms.

The vulnerability in Ollama before version 0.1.34 allows remote attackers to execute arbitrary code on the system. This occurs because the software fails to validate the format of the digest properly when processing certain inputs. Exploitation of this flaw can lead to unauthorized access and potential system compromise. The severity of this vulnerability is critical, given its potential impact on the system.

The vulnerability resides in the handling of the digest format in the TestGetBlobsPath function of Ollama. When a request is made with an improperly formatted digest (either fewer or more than 64 hex digits), or with a path containing an initial ../ substring, the software fails to process it securely. This can be exploited by sending a specially crafted HTTP request to the /api/pull or /api/push endpoints. If successful, the attacker can execute arbitrary code on the server, potentially leading to full system compromise.

If exploited, this vulnerability could allow attackers to remotely execute arbitrary code, leading to full control over the affected system. This could result in unauthorized access to sensitive data, disruption of services, or further exploitation within the network. In a worst-case scenario, an attacker could deploy malware, steal data, or use the compromised system as a pivot point for additional attacks.

By using the S4E platform, you can continuously monitor your digital assets for vulnerabilities like the one found in Ollama. Our platform provides real-time alerts, comprehensive reports, and actionable remediation steps, helping you stay ahead of potential threats. Join our community to safeguard your systems and ensure compliance with the latest security standards. With S4E, you have a reliable partner in your cybersecurity journey.

References:

Solution Advice
  • Upgrade Ollama to version 0.1.34 or later to mitigate the vulnerability.
  • Regularly audit and monitor API endpoints for unusual activity.
  • Implement strict input validation to prevent exploitation of similar vulnerabilities.
  • Apply network security controls to restrict access to vulnerable endpoints.
  • Consider deploying a Web Application Firewall (WAF) to block malicious requests.

Get AI-powered remediation steps tailored to your asset.

Try AI Solutions →

Check your infrastructure.
Right now.

11,000+ scanners. Free to start. No credit card required.

CVE-2024-37032 scanner - Remote Code Execution vulnerability in Ollama | S4E