Skip to content

CVE-2024-28224: Ollama Local Daemon DNS Rebinding API Authorization Bypass

Density:
HERMES

HERMES THREAT SCORE & LOCAL INFERENCE INFRASTRUCTURE RISK

Target: Ollama Local LLM Inference Daemon (versions antรฉrieures ร  0.1.29)
Confidence: 97%
86 / 100
CRITICAL

Measures real-world operational relevance, exploit weaponization, and active threat posture.

Dimension Breakdown
Exploitability 18 / 20
Threat Activity 17 / 20
Weaponization 18 / 20
Exposure 18 / 20
Prevalence 19 / 20
Impact 18 / 20
Exploit Maturity 18 / 20
Attack Chain Potential 18 / 20
โš–๏ธ Divergence & Operational Rationale

NVD catalogs this vulnerability as High severity (CVSS 8.8). Hermes evaluates CVE-2024-28224 at an HTS of 86 (CRITICAL) and an Agentic Score of 84 (CRITICAL). Local AI runners like Ollama are deployed on millions of developer and workstation endpoints. By abusing DNS rebinding, remote websites completely bypass browser Same-Origin Policy (SOP), effectively turning localhost:11434 into an unauthenticated remote execution bridge.

๐Ÿ•ธ๏ธ Connected Knowledge Graph & Provenance

CVE-2024-28224: Ollama Local Daemon DNS Rebinding API Authorization BypassVULNERABILITY

Connected Nodes: 2
Active Relationships (Outgoing)
→ affectsPRODUCTOllama Local LLM Runner
98% VERY_HIGH

Software platform affected by security vulnerabilities and agentic attack patterns.

๐Ÿ” Why is this related? (Evidence & Provenance)

“Confirmed security vulnerability in Ollama Local LLM Runner documented in Hermes dossier.”

Supporting Verified Evidence:
→ exploitsAGENTIC ATTACK_PATTERNAAP-002: Indirect Context Injection
92% VERY_HIGH

Adversary embeds covert payload instructions into retrieved external data (web pages, repositories, emails) that subvert model planning when parsed by autonomous agents.

๐Ÿ” Why is this related? (Evidence & Provenance)

“CVE-2024-28224 weaponizes the agentic attack pattern formalized under AAP-002.”

Supporting Verified Evidence:
ParameterTechnical SpecificationOperational Impact
CVE IdentifierCVE-2024-28224Official MITRE / NVD entry
Associated CWEsCWE-346: Origin Validation Error
CWE-350: Reverse DNS Reliance
Local service control via external browser session
CVSS v3.1 Score8.8 HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Hermes Threat Score (HTS)86 / 100 (CRITICAL)Widespread exposure across AI developer laptops
Hermes Agentic Score (HASS)84 / 100 (CRITICAL)Unauthorized model tampering and prompt extraction
Affected Softwareollama:ollamaVersions antรฉrieures ร  0.1.29
Fixed Version0.1.29Host header validation and Origin whitelisting
Research CreditNCC GroupCybersecurity research advisory

DNS rebinding allows an attacker to bypass the browserโ€™s Same-Origin Policy (SOP) by manipulating the Time-To-Live (TTL) of a domain name:

graph TD
User["Victim Developer"] -->|1. Visits attacker.com| AttackerDNS["Attacker Authoritative DNS (TTL=0)"]
AttackerDNS -->|2. Resolves first to Attacker IP| AttackerSite["Attacker Web Server (Delivers JS Payload)"]
AttackerSite -->|3. Second DNS lookup resolves to 127.0.0.1| Localhost["Localhost 127.0.0.1:11434 (Ollama Daemon)"]
Localhost -->|4. Browser executes API commands| Exfil["Steal Prompts, Delete Models, DoS Memory"]
  1. The victim visits attacker.com. The attackerโ€™s nameserver returns the attackerโ€™s public IP address with a DNS TTL of 0 seconds.
  2. The browser downloads the attackerโ€™s JavaScript code.
  3. The JavaScript initiates continuous fetch requests to the same origin (attacker.com). When the browserโ€™s DNS cache expires, the second DNS request resolves to 127.0.0.1.
  4. Because the browser perceives both requests as having the same hostname origin, it permits cross-request inspection.
  5. Because Ollama did not validate that the HTTP Host header was localhost or 127.0.0.1, it accepted requests addressed to Host: attacker.com and executed commands such as:
    • GET /api/tags (enumerate all local models)
    • POST /api/generate (issue prompts and exfiltrate responses)
    • DELETE /api/delete (destroy local model weights)
    • POST /api/pull (download rogue model weights containing backdoors)

  • DNS Telemetry: Look for domains resolving to 127.0.0.1 or ::1 with abnormally short TTL values (0s or 1s).
  • Endpoint Traffic: Local loopback HTTP traffic on port 11434 with non-localhost Host headers (Host: *.com or alphanumeric domain names).

Upgrade Ollama to version 0.1.29 or later:

Terminal window
# On macOS / Linux
curl -fsSL https://ollama.com/install.sh | sh