CVE-2024-37032
Ollama does not validate the format of the digest (sha256 with 64 hex digits)
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 profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
8.8
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.
- Record
CVE-2024-37032- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-22
- Updated
- 2026-11-02
EUVDEUVD-2024-1525
8.8
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.
- Record
EUVD-2024-1525- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-8hqg-whrw-pv92 No score
Ollama does not validate the format of the digest (sha256 with 64 hex digits)
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.
- Record
GHSA-8hqg-whrw-pv92- Updated
- 2026-11-02
NVD
8.8
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.
- Record
CVE-2024-37032- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-22
- Updated
- 2026-11-02
OSV
8.8
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.
- Record
CVE-2024-37032- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVGHSA-8hqg-whrw-pv92 No score
Ollama does not validate the format of the digest (sha256 with 64 hex digits)
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.
- Record
GHSA-8hqg-whrw-pv92- Updated
- 2026-11-02
OSVGO-2024-2901 No score
Ollama does not validate the format of the digest (sha256 with 64 hex digits) in github.com/ollama/ollama
Ollama does not validate the format of the digest (sha256 with 64 hex digits) in github.com/ollama/ollama
- Record
GO-2024-2901- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:14599-1 No score
govulncheck-vulndb-0.0.20241213T205935-1.1 on GA media
These are all security issues fixed in the govulncheck-vulndb-0.0.20241213T205935-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:14599-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
github.com/ollama/ollamaGo |
before 0.1.34 | 0.1.34 |
govulncheck-vulndbopenSUSE:Tumbleweed From an advisory covering 21 CVEs |
before 0.0.20241213T205935-1.1 | 0.0.20241213T205935-1.1 |
Public exploits
Links only. Every CVE stores no exploit code.
| Source | Link | Date |
|---|---|---|
| Metasploit | Ollama Model Registry Path Traversal RCE | 2024-05-05 |
| PoC in GitHub | Bi0x/CVE-2024-37032 | 2024-06-26 |
| PoC in GitHub | ahboon/CVE-2024-37032-scanner | 2024-07-10 |
| PoC in GitHub | pankass/CVE-2024-37032_CVE-2024-45436 | 2024-10-21 |
| PoC in GitHub | itzSh4dowxZ/CVE-2024-37032-PoC | 2026-05-19 |
| Nuclei | Ollama - Remote Code Execution |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, exploits, facts | ||
| first indexed | CVE List, EUVD, GitHub Advisories, Metasploit, Nuclei, NVD, OSV, PoC in GitHub |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2024-37032 is a high vulnerability (CVSS 8.8) in Ollama, published May 31, 2024. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 89.6%, the 99th percentile. Fixed in github.com/ollama/ollama 0.1.34.
References
github.com/ollama/ollama/pull/4175
github.com/ollama/ollama/compare/v0.1.33...v0.1.34
github.com/ollama/ollama/blob/adeb40eaf29039b8964425f69a9315f9f1694ba8/server/modelpath_test.go
vicarius.io/vsociety/posts/probllama-in-ollama-a-tale-of-a-yet-another-rce-vulnerability-cve-2024-37032
nvd.nist.gov/vuln/detail/CVE-2024-37032
github.com/ollama/ollama/commit/2a21363bb756a7341d3d577f098583865bd7603f
Show 26 moreShow less
pkg.go.dev/vuln/GO-2024-2901
github.com/advisories/GHSA-8hqg-whrw-pv92
github.com/CVEProject/cvelistV5/tree/main/cves/2024/37xxx/CVE-2024-37032.json
github.com/ollama/ollama
lists.opensuse.org/archives/list/[email protected]/thread/QTUY324RV3FFZBHVIWDHRCIOPJHIJIN4
suse.com/security/cve/CVE-2020-10696
suse.com/security/cve/CVE-2020-8912
suse.com/security/cve/CVE-2022-31668
suse.com/security/cve/CVE-2023-26248
suse.com/security/cve/CVE-2023-3676
suse.com/security/cve/CVE-2023-3955
suse.com/security/cve/CVE-2024-12401
suse.com/security/cve/CVE-2024-37032
suse.com/security/cve/CVE-2024-44337
suse.com/security/cve/CVE-2024-45039
suse.com/security/cve/CVE-2024-45337
suse.com/security/cve/CVE-2024-45436
suse.com/security/cve/CVE-2024-46455
suse.com/security/cve/CVE-2024-46528
suse.com/security/cve/CVE-2024-53257
suse.com/security/cve/CVE-2024-53859
suse.com/security/cve/CVE-2024-55601
suse.com/security/cve/CVE-2024-55657
suse.com/security/cve/CVE-2024-55658
suse.com/security/cve/CVE-2024-55659
suse.com/security/cve/CVE-2024-55660