CVE-2026-68770
Last modified
CVE-2026-68770 is a critical-severity vulnerability rated 9.8/10 on the CVSS scale. sentence-transformers contains a security control bypass vulnerability that allows attackers to achieve arbitrary code execution by exploiting a logic flaw in the import_module_class helper within sentence_transformers/util/misc.py, where the guard condition includes an 'or os.path.exists(model_name_or_path)' clause that satisfies the trust gate whenever the supplied path exists on the local filesystem, regardless of the trust_remote_code=False argument. Attackers who can control or influence the contents of a model directory on disk can place malicious Python files such as modeling_*.py referenced via modules.json, causing the code to execute at import time when an application loads the model with SentenceTransformer(path, trust_remote_code=False), bypassing the documented security contract and achieving code execution within the loading process.. EPSS estimates a 0.52% chance of exploitation in the next 30 days.
Description
sentence-transformers contains a security control bypass vulnerability that allows attackers to achieve arbitrary code execution by exploiting a logic flaw in the import_module_class helper within sentence_transformers/util/misc.py, where the guard condition includes an 'or os.path.exists(model_name_or_path)' clause that satisfies the trust gate whenever the supplied path exists on the local filesystem, regardless of the trust_remote_code=False argument. Attackers who can control or influence the contents of a model directory on disk can place malicious Python files such as modeling_*.py referenced via modules.json, causing the code to execute at import time when an application loads the model with SentenceTransformer(path, trust_remote_code=False), bypassing the documented security contract and achieving code execution within the loading process.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| Hugging Face | sentence-transformers | <= 5.5.1 |
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2026-68770?
How severe is CVE-2026-68770?
How do I fix CVE-2026-68770?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-68763Uncontrolled Resource Consumption vulnerability in Apache To…7.5
- CVE-2026-68765hashcat master branch builds after v7.1.2 contain a heap buf…6.1
- CVE-2026-68766hashcat fails to restrict command-line options when parsing …7.8
- CVE-2026-68767hashcat's fgetl() function in src/filehandling.c writes a nu…6.1
- CVE-2026-68768hashcat contains a heap-based buffer overflow (out-of-bounds…6.1
- CVE-2026-68769Rejected reason: This CVE ID has been rejected or withdrawn …
- CVE-2026-68771ComfyUI v0.23.0 contains an unsafe deserialization vulnerabi…9.8
- CVE-2026-68772ZenML 0.94.6 contains a remote code execution vulnerability …8
- CVE-2026-68775Heap-based buffer overflow in SQL Server allows an authorize…8.8
- CVE-2026-68776Use of uninitialized resource in SQL Server allows an author…6.5
- CVE-2026-68777Out-of-bounds read in SQL Server allows an authorized attack…6.5
- CVE-2026-68778Out-of-bounds read in SQL Server allows an authorized attack…6.5
Are you affected by CVE-2026-68770?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
