Uncontrolled Search Path Element Affecting ramalama package, versions [,0.8.3)


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-RAMALAMA-12671204
  • published15 Sept 2025
  • disclosed7 Jun 2025
  • creditUnknown

Introduced: 7 Jun 2025

CVE NOT AVAILABLE CWE-427  (opens in a new tab)

How to fix?

Upgrade ramalama to version 0.8.3 or higher.

Overview

ramalama is a RamaLama is a command line tool for working with AI LLM models.

Affected versions of this package are vulnerable to Uncontrolled Search Path Element via the add_site_packages_to_syspath('/usr/local'), which unconditionally appended /usr/local/lib/python*/site-packages to sys.path. A local attacker can exploit the deprecated bin/ramalama launcher by placing a malicious Python module in the user-writable /usr/local directory.

References

CVSS Base Scores

version 4.0
version 3.1