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.
CVE-2026-68770
Score 9.8 from GitHub Security Advisory (severity: CRITICAL) published 2026-07-31. The CNA's CVSS baseline 9.8; sources differ by 0.0.
- High severity, but no confirmed exploitation yet
A fix is available — apply it.
- CVSS v3
- 9.8
- EG Score
- 9.8CRITICALmedium confidence
- EG Risk
- 75EG Risk 75/100CISA SSVC
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity98% × 45%Exploitation40% × 40%Automatability100% × 15%CISA SSVC: Track at low, Track* at medium and Attend at high mission impact.Action: A fix is available. Apply it within your standard update timelines at low or medium mission impact and sooner than that at high. - EPSS PROB
- 0.9%
- EPSS %ILE
- 58th
- KEV
- Not listed
CISA SSVCTrack at low, Track* at medium and Attend at high mission impact.
A fix is available. Apply it within your standard update timelines at low or medium mission impact and sooner than that at high.
Exploitation public PoC (CISA Vulnrichment) · Automatable yes (CISA Vulnrichment) · Technical impact total (CISA Vulnrichment). Mission impact is CISA's Mission & Well-being decision point, and only you can judge it: high means the affected system is essential to your organisation's mission, or its compromise could cause irreversible harm to people. CISA's decision table
Published
July 31, 2026
Last Modified
September 24, 2026
Advisory Details (5)
Auto-updated Oct 1, 2026sentence-transformers Arbitrary Code Execution on Local Model Load Despite trust_remote_code=False | Advisories | VulnCheck
https://www.vulncheck.com/advisories/sentence-transformers-arbitrary-code-execution-on-local-model-load-despite-trust-remote-code-falsecommit ae1acc3fb2aa (huggingface/sentence-transformers)
Fix landed in huggingface/sentence-transformers commit ae1acc3fb2aa — awaiting tagged release
https://github.com/huggingface/sentence-transformers/commit/ae1acc3fb2aa2004577b297eb4a915ce7a03316aGitHub - huggingface/sentence-transformers: State-of-the-Art Embeddings, Retrieval, and Reranking · GitHub
https://github.com/huggingface/sentence-transformers[`deprecation`] Warn when loading local custom code without trust_remote_code
Fix merged in huggingface/sentence-transformers PR #3807 on 2026-06-12 — awaiting tagged release
https://github.com/huggingface/sentence-transformers/pull/3807Remote Code Execution via trust_remote_code=False Bypass (Code Injection Vulnerability) · Issue #3801 · huggingface/sentence-transformers · GitHub
https://github.com/huggingface/sentence-transformers/issues/3801Vendor Advisories for CVE-2026-68770(2)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
Patch Availability(1)
| Vendor / Ecosystem | Fix (by version range) / Patch | Released | Source |
|---|---|---|---|
| redhat | rhoai/odh-trustyai-nemo-guardrails-server-rhel9:1789570674 | 2026-09-30 | redhat |
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
Affected Packages
(1 across 1 ecosystem)
PyPI(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| sentence-transformers | 0.1.0 ... 5.5.1 (78 versions) |
| — |
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 23× in last 7d / 135× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
Showing the most recent 100 of 400 total refreshes for this CVE.
- 2026-10-04 23:50 UTCEG score recompute
- 2026-10-04 23:50 UTCVendor advisory
- 2026-10-04 23:22 UTCEPSS rescore
- 2026-10-04 12:29 UTCVendor advisory
- 2026-10-04 06:28 UTCEG score recompute
- 2026-10-04 06:28 UTCVendor advisory
- 2026-10-03 14:26 UTCEPSS rescore
- 2026-10-03 02:47 UTCEG score recompute
- 2026-10-03 02:47 UTCVendor advisory
- 2026-10-02 17:56 UTCEPSS rescore
- 2026-10-02 16:48 UTCEG score recompute
- 2026-10-02 16:48 UTCVendor advisory
- 2026-10-01 19:50 UTCEPSS rescore
- 2026-10-01 14:13 UTCVendor advisory
- 2026-10-01 10:23 UTCVendor advisory
- 2026-10-01 06:35 UTCVendor advisory
- 2026-10-01 02:46 UTCEG score recompute
- 2026-10-01 02:46 UTCVendor advisory
- 2026-09-30 15:03 UTCEPSS rescore
- 2026-09-29 06:49 UTCEG score recompute
- 2026-09-29 06:49 UTCGHSA enrichment
- 2026-09-28 13:52 UTCEPSS rescore
- 2026-09-28 10:58 UTCGHSA enrichment
- 2026-09-28 07:08 UTCGHSA enrichment
- 2026-09-28 02:52 UTCGHSA enrichment
Show 75 moreShow fewer
- 2026-09-27 18:38 UTCEG score recompute
- 2026-09-27 18:38 UTCGHSA enrichment
- 2026-09-27 13:48 UTCEPSS rescore
- 2026-09-26 15:59 UTCEPSS rescore
- 2026-09-25 09:21 UTCGHSA enrichment
- 2026-09-25 04:51 UTCGHSA enrichment
- 2026-09-24 15:00 UTCEG score recompute
- 2026-09-24 15:00 UTCGHSA enrichment
- 2026-09-24 09:50 UTCGHSA enrichment
- 2026-09-24 06:01 UTCGHSA enrichment
- 2026-09-24 01:16 UTCGHSA enrichment
- 2026-09-23 21:26 UTCEG score recompute
- 2026-09-23 21:26 UTCGHSA enrichment
- 2026-09-23 17:54 UTCEPSS rescore
- 2026-09-23 16:43 UTCGHSA enrichment
- 2026-09-23 09:00 UTCGHSA enrichment
- 2026-09-23 05:12 UTCGHSA enrichment
- 2026-09-23 01:23 UTCGHSA enrichment
- 2026-09-22 21:34 UTCEG score recompute
- 2026-09-22 21:34 UTCGHSA enrichment
- 2026-09-22 13:16 UTCGHSA enrichment
- 2026-09-22 07:35 UTCEG score recompute
- 2026-09-22 07:35 UTCGHSA enrichment
- 2026-09-21 21:09 UTCEPSS rescore
- 2026-09-20 21:13 UTCEG score recompute
- 2026-09-20 21:13 UTCGHSA enrichment
- 2026-09-20 20:16 UTCEPSS rescore
- 2026-09-20 11:09 UTCGHSA enrichment
- 2026-09-20 03:40 UTCGHSA enrichment
- 2026-09-19 23:41 UTCEG score recompute
- 2026-09-19 23:41 UTCGHSA enrichment
- 2026-09-19 15:01 UTCGHSA enrichment
- 2026-09-19 08:02 UTCGHSA enrichment
- 2026-09-19 03:58 UTCGHSA enrichment
- 2026-09-18 22:25 UTCEG score recompute
- 2026-09-18 22:25 UTCGHSA enrichment
- 2026-09-18 19:28 UTCEPSS rescore
- 2026-09-18 17:53 UTCGHSA enrichment
- 2026-09-18 13:30 UTCGHSA enrichment
- 2026-09-18 08:55 UTCGHSA enrichment
- 2026-09-18 05:04 UTCGHSA enrichment
- 2026-09-18 01:15 UTCEG score recompute
- 2026-09-18 01:15 UTCGHSA enrichment
- 2026-09-17 09:01 UTCGHSA enrichment
- 2026-09-17 05:12 UTCGHSA enrichment
- 2026-09-17 01:23 UTCEG score recompute
- 2026-09-17 01:23 UTCGHSA enrichment
- 2026-09-16 14:08 UTCEPSS rescore
- 2026-09-16 11:19 UTCGHSA enrichment
- 2026-09-16 05:27 UTCEG score recompute
- 2026-09-16 05:27 UTCGHSA enrichment
- 2026-09-16 05:15 UTCEPSS rescore
- 2026-09-15 07:06 UTCEG score recompute
- 2026-09-15 07:06 UTCGHSA enrichment
- 2026-09-15 03:00 UTCGHSA enrichment
- 2026-09-14 14:45 UTCGHSA enrichment
- 2026-09-14 10:56 UTCGHSA enrichment
- 2026-09-14 07:07 UTCGHSA enrichment
- 2026-09-14 03:19 UTCGHSA enrichment
- 2026-09-13 23:30 UTCGHSA enrichment
- 2026-09-13 19:41 UTCEG score recompute
- 2026-09-13 19:41 UTCGHSA enrichment
- 2026-09-13 15:12 UTCGHSA enrichment
- 2026-09-13 11:17 UTCGHSA enrichment
- 2026-09-13 07:28 UTCGHSA enrichment
- 2026-09-13 03:40 UTCGHSA enrichment
- 2026-09-12 23:51 UTCGHSA enrichment
- 2026-09-12 20:02 UTCGHSA enrichment
- 2026-09-12 16:13 UTCEG score recompute
- 2026-09-12 16:13 UTCGHSA enrichment
- 2026-09-12 12:24 UTCGHSA enrichment
- 2026-09-12 08:22 UTCGHSA enrichment
- 2026-09-12 04:27 UTCGHSA enrichment
- 2026-09-12 00:31 UTCGHSA enrichment
- 2026-09-11 18:45 UTCGHSA enrichment
Related CVEs(same vendor + same CWE)
Same vendor
10 shownredhat:RHSA-2026:73987
Frequently asked(5)
What is CVE-2026-68770?
When was CVE-2026-68770 disclosed?
Is CVE-2026-68770 actively exploited?
What is the CVSS score of CVE-2026-68770?
How do I remediate CVE-2026-68770?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2026-68770
Is Your Infrastructure Affected by CVE-2026-68770?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.