Security Control Bypass in SentenceTransformers by Hugging Face
CVE-2026-68770

9.3CRITICAL

Key Information:

Vendor
CVE Published:
31 July 2026

What is CVE-2026-68770?

A security control bypass vulnerability in SentenceTransformers allows arbitrary code execution by exploiting a logic flaw in the import_module_class helper. This occurs when the guard condition improperly allows execution if the specified model path exists locally, disregarding the trust_remote_code=False argument. Attackers with the ability to affect model directory contents can place malicious Python files, enabling unauthorized code execution during model loading. Properly securing the local model directory is crucial to mitigate this risk.

Affected Version(s)

sentence-transformers 0 <= 5.5.1

References

CVSS V4

Score:
9.3
Severity:
CRITICAL
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
None

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

Bofei Chen
.