CVE-2024-37032: Path Traversal

Published May 31, 2024
·
Updated

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.

Other sources

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.

GitHub

Affected Software

2 affected componentsFixes available
go/github.com/ollama/ollama<0.1.34
0.1.34
Ollama Ollama<0.1.34

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade go/github.com/ollama/ollama to a version that resolves this vulnerability.

    Fixed in 0.1.34

Event History

May 31, 2024
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Data Sourced
via NVD·04:15 AM
Description
Data Sourced
via NVD·04:15 AM
SeverityWeakness
Advisory Published
via GitHub·06:30 AM
Jun 24, 2024
News Published
via The Register·08:34 PM
News Published
via The Register·08:39 PM

Frequently Asked Questions

1

What is the severity of CVE-2024-37032?

CVE-2024-37032 has a moderate severity due to improper validation leading to potential security risks.

2

How do I fix CVE-2024-37032?

To fix CVE-2024-37032, upgrade to Ollama version 0.1.34 or later, which includes the necessary validation improvements.

3

What types of input does CVE-2024-37032 fail to validate?

CVE-2024-37032 fails to validate digests that have fewer than 64 hex digits, more than 64 hex digits, or contain an initial ../ substring.

4

What software versions are affected by CVE-2024-37032?

Versions of Ollama prior to 0.1.34 are affected by CVE-2024-37032.

5

Is there any risk associated with exploiting CVE-2024-37032?

Exploiting CVE-2024-37032 could allow attackers to manipulate model paths and potentially access unintended resources.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203