CVE-2024-39722 is a path-traversal vulnerability in Ollama versions through 0.1.45 in the Push API handler. Crafted path values can cause reflected error responses that disclose directory and file-existence information from the server hosting Ollama.
Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.
What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
If you can’t patch tonight, do this now.
Patch, then assume compromise.
1 valid exploit after Mallory filtered fakes, detection scripts, and README-only repos.
This repository contains a Python proof-of-concept exploit for CVE-2024-39722, a model existence disclosure vulnerability in Ollama versions up to and including 0.1.45. The main script, CVE_2024_39722.py, provides three core capabilities: (1) crawling the official Ollama model library to build a list of model names, (2) checking if a target Ollama server is vulnerable by querying its /api/version endpoint, and (3) exploiting the vulnerability by sending crafted requests to the /api/push endpoint to determine which models exist on the server, including private or custom models. The exploit is multi-threaded for efficiency and outputs results to a JSON file. The repository also includes English and Chinese README files with detailed usage instructions. The exploit does not provide code execution or privilege escalation, but enables attackers to enumerate sensitive model names on vulnerable Ollama servers.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.
3 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.
Query your assets running an affected version, and investigate the blast radius.
Every observed campaign linking this CVE to a named adversary.
Malware families riding this exploit, with evidence and IOCs.
YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Cross-references every affected SKU, including bundled OEM variants.
Community discussion across Reddit, Mastodon, and other social sources.