CVE-2024-39719: ollama · Generation of Error Message Containing Sensitive Information
Affects ollamaSource CVE Database V5
Not known to be exploited · CVSS 7.5 High : upgrade to 0.3.15 soon.
Data as of 26 Oct 2026, 17:16 UTC
- EPSS
- 4.2% chance of exploitation in 30 days – higher than 90% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 0.3.15
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:NExploitation evidence
Disclosed: evidence found.
CVE published 31 Oct 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade ollama to 0.3.15.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
npmollamapkg:npm/ollamaOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
To mitigate CVE-2024-39719, organizations should implement the following specific measures: 1) Restrict access to the api/create endpoint by implementing network-level controls such as IP whitelisting, VPN access, or firewall rules to limit exposure to trusted users only. 2) Employ web application firewalls (WAFs) configured to detect and block requests with suspicious path parameters or error message patterns indicative of probing attempts. 3) Monitor application logs for repeated or anomalous requests to the CreateModel route that may indicate reconnaissance activity. 4) Implement custom error handling in Ollama to avoid disclosing detailed error messages; replace explicit "File does not exist" responses with generic error messages that do not reveal file existence. 5) Stay updated with Ollama vendor advisories and apply patches promptly once available. 6) Conduct regular security assessments and penetration testing to identify similar information disclosure issues. 7) Consider deploying runtime application self-protection (RASP) solutions to detect and mitigate exploitation attempts in real time. These targeted actions go beyond generic advice by focusing on access control, error message management, and proactive detection tailored to this vulnerability.
Description
An issue was discovered in Ollama through 0.3.14. File existence disclosure can occur via api/create. When calling the CreateModel route with a path parameter that does not exist, it reflects the "File does not exist" error message to the attacker, providing a primitive for file existence on the server.