CVE-2024-39722 Path traversal in n/a

High 7.5 Published Updated

Attackers can determine which files exist on the server hosting Ollama via a path traversal vulnerability in the push API route.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2024-39722?

CVE-2024-39722 is a high-severity path traversal vulnerability in n/a, published on 31 Oct 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

An issue was discovered in Ollama before 0.1.46. It exposes which files exist on the server on which it is deployed via path traversal in the api/push route.

Weakness: CWE-22

Which versions are affected by CVE-2024-39722?

It affects 1 product.

Products include Ollama Ollama.

How do I fix CVE-2024-39722?

No fix has been published for CVE-2024-39722 yet. Limit exposure of the affected software until one is available.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2024-39722 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-39722 exists.

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as GHSA-cfxq-8762-vx3v.

Is CVE-2024-39722 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free