Security Resilience

CVE-2025-15514

Ollama 0.11.6 – 0.13.5

Public PoC
Published
12 January 2026
Modified
17 August 2026
Patch / advisory
CVSS Score v4 8.7
Click a component to see what it means
Raw vectorCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
EPSS Score 0.0076 56th percentile
Risk Priority 46 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2025-15514 is a high-severity Use of NullPointerException Catch to Detect NULL Pointer Dereference (CWE-395) vulnerability in Ollama. Its CVSS base score is 8.7 (High).

Operationally, exploitation aligns with the MITRE ATT&CK technique Endpoint Denial of Service (T1499); ranked in the top 44% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.

This vulnerability is AI-related — categorised as NLP and Transformers; in the Data-Related Vulnerabilities risk domain.

The strongest mitigations our analysis identified map to SA-11 (Developer Testing and Evaluation) and SA-15 (Development Process, Standards, and Tools) — see the control section below for these in your framework.

Deeper analysis AI-assisted summary

Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.

CVE-2025-15514 is a null pointer dereference vulnerability affecting Ollama versions 0.11.5-rc0 through 0.13.5 in the multi-modal model image processing functionality. The issue arises when processing base64-encoded image data submitted via the /api/chat endpoint. The application does not validate that the decoded data represents valid media before passing it to the mtmd_helper_bitmap_init_from_buf function, which can return NULL for malformed input. Subsequent code fails to check this return value before dereferencing the pointer, leading to a segmentation fault.

A remote attacker with network access can exploit this vulnerability without authentication or user interaction by sending specially crafted base64-encoded image data that decodes to invalid media. This triggers a crash in the runner process, resulting in a denial-of-service condition where the model becomes unavailable to all users until the service is manually restarted. The vulnerability has a CVSS v3.1 base score of 7.5 (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H) and is associated with CWE-395 (Use of Null Pointer).

Advisories and reports detailing the vulnerability and potential mitigations are available from sources including the official Ollama GitHub repository at https://github.com/ollama/ollama, a Huntr bounty report at https://huntr.com/bounties/172df98b-07cd-41ea-a628-366f8cd525c0, the Ollama website at https://ollama.com/, and a Vulncheck advisory at https://www.vulncheck.com/advisories/ollama-multi-modal-image-processing-null-pointer-dereference. Security practitioners should consult these for patch information and remediation guidance.

EU & UK References

Vulnerability Data

Ollama 0.11.5-rc0 through current version 0.13.5 contain a null pointer dereference vulnerability in the multi-modal model image processing functionality. When processing base64-encoded image data via the /api/chat endpoint, the application fails to validate that the decoded data represents valid media…

more

before passing it to the mtmd_helper_bitmap_init_from_buf function. This function can return NULL for malformed input, but the code does not check this return value before dereferencing the pointer in subsequent operations. A remote attacker can exploit this by sending specially crafted base64 image data that decodes to invalid media, causing a segmentation fault and crashing the runner process. This results in a denial of service condition where the model becomes unavailable to all users until the service is restarted.

CWE(s)

AI Security AnalysisAI

AI Category
NLP and Transformers
Risk Domain
Data-Related Vulnerabilities
OWASP Top 10 for LLMs 2025
None mapped
Classification Reason
Matched keywords: ollama

Related Threats

MITRE ATT&CK Enterprise Techniques

MITRE ATT&CK v20.0

T1499 Endpoint Denial of Service Impact
Adversaries may perform Endpoint Denial of Service (DoS) attacks to degrade or block the availability of services to users.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2025-0312Same product: Ollama Ollama
CVE-2025-1975Same product: Ollama Ollama
CVE-2025-0315Same product: Ollama Ollama
CVE-2026-7482Same product: Ollama Ollama
CVE-2024-12055Same product: Ollama Ollama
CVE-2026-7020Same product: Ollama Ollama
CVE-2025-66959Same product: Ollama Ollama
CVE-2025-51471Same product: Ollama Ollama
CVE-2025-66960Same product: Ollama Ollama
CVE-2024-8063Same product: Ollama Ollama

Affected Assets

ollama
ollama
0.11.5 · 0.11.6 — 0.13.5

Mitigating Controls

Mitigating Controls (NIST 800-53 r5)

Our mappings, made for this CVE.

Developer testing and evaluation can discover catch blocks used for null detection during code review or dynamic analysis.

Documented development standards and tools can mandate explicit null checks instead of relying on exception handlers.

Mitigating Controls (NIST CSF 2.0)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→CSF cross-walk — links open the control.

PR.PS-06 mostly match
blocks

Secure SDLC practices directly enforce proper null handling via reviews and tooling rather than exception catching.

Mitigating Controls (ISO/IEC 27001:2022 Annex A)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.

finds

Security testing can detect improper exception handling but does not prevent the coding practice itself.

prevents

Training technical teams in secure coding practices can reduce instances of catching NullPointerException as a null-check substitute, but the mechanism is human practice and is fallible, so only a minority of instances are prevented.

prevents

Secure coding rules explicitly forbid catching NullPointerException to detect null dereferences.

prevents

A.8.30 contracts secure coding practice (8.25–8.29) into outsourced development, which reduces ordinary code-level defects like catching NullPointerException as a substitute for null checks, but the effect is mediated through supplier compliance and human practice, leaving a nameable remainder.

References