Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
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.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2024-39722 | Kitploit
Tools/GitHubGitHub/srcx404/cve-2024-39722
ReconnaissanceVulnerability AnalysisExploitationWeb Application ExploitationInformation GatheringCrawler
GitHubsrcx404/cve-2024-39722

CVE-2024-39722

View Repository
1 year agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

Ollama CVE-2024-39722 Exploit Tool

This tool is designed to exploit CVE-2024-39722, a model existence disclosure vulnerability in Ollama versions up to and including 0.1.45. It allows users to check if an Ollama server is vulnerable and attempt to discover existing models on the server. Additionally, it can crawl the official Ollama model library to generate a list of potential models for testing. 中文

Vulnerability Details

  • CVE ID: CVE-2024-39722
  • Description: Ollama versions <= 0.1.45 are vulnerable to a model existence disclosure. By sending a specially crafted request to the /api/push endpoint, an attacker can determine if a specific model (including custom models not in the public library) exists on the server.
  • Affected Versions: <= 0.1.45
  • CVSS Score: 7.5 (High)

Features

  • Crawl Ollama Model Library: Fetches the list of models from the official Ollama library (https://ollama.com/library).
  • Version Check: Checks if the target Ollama server version is vulnerable.
  • Exploit Vulnerability: Attempts to discover existing models on a vulnerable Ollama server using a list of known model names.
  • Multi-threaded Exploitation: Uses multiple threads for faster model discovery.
  • Output Results: Saves crawled models and leaked models to a JSON file.

Requirements

  • Python 3.x
  • requests
  • lxml
  • termcolor

Installation

  1. Clone the repository or download the script CVE_2024_39722.py.
  2. Install the required Python packages:
    root@kitploit:~
    pip install requests lxml termcolor
    

Usage

root@kitploit:~
python CVE_2024_39722.py [options]

Options

  • -h, --help: Show the help message and exit.
  • -u URL, --url URL: Target Ollama server URL (e.g., http://localhost:11434).
  • -c, --crawl: Crawl Ollama models library and save them to links.json.
  • -o OUTPUT, --output OUTPUT: Output file for results (default: results.json).
  • -t THREADS, --threads THREADS: Number of threads to use for exploitation (default: 10).
  • -v, --version-check: Only check if the target Ollama server is vulnerable based on its version.

Examples

  1. Show help:

    root@kitploit:~
    python CVE_2024_39722.py -h
    
  2. Crawl Ollama model library: This will fetch model names from https://ollama.com/library and save them to links.json.

    root@kitploit:~
    python CVE_2024_39722.py --crawl
    
  3. Check if a target server is vulnerable:

    root@kitploit:~
    python CVE_2024_39722.py -u http://localhost:11434 --version-check
    
  4. Exploit a target server: This will first check the server's version. If vulnerable, it will use the links.json (crawl if not present or use existing) to test for model existence.

    root@kitploit:~
    python CVE_2024_39722.py -u http://localhost:11434
    
  5. Exploit with a specific number of threads:

    root@kitploit:~
    python CVE_2024_39722.py -u http://localhost:11434 -t 20
    
  6. Exploit and save results to a custom file:

    root@kitploit:~
    python CVE_2024_39722.py -u http://localhost:11434 -o discovered_models.json
    

Disclaimer

This tool is intended for educational and authorized security testing purposes only. Do not use it on any system without explicit permission from the owner. The author is not responsible for any misuse or damage caused by this tool.

Download Tool