CVE-2026-7482: Ollama < 0.17.1 - Information Disclosure

2026-11-12 PoC Public

Description

Ollama < 0.17.1 contains a heap out-of-bounds read caused by improper validation of tensor offset and size in GGUF model loader, letting remote attackers leak sensitive memory data via /api/create and /api/push endpoints, exploit requires no authentication.

Details

CVE
CVE-2026-7482 · CVE.org
Severity
高危
Published
PoC
Public

PoC

id: CVE-2026-7482

info:
  name: Ollama < 0.17.1 - Information Disclosure
  author: theamanrawat
  severity: high
  description: |
    Ollama < 0.17.1 contains a heap out-of-bounds read caused by improper validation of tensor offset and size in GGUF model loader, letting remote attackers leak sensitive memory data via /api/create and /api/push endpoints, exploit requires no authentication.
  impact: |
    Remote attackers can leak sensitive memory contents including environment variables, API keys, and user data, leading to information disclosure.
  remediation: |
    Update to version 0.17.1 or later.
  reference:
    - https://github.com/advisories/GHSA-x8qc-fggm-mpqg
    - https://github.com/ollama/ollama/commit/88d57d0483cca907e0b23a968c83627a20b21047
    - https://github.com/szybnev/CVE-2026-7482
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
    cvss-score: 9.1
    cve-id: CVE-2026-7482
    epss-score: 0.02241
    epss-percentile: 0.82982
    cwe-id: CWE-125
  metadata:
    max-request: 2
    verified: false
    vendor: ollama
    product: ollama
    shodan-query: 'port:11434 "Ollama is running"'
    fofa-query: 'body="Ollama is running" && port="11434"'
  tags: cve,cve2026,ollama,exposure,vuln,vkev,passive

flow: http(1) && http(2)

http:
  - method: GET
    path:
      - '{{BaseURL}}/'
    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(body, "Ollama is running")'
          - 'len(body) < 64'
        condition: and
        internal: true

  - method: GET
    path:
      - '{{BaseURL}}/api/version'
    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(content_type, "application/json")'
          - 'compare_versions(ollama_version, "< 0.17.1")'
        condition: and

    extractors:
      - type: regex
        name: ollama_version
        group: 1
        regex:
          - '"version"\s*:\s*"([0-9]+\.[0-9]+\.[0-9]+)"'
# digest: 4a0a00473045022100f257f3f54b151aa65535da93ef3576b8f5ffc62134ca5d18e4d4462e1eec5ad902204dd84f0e599483327f7006a535e138f5e70aa184e57f0f21aaf88ab7043e8b8c:922c64590222798bb761d5b6d8e72950

# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.

References

微信搜一搜 biu.life