CVE-2025-15514: Ollama Multi-Modal Model Image Processing NULL Pointer Dereference

Published Jan 12, 2026
·
Updated

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 mtmdhelperbitmapinitfrombuf 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.

Affected Software

9 affected components
npm/ollama>=0.11.5-rc0<0.13.5
Ollama Ollama>=0.11.6<=0.13.5
Ollama Ollama=0.11.5
Ollama Ollama=0.11.5-rc0
Ollama Ollama=0.11.5-rc1
Ollama Ollama=0.11.5-rc2
Ollama Ollama=0.11.5-rc3
Ollama Ollama=0.11.5-rc4
Ollama Ollama=0.11.5-rc5

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Ollama to a version that resolves this vulnerability.

    Fixed in 0.13.5
  2. Configuration

    Ensure the /api/chat handler validates that decoded base64 image data represents valid media before passing it to mtmd_helper_bitmap_init_from_buf, and handle malformed/invalid media inputs without dereferencing NULL pointers.

    Ollama /api/chat image processing Decoded base64 image validation before mtmd_helper_bitmap_init_from_buf = enabled
  3. Operational

    Because the runner process crashes and the model is unavailable until restart, restart the Ollama service/runner after applying the fix so availability is restored.

Event History

Jan 12, 2026
CVE Published
via MITRE·11:03 PM
Data Sourced
via MITRE·11:03 PM
DescriptionWeakness
Data Sourced
via NVD·11:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jan 13, 2026
Data Sourced
via Red Hat·12:10 AM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-15514?

CVE-2025-15514 has a severity rating that indicates a significant risk due to the null pointer dereference vulnerability.

2

How do I fix CVE-2025-15514?

To fix CVE-2025-15514, update the Ollama software to a version above 0.13.5 which has addressed this vulnerability.

3

What versions are affected by CVE-2025-15514?

CVE-2025-15514 affects Ollama versions from 0.11.5-rc0 to 0.13.5.

4

What endpoint is vulnerable in CVE-2025-15514?

The /api/chat endpoint is vulnerable in CVE-2025-15514 when processing base64-encoded image data.

5

What type of vulnerability is CVE-2025-15514?

CVE-2025-15514 is a null pointer dereference vulnerability related to multi-modal model image processing.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203