Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2026-68770— sentence-transformers Arbitrary Code Execution on Local Model Load Despite trust_remote_code=False

Quick assessment

Affected
Hugging Face sentence-transformers
Exploitation
Public or AI PoC available; prioritize validation
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Hugging Face Sentence Transformers是Hugging Face公司的一款计算句子向量表示的模型库。 Hugging Face Sentence Transformers 5.5.1及之前版本存在代码注入漏洞,该漏洞源于sentence_transformers/util/misc.py中import_module_class辅助函数存在逻辑缺陷,导致即使设置trust_remote_code=False,攻击者仍可通过控制模型目录内容放置恶意Python文件,在加载模型时实

CVSS 9.8 · Critical EPSS 0.52% · P42

Affected Version Matrix 1

VendorProduct Version RangeStatus
Hugging Face sentence-transformers ≤ 5.5.1 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-68770

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
sentence-transformers Arbitrary Code Execution on Local Model Load Despite trust_remote_code=False
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
对生成代码的控制不恰当(代码注入)
Source: CVE Program / CVE List V5
Vulnerability Title
Hugging Face Sentence Transformers 代码注入漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Hugging Face Sentence Transformers是Hugging Face公司的一款计算句子向量表示的模型库。 Hugging Face Sentence Transformers 5.5.1及之前版本存在代码注入漏洞,该漏洞源于sentence_transformers/util/misc.py中import_module_class辅助函数存在逻辑缺陷,导致即使设置trust_remote_code=False,攻击者仍可通过控制模型目录内容放置恶意Python文件,在加载模型时实
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
Hugging Face sentence-transformers 0 ~ 5.5.1 -

II. Public POCs for CVE-2026-68770

# POC Description Source Link Shenlong Link
AI-Generated POC Premium
Qwen3.6-35B-A3B · 7889 chars
Pro+ exclusive includes:
Vulnerability reproduction recording (real sandbox build + trigger, exclusive)
In-depth vulnerability mechanism
Trigger conditions & impact
Full executable POC code
Exploit chain & mitigation
POC zip download
100+ AI POC generations per month

III. Intelligence Information for CVE-2026-68770

登录查看更多情报信息。

Patches & Fixes for CVE-2026-68770 (2)

Vendor Advisories for CVE-2026-68770 (1)

Other References for CVE-2026-68770 (2)

IV. Related Vulnerabilities

V. Comments for CVE-2026-68770

No comments yet


Leave a comment