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
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
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
- Received
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-68753An unauthenticated user may access restricted Artifactory co…5.3
- CVE-2026-68754A repository publisher without delete permission may modify …6.5
- CVE-2026-68755A bundle writer may create misleading release promotion info…4.3
- CVE-2026-68756A party with write access to stored session data may affect …6.6
- CVE-2026-68757A user with access to a valid SAML response may impersonate …7.5
- CVE-2026-68760An unauthenticated user may bypass authentication under spec…5.3
- 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.5
- CVE-2026-6878A vulnerability was identified in ByteDance verl up to 0.7.0…5.6
- CVE-2026-6879`Element.findall()` and fully-consumed `Element.iterfind()` …2
- CVE-2026-68792Improper neutralization of special elements used in a comman…7.8
- CVE-2026-68793Out-of-bounds read in Microsoft Office Excel allows an unaut…7.8
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
