Arbitrary Code Execution Affecting sentence-transformers package, versions [,3.1.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment made 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 Learn

Learn about Arbitrary Code Execution vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-SENTENCETRANSFORMERS-8161344
  • published3 Oct 2024
  • disclosed1 Oct 2024
  • creditUnknown

Introduced: 1 Oct 2024

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

How to fix?

Upgrade sentence-transformers to version 3.1.0 or higher.

Overview

sentence-transformers is a State-of-the-Art Text Embeddings

Affected versions of this package are vulnerable to Arbitrary Code Execution when loading PyTorch model files. The torch.load() function, used without the weights_only=True parameter, could deserialize malicious Python objects from manipulated model files.

References

CVSS Scores

version 4.0
version 3.1