github.com/ollama/ollama is vulnerable to Path Traversal
77
High Risk
The bundled desktop application auto-updater builds the local staging path for a downloaded installer from attacker-influenceable HTTP response header values such as the filename and ETag. These values are passed to filepath.Join without validation, so ../ sequences let a staged file be written outside the update staging directory, including the Windows Startup folder. An attacker able to control or intercept the update response can drop and later execute an arbitrary executable, and chaining it with the missing update signature check yields silent persistent code execution. The fix constrains the filename with safeUpdateFilename, hashes the ETag into a fixed staging subdirectory, and enforces ensurePathInDir so the resolved path cannot escape the staging directory.
You are affected if you are using a version that falls within the vulnerable range and using the bundled Windows desktop application automatic update flow.
github.com/ollama/ollama is vulnerable to Path Traversal in versions 0.12.10 - 0.23.2.
Upgrade the github.com/ollama/ollama library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant