Skip to content

ollama auto update persistence#21423

Open
h00die wants to merge 1 commit intorapid7:masterfrom
h00die:ollama_persist
Open

ollama auto update persistence#21423
h00die wants to merge 1 commit intorapid7:masterfrom
h00die:ollama_persist

Conversation

@h00die
Copy link
Copy Markdown
Contributor

@h00die h00die commented May 7, 2026

fixes #21419

This PR takes advantage of a directory traversal vulnerability (CVE-2026-42249) and a lack of signature verification on windows (CVE-2026-42248) to establish persistence through Ollama's update mechanism. Vulnerable versions are 0.12.10 through 0.22.1 (inclusive). While the patch notes for 0.23.0 don't mention anything security or cve related, testing showed its been patched.

Verification

  1. Install the application
  2. Start msfconsole
  3. Get a session
  4. Do: use exploit/windows/persistence/ollama_auto_update
  5. Do: set srvhost [IP]
  6. DO: set session [#]
  7. Do: set payload [payload]
  8. Do: run
  9. Do: logout and log back in
  10. You should get a shell.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

Windows Ollama Update Persistence

2 participants