CVE-2026-68770
Reported by vulncheck · Published July 31, 2026
sentence-transformers is fixed in 5.6.0 (PyPI)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| sentence-transformers | PyPI | 5.6.0 |
| open-webui | Wolfi | 0.11.4-r2 |
| open-webui | Chainguard | 0.11.4-r2 |
| sentence-transformers | Hugging Face | 5.5.1 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Hugging Face | sentence-transformers | 0 |
| wolfi | open-webui | 0 |
| chainguard | open-webui | 0 |
| Hugging Face | sentence-transformers | 0 |
| PyPI | sentence-transformers | 0 |
| huggingface | transformers | 0 |
Timeline
- Jul 31, 2026 CVE Published
- Aug 1, 2026 Coalition ESS Score
- Aug 2, 2026 EPSS Score (27 in total, the first dated here)
- Oct 8, 2026 CVE Updated
- Oct 30, 2026 Security Advisory
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-68770
vulnetix vdb fixes CVE-2026-68770
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-68770/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- GitHub Issue issue-tracking
- Pull Request vendor-advisory
- Product Repository product
- Patch Commit patch
- third-party-advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-68770 advisory
- https://github.com/advisories/GHSA-jhr6-gm9c-rqjv advisory
- https://github.com/huggingface/sentence-transformers/pull/3935 patch
- https://github.com/huggingface/sentence-transformers/commit/626eb602b088878a8173bcab69225f68411b99e1 patch
- https://github.com/huggingface/sentence-transformers/releases/tag/v5.6.0 url
- https://github.com/huggingface/sentence-transformers/releases/tag/v6.0.0 url