CVE-2026-68770 sentence-transformers Arbitrary Code Execution on Local Model Load Despite trust_remote_code=False
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: total
- Technology
- Red Hat
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.
Upgrade path
17 packages: 2 fixed, 15 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| redhat/ansible-automation-platform-25/lightspeed-chatbot-rhel8(Red Hat ansible_automation_platform 2) | All versions | No fix listed | No fix yet |
| redhat/ansible-automation-platform-26/lightspeed-chatbot-rhel9(Red Hat ansible_automation_platform 2) | All versions | No fix listed | No fix yet |
| redhat/ansible-automation-platform-27/lightspeed-chatbot-rhel9(Red Hat ansible_automation_platform 2) | All versions | No fix listed | No fix yet |
| redhat/lightspeed-core/lightspeed-stack-rhel9(Red Hat lightspeed_core) | All versions | No fix listed | No fix yet |
| redhat/lightspeed-core/rag-tool-cpu-rhel9(Red Hat lightspeed_core) | All versions | No fix listed | No fix yet |
| redhat/lightspeed-core/rag-tool-cuda-12.9-rhel9(Red Hat lightspeed_core) | All versions | No fix listed | No fix yet |
| redhat/openshift-lightspeed/lightspeed-service-api-rhel9(Red Hat openshift_lightspeed 1) | All versions | No fix listed | No fix yet |
| redhat/rhelai3/bootc-cuda-rhel9(Red Hat enterprise_linux_ai 3) | All versions | No fix listed | No fix yet |
| redhat/rhelai3/bootc-gaudi-rhel9(Red Hat enterprise_linux_ai 3) | All versions | No fix listed | No fix yet |
| redhat/rhelai3/bootc-rocm-rhel9(Red Hat enterprise_linux_ai 3) | All versions | No fix listed | No fix yet |
| redhat/rhelai3/disk-image-cuda-rhel9(Red Hat enterprise_linux_ai 3) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-caikit-nlp-rhel9:1791448212(Red Hat openshift_ai 2.25 el9) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-openvino-model-server-rhel9(Red Hat openshift_ai) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-trustyai-nemo-guardrails-server-rhel9:1789570674(Red Hat openshift_ai 3.3 el9) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-trustyai-nemo-guardrails-server-rhel9:1791556128(Red Hat openshift_ai 3.4 el9) | All versions | No fix listed | No fix yet |
| pypi sentence-transformers | <= 5.5.1 | after 5.5.1 | Fixed |
| pypi sentence-transformers(PyPI) | < 5.6.0; = 0.1.0; = 0.2.0; = 0.2.1 +75 more | 5.6.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi sentence-transformers(PyPI) | < 5.6.0 | 5.6.0 |
| pypi sentence-transformers(PyPI) | = 0.1.0 | No fix listed |
| pypi sentence-transformers(PyPI) | = 0.2.0 | No fix listed |
| pypi sentence-transformers(PyPI) | = 0.2.1 | No fix listed |
| pypi sentence-transformers(PyPI) | = 0.2.2 | No fix listed |
| pypi sentence-transformers(PyPI) | = 0.2.3 | No fix listed |
| pypi sentence-transformers(PyPI) | = 0.2.4 | No fix listed |
| pypi sentence-transformers(PyPI) | = 0.2.4.1 | No fix listed |
| pypi sentence-transformers(PyPI) | = 0.2.5 | No fix listed |
| pypi sentence-transformers(PyPI) | = 0.2.5.1 | No fix listed |
| pypi sentence-transformers(PyPI) | = 0.2.6 | No fix listed |
| pypi sentence-transformers(PyPI) | = 0.2.6.1 | No fix listed |
| pypi sentence-transformers(PyPI) | = 0.2.6.2 | No fix listed |
| pypi sentence-transformers(PyPI) | = 0.3.0 | No fix listed |
| pypi sentence-transformers(PyPI) | = 0.3.1 | No fix listed |
| pypi sentence-transformers(PyPI) | = 0.3.2 | No fix listed |
| pypi sentence-transformers(PyPI) | = 0.3.3 | No fix listed |
| pypi sentence-transformers(PyPI) | = 0.3.4 | No fix listed |
| pypi sentence-transformers(PyPI) | = 0.3.5 | No fix listed |
| pypi sentence-transformers(PyPI) | = 0.3.5.1 | No fix listed |
| pypi sentence-transformers(PyPI) | = 0.3.6 | No fix listed |
| pypi sentence-transformers(PyPI) | = 0.3.7 | No fix listed |
| pypi sentence-transformers(PyPI) | = 0.3.7.1 | No fix listed |
| pypi sentence-transformers(PyPI) | = 0.3.7.2 | No fix listed |
| pypi sentence-transformers(PyPI) | = 0.3.8 | No fix listed |
Show 70 more
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi sentence-transformers(PyPI) | = 0.3.9 | No fix listed |
| pypi sentence-transformers(PyPI) | = 0.4.0 | No fix listed |
| pypi sentence-transformers(PyPI) | = 0.4.1 | No fix listed |
| pypi sentence-transformers(PyPI) | = 0.4.1.1 | No fix listed |
| pypi sentence-transformers(PyPI) | = 0.4.1.2 | No fix listed |
| pypi sentence-transformers(PyPI) | = 1.0.0 | No fix listed |
| pypi sentence-transformers(PyPI) | = 1.0.1 | No fix listed |
| pypi sentence-transformers(PyPI) | = 1.0.2 | No fix listed |
| pypi sentence-transformers(PyPI) | = 1.0.3 | No fix listed |
| pypi sentence-transformers(PyPI) | = 1.0.4 | No fix listed |
| pypi sentence-transformers(PyPI) | = 1.1.0 | No fix listed |
| pypi sentence-transformers(PyPI) | = 1.1.1 | No fix listed |
| pypi sentence-transformers(PyPI) | = 1.2.0 | No fix listed |
| pypi sentence-transformers(PyPI) | = 1.2.1 | No fix listed |
| pypi sentence-transformers(PyPI) | = 2.0.0 | No fix listed |
| pypi sentence-transformers(PyPI) | = 2.1.0 | No fix listed |
| pypi sentence-transformers(PyPI) | = 2.2.0 | No fix listed |
| pypi sentence-transformers(PyPI) | = 2.2.1 | No fix listed |
| pypi sentence-transformers(PyPI) | = 2.2.2 | No fix listed |
| pypi sentence-transformers(PyPI) | = 2.3.0 | No fix listed |
| pypi sentence-transformers(PyPI) | = 2.3.1 | No fix listed |
| pypi sentence-transformers(PyPI) | = 2.4.0 | No fix listed |
| pypi sentence-transformers(PyPI) | = 2.5.0 | No fix listed |
| pypi sentence-transformers(PyPI) | = 2.5.1 | No fix listed |
| pypi sentence-transformers(PyPI) | = 2.6.0 | No fix listed |
| pypi sentence-transformers(PyPI) | = 2.6.1 | No fix listed |
| pypi sentence-transformers(PyPI) | = 2.7.0 | No fix listed |
| pypi sentence-transformers(PyPI) | = 3.0.0 | No fix listed |
| pypi sentence-transformers(PyPI) | = 3.0.1 | No fix listed |
| pypi sentence-transformers(PyPI) | = 3.1.0 | No fix listed |
| pypi sentence-transformers(PyPI) | = 3.1.1 | No fix listed |
| pypi sentence-transformers(PyPI) | = 3.2.0 | No fix listed |
| pypi sentence-transformers(PyPI) | = 3.2.1 | No fix listed |
| pypi sentence-transformers(PyPI) | = 3.3.0 | No fix listed |
| pypi sentence-transformers(PyPI) | = 3.3.1 | No fix listed |
| pypi sentence-transformers(PyPI) | = 3.4.0 | No fix listed |
| pypi sentence-transformers(PyPI) | = 3.4.1 | No fix listed |
| pypi sentence-transformers(PyPI) | = 4.0.0 | No fix listed |
| pypi sentence-transformers(PyPI) | = 4.0.1 | No fix listed |
| pypi sentence-transformers(PyPI) | = 4.0.2 | No fix listed |
| pypi sentence-transformers(PyPI) | = 4.1.0 | No fix listed |
| pypi sentence-transformers(PyPI) | = 5.0.0 | No fix listed |
| pypi sentence-transformers(PyPI) | = 5.1.0 | No fix listed |
| pypi sentence-transformers(PyPI) | = 5.1.1 | No fix listed |
| pypi sentence-transformers(PyPI) | = 5.1.2 | No fix listed |
| pypi sentence-transformers(PyPI) | = 5.2.0 | No fix listed |
| pypi sentence-transformers(PyPI) | = 5.2.1 | No fix listed |
| pypi sentence-transformers(PyPI) | = 5.2.2 | No fix listed |
| pypi sentence-transformers(PyPI) | = 5.2.3 | No fix listed |
| pypi sentence-transformers(PyPI) | = 5.3.0 | No fix listed |
| pypi sentence-transformers(PyPI) | = 5.4.0 | No fix listed |
| pypi sentence-transformers(PyPI) | = 5.4.1 | No fix listed |
| pypi sentence-transformers(PyPI) | = 5.5.0 | No fix listed |
| pypi sentence-transformers(PyPI) | = 5.5.1 | No fix listed |
| pypi sentence-transformers | <= 5.5.1 | No fix listed |
| redhat/rhoai/odh-caikit-nlp-rhel9:1791448212(Red Hat:openshift_ai:2.25::el9) | All versions | No fix listed |
| redhat/rhoai/odh-trustyai-nemo-guardrails-server-rhel9:1789570674(Red Hat:openshift_ai:3.3::el9) | All versions | No fix listed |
| redhat/rhoai/odh-trustyai-nemo-guardrails-server-rhel9:1791556128(Red Hat:openshift_ai:3.4::el9) | All versions | No fix listed |
| redhat/lightspeed-core/lightspeed-stack-rhel9(Red Hat:lightspeed_core) | All versions | No fix listed |
| redhat/lightspeed-core/rag-tool-cpu-rhel9(Red Hat:lightspeed_core) | All versions | No fix listed |
| redhat/lightspeed-core/rag-tool-cuda-12.9-rhel9(Red Hat:lightspeed_core) | All versions | No fix listed |
| redhat/openshift-lightspeed/lightspeed-service-api-rhel9(Red Hat:openshift_lightspeed:1) | All versions | No fix listed |
| redhat/ansible-automation-platform-25/lightspeed-chatbot-rhel8(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/ansible-automation-platform-26/lightspeed-chatbot-rhel9(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/ansible-automation-platform-27/lightspeed-chatbot-rhel9(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/rhelai3/bootc-cuda-rhel9(Red Hat:enterprise_linux_ai:3) | All versions | No fix listed |
| redhat/rhelai3/bootc-gaudi-rhel9(Red Hat:enterprise_linux_ai:3) | All versions | No fix listed |
| redhat/rhelai3/bootc-rocm-rhel9(Red Hat:enterprise_linux_ai:3) | All versions | No fix listed |
| redhat/rhelai3/disk-image-cuda-rhel9(Red Hat:enterprise_linux_ai:3) | All versions | No fix listed |
| redhat/rhoai/odh-openvino-model-server-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- GitHub Issue exploit issue-tracking
- Pull Request patch vendor-advisory
- github.com patch
- github.com patch
- Patch Commit patch
- Product Repository product
- github.com
- github.com
- www.vulncheck.com third-party-advisory
- pypi.org product
- github.com vendor-advisory
- Red Hat CVE page mitigation vendor-advisory
- RHSA-2026:87410 patch vendor-advisory
- RHSA-2026:73987 patch vendor-advisory
- RHSA-2026:84734 patch vendor-advisory
- Red Hat Bugzilla 2509932 issue-tracking
- www.cve.org
- ENISA EUVD EUVD-2026-51650 third-party-advisory