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

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 ID SNYK-PYTHON-SENTENCETRANSFORMERS-8161344
  • published 3 Oct 2024
  • disclosed 1 Oct 2024
  • credit Unknown

Introduced: 1 Oct 2024

CVE NOT AVAILABLE CWE-94 Open this link 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
Expand this section

Snyk

Recommended
8.3 high
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Attack Requirements (AT)
    Present
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    None
  • Confidentiality (VC)
    Low
  • Integrity (VI)
    High
  • Availability (VA)
    Low
  • Confidentiality (SC)
    None
  • Integrity (SI)
    None
  • Availability (SA)
    None