<Vulnerability name="CVE-2026-15685">
    <DocumentDistribution xml:lang="en">Copyright © 2012 Red Hat, Inc. All rights reserved.</DocumentDistribution>
    <ThreatSeverity>Important</ThreatSeverity>
    <PublicDate>2026-07-13T21:30:09</PublicDate>
    <Bugzilla id="2499831" url="https://bugzilla.redhat.com/show_bug.cgi?id=2499831" xml:lang="en:us">
Ollama: Ollama: Denial of Service via improper array index validation in downloadBlob function
    </Bugzilla>
    <CVSS3 status="draft">
        <CVSS3BaseScore>7.5</CVSS3BaseScore>
        <CVSS3ScoringVector>CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H</CVSS3ScoringVector>
    </CVSS3>
    <CWE>CWE-787</CWE>
    <Details xml:lang="en:us" source="Mitre">
Ollama downloadBlob Improper Validation of Array Index Denial-of-Service Vulnerability. This vulnerability allows remote attackers to create a denial-of-service condition on affected installations of Ollama. Authentication is not required to exploit this vulnerability.

The specific flaw exists within the downloadBlob function. The issue results from the lack of proper validation of user-supplied data, which can result in a memory access past the end of an allocated array. An attacker can leverage this vulnerability to create a denial-of-service condition on the system. Was ZDI-CAN-27277.
    </Details>
    <Details xml:lang="en:us" source="Red Hat">
A flaw was found in Ollama. This vulnerability allows remote attackers to create a denial-of-service (DoS) condition on affected installations. The issue occurs within the `downloadBlob` function due to improper validation of user-supplied data, which can lead to memory access beyond the bounds of an allocated array. An attacker can exploit this without authentication to disrupt the system's availability.
    </Details>
    <Statement xml:lang="en:us">
This Important vulnerability in Ollama allows a remote, unauthenticated attacker to trigger a denial-of-service condition. The flaw in the `downloadBlob` function, due to improper array index validation, can lead to memory access issues, disrupting the availability of the Ollama service when deployed in a Red Hat environment.
    </Statement>
    <PackageState cpe="cpe:/a:redhat:migration_toolkit_applications:8">
        <ProductName>Migration Toolkit for Applications 8</ProductName>
        <FixState>Not affected</FixState>
        <PackageName>mta/mta-solution-server-rhel9</PackageName>
    </PackageState>
    <PackageState cpe="cpe:/a:redhat:ansible_automation_platform:2">
        <ProductName>Red Hat Ansible Automation Platform 2</ProductName>
        <FixState>Not affected</FixState>
        <PackageName>ansible-automation-platform-24/lightspeed-rhel8</PackageName>
    </PackageState>
    <PackageState cpe="cpe:/a:redhat:ansible_automation_platform:2">
        <ProductName>Red Hat Ansible Automation Platform 2</ProductName>
        <FixState>Not affected</FixState>
        <PackageName>ansible-automation-platform-25/lightspeed-rhel8</PackageName>
    </PackageState>
    <PackageState cpe="cpe:/a:redhat:openshift_ai">
        <ProductName>Red Hat OpenShift AI (RHOAI)</ProductName>
        <FixState>Not affected</FixState>
        <PackageName>rhoai/odh-trustyai-garak-lls-provider-dsp-rhel9</PackageName>
    </PackageState>
    <References xml:lang="en:us">
https://www.cve.org/CVERecord?id=CVE-2026-15685
https://nvd.nist.gov/vuln/detail/CVE-2026-15685
https://www.zerodayinitiative.com/advisories/ZDI-26-403/
    </References>
</Vulnerability>