CVE-2025-15514: Ollama Multi-Modal Model Image Processing NULL Pointer Dereference
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 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.
Security readout for executives and security teams
Plain-English summary
Ollama can be remotely crashed when malformed base64 image data is sent to its chat API for multi-modal processing. The impact is availability: the runner process segfaults and the model becomes unavailable until restart. The bundle does not show active exploitation.
Executive priority
Prioritize remediation for exposed Ollama services because a single unauthenticated request can make models unavailable. Treat internal-only deployments as lower urgency but still patchable operational risk, especially where shared AI services support business workflows.
Technical view
CVE-2025-15514 is a NULL pointer dereference in Ollama image handling. The decoded image buffer is not validated before mtmd_helper_bitmap_init_from_buf; when that returns NULL, later code dereferences it and crashes. The bundle reports Ollama 0.11.5-rc0 through 0.13.5 and CVSS 4.0 score 8.7.
Likely exposure
Exposure is most relevant where Ollama’s /api/chat endpoint is reachable over a network and accepts multi-modal image inputs. Internet-facing, shared, or unauthenticated deployments have higher operational risk. The source bundle lists Ollama only; no downstream affected products are established here.
Exploitation context
The CVSS vector indicates remote, low-complexity, unauthenticated exploitation with no user interaction and high availability impact. The provided references include a technical/exploit-tagged Huntr report, but the bundle says KEV is false and provides no evidence of active exploitation.
Researcher notes
Evidence supports an availability-only denial of service in multi-modal image processing. Confidentiality and integrity impacts are listed as none. Fix availability is not established in the bundle, so avoid claiming a patched version without vendor confirmation.
Mitigation direction
Check Ollama vendor guidance for a fixed release or official workaround.
Restrict network access to Ollama APIs, especially /api/chat.
Require authentication or trusted network placement for model endpoints.
Disable or limit multi-modal image processing where operationally feasible.
Restart affected runner processes after a crash while remediation is pending.
Validation and detection
Inventory Ollama versions and identify 0.11.5-rc0 through 0.13.5 deployments.
Confirm whether /api/chat is reachable from untrusted networks.
Review logs for runner segmentation faults during image chat requests.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · low confidence lookup
CWE-395: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-395 · source CWE mapping
Use of NullPointerException Catch to Detect NULL Pointer Dereference
Use of NullPointerException Catch to Detect NULL Pointer Dereference represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.