CVE-2026-68770: Vulnerability in Hugging Face Sentence-transformers
Critical. 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,...
PyPI, CWE-94
- Exploitation
- None confirmed
- Severity
- 9.3 of 10
- Attack likelihood
- Unknown
- Fix
- Fixed version known
- Patch deadline
- No deadline set
Details
- Advisory ID
- GHSA-jhr6-gm9c-rqjv
- Vector
- 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
- Weakness
- CWE-94
- Published
- 31 Jul 2026
- Last change
- 8 Nov 2026
- Ecosystem
- PyPI
Affected products
Affected versions and the first fixed release
- Hugging Face Sentence-transformers Version 0 ≤5.5.1. No fixed version recorded
Affected packages
Vulnerable version ranges and fixed releases
- sentence-transformers PyPI, Affected before 5.6.0. Fixed in 5.6.0
Advisories
Vendor and security advisories
- github.com/huggingface/sentence-transformers/issues/3801
- github.com/huggingface/sentence-transformers
Patches and fixes
Updates, commits and release notes
- github.com/huggingface/sentence-transformers/pull/3807
- github.com/huggingface/sentence-transformers/commit/ae1acc3fb2aa2004577b297eb4a915ce7a0...
Related
- Sentence-transformers vulnerabilities Recent advisories, watch this product