CVE-2025-15514 Details
Description
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.
A null pointer dereference vulnerability has been identified in Ollama versions 0.11.5-rc0 through 0.13.5. This issue arises in the multi-modal model image processing feature, specifically when the application processes base64-encoded image data via the /api/chat endpoint. The vulnerability exists because the application does not 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 fails to check this return value before dereferencing the pointer in subsequent operations. As a result, a remote attacker can exploit this vulnerability by sending specially crafted base64 image data that decodes to invalid media, leading to a segmentation fault that crashes the runner process. This creates a denial-of-service condition, making the model unavailable to all users until the service is restarted.
Update the 'ollama/llama/llama.go' file to include a null check for the decoded media pointer before it is used. This can be done by modifying the code to abort the operation if the bitmap initialization fails, preventing the null pointer dereference.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jan 13, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://access.redhat.com/security/cve/CVE-2025-15514 | redhat-SADP | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2428828 | redhat-SADP | |
| https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-15514.json | redhat-SADP | |
| https://https://github.com/ollama/ollama | [email protected] | Product |
| https://huntr.com/bounties/172df98b-07cd-41ea-a628-366f8cd525c0 | [email protected] | ExploitPatchThird Party Advisory |
| https://ollama.com/ | [email protected] | Product |
| https://www.vulncheck.com/advisories/ollama-multi-modal-image-processing-null-pointer-dereference | [email protected] | Third Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-395 | Use of NullPointerException Catch to Detect NULL Pointer Dereference | redhat-SADP |
| CWE-395 | Use of NullPointerException Catch to Detect NULL Pointer Dereference | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| ollama ollama | >= 0.11.6, <= 0.13.5 0.11.5 - 0.11.5 rc0 0.11.5 rc1 0.11.5 rc2 0.11.5 rc3 0.11.5 rc4 0.11.5 rc5 |
CPE
Remediation
| |
Change History
7 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Aug 17, 2026 | CVE Modified | [email protected] |
| Jul 15, 2026 | CVE Modified | redhat-SADP |
| Jun 30, 2026 | CVE Modified | redhat-SADP |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jan 21, 2026 | Initial Analysis | [email protected] |
| Jan 12, 2026 | New CVE Received | [email protected] |