CONTENTUM.COMA specialist. A plan. A result.

Vulnerabilities · 2024 · Ollama

CVE-2024-39720
Ollama vulnerability

An issue was discovered in Ollama before 0.1.46. An attacker can use two HTTP requests to upload a malformed GGUF file containing just 4 bytes starting with the GGUF custom magic header. By leveraging a custom Modelfile that includes a FROM statement pointing to the attacker-controlled blob file, the attacker can crash the application through the CreateModel route, leading to a segmentation fault (signal SIGSEGV: segmentation violation).

Affected products

Ollama. The exact versions are in the references.

What to do now

  • Check your exposureFind out whether Ollama runs anywhere in your environment, including systems of suppliers.
  • UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
  • Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.

References

More vulnerabilities in Ollama products

Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.