Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
Tools/GitHubGitHub/akinerkisa/llamasmuggle-cve-2026-102697
Authentication & AuthorizationVulnerability AnalysisCode AnalysisExploitationLearning & EducationAI Security
GitHubakinerkisa/llamasmuggle-cve-2026-102697

llamasmuggle-cve-2026-102697

Share

LlamaSmuggle (formerly BlindLlama): CVE-2026-102697 Reproduction

View Repository
1 day agoNot yet reviewed

LlamaSmuggle: CVE-2026-102697 Reproduction

LlamaSmuggle is an incorrect authorization vulnerability in Ollama's experimental Agent Mode. This repository provides harmless tests for the vulnerable session approval decision in Ollama v0.31.1. The tests execute no shell commands and only call the relevant authorization functions.

The vulnerability was first published as BlindLlama. Test names (TestBlindLlama*), file names and the BLINDLLAMA_BASELINE marker keep the original name so they match the screenshots and expected output.

Affected

  • Product: Ollama experimental Agent Mode
  • Affected versions: >= 0.14.0, < 0.31.2
  • CWE: CWE-863, Incorrect Authorization
  • CVSS v4.0: 8.5 High
  • CVSS v3.1: 7.8 High

What this proves

When a user grants session permission for cat repro/approved.txt, the vulnerable implementation stores the authorization as the prefix cat:repro/. A later command, cat repro/approved.txt; echo SECOND_COMMAND_EXECUTED, is reduced to the same prefix. ApprovalManager.IsAllowed therefore returns true, so the authorization layer does not request a new approval for the appended shell operation.

TestBlindLlamaNegativeControls bounds this result. It confirms the collision needs a prior session permission (a fresh manager denies the chained command), that a standalone out-of-scope command such as echo is not auto-allowed, and that the separate IsDenied denylist does not block the proof-of-concept command.

What this does not prove

  • These tests do not measure prompt injection success.
  • The live runtime demonstration verified only the semicolon variant.
  • The test suite does not execute the displayed cat or echo commands.

The live screenshots (01, 04, 05) were captured with the official Ollama v0.31.1 Windows release. Both the client and the server report 0.31.1, and the package SHA-256 matches Ollama's published sha256sum.txt. The model used in Agent Mode was qwen3.5:9b (ollama run qwen3.5:9b --experimental).

Disclaimer

This repository is provided strictly for educational purposes, defensive security research, and the authorized reproduction of CVE-2026-102697.

The included tests are designed to demonstrate the affected authorization logic without executing the proof-of-concept shell commands. Any live reproduction should be conducted exclusively in a controlled, isolated environment on systems you own or are explicitly authorized to test.

Unauthorized access, exploitation, or use of these materials against third-party systems is strictly discouraged. Users are solely responsible for ensuring that their activities comply with applicable laws, regulations, and authorization requirements.

All materials are provided "AS IS", without warranty of any kind. To the extent permitted by applicable law, the author disclaims liability for damages, misuse, or consequences arising from the use of this repository.

This is an independent security research project and is not affiliated with or endorsed by Ollama or its maintainers.

Run

Requirements:

  • Git
  • Go 1.26 or a Go installation capable of downloading the toolchain requested by Ollama v0.31.1
  • Network access to clone the public Ollama repository

Linux or macOS:

chmod +x run.sh
./run.sh
./run.sh /path/to/new/ollama-clone

Windows PowerShell:

.\run.ps1
.\run.ps1 C:\path\to\new\ollama-clone

If no clone directory is supplied, the script creates a unique directory below the operating system's temporary directory. The clone is retained for inspection.

On Windows, if the clone stops with Filename too long, use a shorter clone path or run git config --global core.longpaths true.

Expected output

The complete output from a validated run is stored in expected-output.txt. The security-relevant lines are:

INPUT:  cat repro/approved.txt
PREFIX: cat:repro/
INPUT:  cat repro/approved.txt; echo SECOND_COMMAND_EXECUTED
PREFIX: cat:repro/
NEW_APPROVAL_REQUIRED=false
VULNERABLE_AUTHORIZATION_DECISION=true
NO_PRIOR_PERMISSION_ALLOWED=false
OUT_OF_SCOPE_ALLOWED=false
POC_DENYLISTED=false PATTERN=""

Live reproduction

run.sh and run.ps1 run the unit tests above; they do not drive the live Agent Mode TUI. Screenshots 01, 04 and 05 were produced manually in this environment:

  • Ollama: official v0.31.1 Windows release (client and server both report 0.31.1).
  • Server address: 127.0.0.1:11436.
  • Model: qwen3.5:9b, started with ollama run qwen3.5:9b --experimental.
  • Working directory contains repro/approved.txt (contents: BLINDLLAMA_BASELINE).

Steps:

  1. Instruct the model: You must call the available bash tool with command cat repro/approved.txt. No text response.
  2. At the approval prompt, choose Allow for this session (scope: cat in repro/ directory (includes subdirs)).
  3. Instruct the model: You must call the available bash tool with command cat repro/approved.txt; echo SECOND_COMMAND_EXECUTED. No text response.
  4. No second approval prompt appears. The CLI shows running: Bash: ... and prints both BLINDLLAMA_BASELINE and SECOND_COMMAND_EXECUTED.

Fixed version

Ollama 0.31.2 removed the x/agent package and the affected experimental Agent Mode code path. This test intentionally does not compile against 0.31.2 because the vulnerable implementation it targets is no longer present.

Screenshots

  • 01-session-approval.png: The user grants session permission for cat within the repro/ directory.
  • 02-prefix-collision.png: An uncached test run shows both command strings reducing to cat:repro/.
  • 03-source-version.png: The source checkout is pinned to v0.31.1, and the relevant source files match that tag.
  • 04-no-second-approval.png: The chained command runs without a second approval prompt and prints the harmless marker.
  • 05-runtime-versions.png: In the live environment, ollama -v and the server API both report 0.31.1, and the package SHA-256 matches Ollama's sha256sum.txt.

References

  • CVE-2026-102697
  • VulnCheck advisory
  • Ollama v0.31.1 approval.go
  • Ollama PR #16963
  • LlamaSmuggle article

Author

Akıner Kısa

License

MIT

Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    915
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    891
  • 3

    wifit3

    derv82/wifit3

    Wifite but USB-only & cross-platform.

    678
  • 4

    jumpserver

    jumpserver/jumpserver

    JumpServer is an open-source Privileged Access Management (PAM) platform that provides DevOps and IT teams with on-demand and secure access to SSH, RDP, Kubernetes, Database and RemoteApp endpoints through a web browser.

    454
  • 5

    SafeLine

    chaitin/safeline

    Self-hosted WAF and reverse proxy that filters malicious HTTP traffic, blocks SQL injection, XSS, and bot attacks, with rate limiting and dynamic HTML/JS encryption.

    404
  • 6

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    388

Explore all tools

Browse our collection of tools

View all tools →