CVE-2026-68770 — Vulnerability in sentence-transformers — CVE Details
sentence-transformers local model loading bypasses trust_remote_code and executes custom Python
Summary
Advisory Timeline
- First published July 31, 2026 (73 days ago).
- Last revised October 1, 2026 — 62 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
pip install "sentence-transformers>=5.6.0"
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: pypi (1).
| Package | Ecosystem | Affected | Fixed In |
|---|---|---|---|
| sentence-transformers | pypi | 0.1.0, 0.2.0, 0.2.1, 0.2.2 (+74 more) | 5.6.0 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-94Code InjectionMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-68770ADVISORY
- https://github.com/huggingface/sentence-transformers/issues/3801WEB
- https://github.com/huggingface/sentence-transformers/pull/3807WEB
- https://github.com/huggingface/sentence-transformers/pull/3935WEB
- https://github.com/huggingface/sentence-transformers/commit/626eb602b088878a8173bcab69225f68411b99e1WEB
- https://github.com/huggingface/sentence-transformers/commit/ae1acc3fb2aa2004577b297eb4a915ce7a03316aWEB
- https://github.com/huggingface/sentence-transformersPACKAGE
- https://github.com/huggingface/sentence-transformers/releases/tag/v5.6.0WEB
- https://github.com/huggingface/sentence-transformers/releases/tag/v6.0.0WEB
- https://www.vulncheck.com/advisories/sentence-transformers-arbitrary-code-execution-on-local-model-load-despite-trust-remote-code-falseWEB
Frequently Asked Questions
- What is CVE-2026-68770?
- sentence-transformers local model loading bypasses trust_remote_code and executes custom Python This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
- How do I check if my project is affected by CVE-2026-68770?
- CVE-2026-68770 affects sentence-transformers. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-68770 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation is straightforward and causes maximum impact. Patch immediately.
Also Known As
Related CVEs
- CVE-2026-61447CRITICAL
PraisonAI: CodeAgent Executes LLM-Generated Code Without Sandboxing and Leaks All Environment Secrets
- CVE-2026-61445CRITICAL
PraisonAI: AICoder Arbitrary File Write and Command Execution via LLM Tool Calls
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies