{"id":"CVE-2024-37032","aliases":["EUVD-2024-1525","GHSA-8hqg-whrw-pv92","GO-2024-2901","openSUSE-SU-2024:14599-1"],"status":"published","title":"Ollama does not validate the format of the digest (sha256 with 64 hex digits)","description":"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.","severity":{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"adp","from":"cve"},"epss":{"day":"2026-11-10","score":0.89633,"percentile":0.9979,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":true},"cwes":["CWE-22"],"published":"2024-05-31T00:00:00Z","modified":"2026-10-28T02:30:56Z","exploits":[{"source":"metasploit","id":"exploit/linux/http/ollama_rce_cve_2024_37032","title":"Ollama Model Registry Path Traversal RCE","type":"exploit","platform":"Linux","date":"2024-05-05","verified":true,"url":"https://www.rapid7.com/db/modules/exploit/linux/http/ollama_rce_cve_2024_37032"},{"source":"pocgithub","id":"Bi0x/CVE-2024-37032","title":"Bi0x/CVE-2024-37032","date":"2024-06-26","url":"https://github.com/Bi0x/CVE-2024-37032"},{"source":"pocgithub","id":"ahboon/CVE-2024-37032-scanner","title":"ahboon/CVE-2024-37032-scanner","date":"2024-07-10","url":"https://github.com/ahboon/CVE-2024-37032-scanner"},{"source":"pocgithub","id":"pankass/CVE-2024-37032_CVE-2024-45436","title":"pankass/CVE-2024-37032_CVE-2024-45436","date":"2024-10-21","url":"https://github.com/pankass/CVE-2024-37032_CVE-2024-45436"},{"source":"pocgithub","id":"itzSh4dowxZ/CVE-2024-37032-PoC","title":"itzSh4dowxZ/CVE-2024-37032-PoC","date":"2026-05-19","url":"https://github.com/itzSh4dowxZ/CVE-2024-37032-PoC"},{"source":"nuclei","id":"CVE-2024-37032","title":"Ollama - Remote Code Execution","type":"detection template","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-37032.yaml"}],"fixes":[{"ecosystem":"Go","package":"github.com/ollama/ollama","fixed_in":["0.1.34"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Go","package":"github.com/ollama/ollama","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.1.34"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/ollama/ollama","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.1.34"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/ollama/ollama","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.1.34"}]}]},{"source":"osv","ecosystem":"openSUSE:Tumbleweed","package":"govulncheck-vulndb","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.0.20241213T205935-1.1"}]}],"bundled":21}],"products":[{"vendor":"ollama","product":"ollama"}],"references":[{"url":"https://github.com/ollama/ollama/pull/4175","tags":["x_transferred","Issue Tracking","fix","web"]},{"url":"https://github.com/ollama/ollama/compare/v0.1.33...v0.1.34","tags":["x_transferred","Release Notes","web"]},{"url":"https://github.com/ollama/ollama/blob/adeb40eaf29039b8964425f69a9315f9f1694ba8/server/modelpath_test.go#L41-L58","tags":["x_transferred","Product","web"]},{"url":"https://www.vicarius.io/vsociety/posts/probllama-in-ollama-a-tale-of-a-yet-another-rce-vulnerability-cve-2024-37032","tags":["x_transferred","Exploit","Third Party Advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-37032","tags":["advisory"]},{"url":"https://github.com/ollama/ollama/commit/2a21363bb756a7341d3d577f098583865bd7603f","tags":["web","fix"]},{"url":"https://pkg.go.dev/vuln/GO-2024-2901","tags":["web"]},{"url":"https://github.com/advisories/GHSA-8hqg-whrw-pv92","tags":["advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/37xxx/CVE-2024-37032.json","tags":["advisory"]},{"url":"https://github.com/ollama/ollama","tags":["package"]},{"url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/QTUY324RV3FFZBHVIWDHRCIOPJHIJIN4/","tags":["advisory"]},{"url":"https://www.suse.com/security/cve/CVE-2020-10696","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2020-8912","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2022-31668","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2023-26248","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2023-3676","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2023-3955","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2024-12401","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2024-37032","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2024-44337","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2024-45039","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2024-45337","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2024-45436","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2024-46455","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2024-46528","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2024-53257","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2024-53859","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2024-55601","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2024-55657","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2024-55658","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2024-55659","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2024-55660","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2024-37032","description":"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.","status":"published","published":"2024-05-31T00:00:00Z","modified":"2025-03-27T20:57:59.559Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"adp"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T14:34:00.929382Z"}],"euvd":[{"id":"EUVD-2024-1525","description":"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.","status":"published","published":"2024-05-31T00:00:00Z","modified":"2025-03-27T20:57:59Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T20:52:48.662755Z"}],"ghsa":[{"id":"GHSA-8hqg-whrw-pv92","title":"Ollama does not validate the format of the digest (sha256 with 64 hex digits)","description":"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.","status":"published","published":"2024-05-31T06:30:27Z","modified":"2024-09-06T21:37:31Z","updated_at":"2026-11-02T14:38:01.080229Z"}],"nvd":[{"id":"CVE-2024-37032","description":"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.","status":"published","published":"2024-05-31T04:15:09.617Z","modified":"2026-06-17T07:37:38.427Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"secondary"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T14:10:03.465199Z"}],"osv":[{"id":"CVE-2024-37032","description":"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.","status":"published","published":"2024-05-31T00:00:00Z","modified":"2026-10-28T02:30:56.588877647Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:41.133403Z"},{"id":"GHSA-8hqg-whrw-pv92","title":"Ollama does not validate the format of the digest (sha256 with 64 hex digits)","description":"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.","status":"published","published":"2024-05-31T06:30:27Z","modified":"2026-09-10T03:50:13.660547949Z","updated_at":"2026-11-02T15:46:42.437513Z"},{"id":"GO-2024-2901","title":"Ollama does not validate the format of the digest (sha256 with 64 hex digits) in github.com/ollama/ollama","description":"Ollama does not validate the format of the digest (sha256 with 64 hex digits) in github.com/ollama/ollama","status":"published","published":"2024-06-14T13:41:08Z","modified":"2026-02-04T02:27:20.613414Z","updated_at":"2026-11-02T15:47:01.453823Z"},{"id":"openSUSE-SU-2024:14599-1","title":"govulncheck-vulndb-0.0.20241213T205935-1.1 on GA media","description":"These are all security issues fixed in the govulncheck-vulndb-0.0.20241213T205935-1.1 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2024-12-18T00:00:00Z","modified":"2026-02-04T02:20:26.243259Z","updated_at":"2026-11-02T16:58:36.976155Z"}]}}
