{"data":{"id":"38b49eec-9520-43e8-a038-ea2498829b13","title":"GHSA-jhr6-gm9c-rqjv: sentence-transformers local model loading bypasses trust_remote_code and executes custom Python","summary":"sentence-transformers contains a logic flaw in the import_module_class helper in sentence_transformers/util/misc.py. Its guard includes an 'or os.path.exists(model_name_or_path)' clause, so a local path satisfies the trust gate even when trust_remote_code=False. An attacker who controls a model directory on disk can place malicious Python files such as modeling_*.py, referenced via modules.json, which execute at import time when an application calls SentenceTransformer(path, trust_remote_code=False).","solution":"N/A -- no mitigation discussed in source.","labels":["security"],"sourceUrl":"https://github.com/advisories/GHSA-jhr6-gm9c-rqjv","publishedAt":"2026-07-31T21:31:59.000Z","cveId":"CVE-2026-68770","cweIds":["CWE-94"],"cvssScore":"9.8","cvssSeverity":"critical","severity":"critical","attackType":["supply_chain"],"issueType":"vulnerability","affectedPackages":["sentence-transformers@< 5.6.0 (fixed: 5.6.0)"],"affectedPackageNames":["sentence-transformers"],"affectedPackageRefs":["pypi:sentence-transformers"],"affectedVendors":["HuggingFace"],"affectedVendorsRaw":["sentence-transformers"],"classifierModel":"claude-haiku-5-5","classifierPromptVersion":"v4","summaryPromptVersion":"v2","headline":null,"headlinePromptVersion":null,"cvssVector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","attackVector":"network","attackComplexity":"low","privilegesRequired":"none","userInteraction":"none","exploitMaturity":"unknown","epssScore":0.00647,"epssPercentile":0.52463,"epssCheckedAt":"2026-12-03T18:27:04.996Z","epssHistory":null,"epss30dChange":null,"exploitUrls":null,"patchCommitUrls":null,"ssvcExploitation":null,"nvdStatus":null,"referencesCheckedAt":null,"kevDateAdded":null,"advisoryAliases":["GHSA-jhr6-gm9c-rqjv"],"affectedPackagesSource":null,"affectedPackagesCheckedAt":null,"patchAvailable":true,"disclosureDate":"2026-07-31T21:31:59.000Z","fixReleasedAt":"2026-06-16T14:01:55.103Z","daysToFix":-45,"fixCheckedAt":"2026-12-03T18:30:43.255Z","capecIds":["CAPEC-242"],"crossRefCount":0,"attackSophistication":"moderate","impactType":["confidentiality","integrity","availability"],"aiComponentTargeted":"framework","llmSpecific":false,"classifierConfidence":0.93,"researchCategory":null,"atlasIds":["AML.T0010"],"openalexId":null,"openalexMatch":null,"openalexCheckedAt":null,"paperAuthors":null,"paperVenue":null,"paperVenueType":null,"paperYear":null,"paperDoi":null,"paperPublished":null,"paperOaUrl":null,"citedByCount":null,"codeUrls":null,"nvdFilled":null,"fixedVersions":["sentence-transformers@5.6.0"],"affectedPurls":["pkg:pypi/sentence-transformers"],"owaspLlmIds":["LLM03:2025"],"doi":null,"arxivId":null,"hasPublicExploit":null,"timeline":[{"event":"fix_released","date":"2026-06-16","source":"package_registry"},{"event":"published","date":"2026-07-31","source":"record_source"}],"provenance":{"fields":{"id":"pipeline","title":"source","summary":"model","solution":"model","labels":"model","sourceUrl":"source","publishedAt":"source","cveId":"source","cweIds":"source","cvssScore":"source","cvssSeverity":"source","severity":"source","attackType":"model","issueType":"source","affectedPackages":"source","affectedPackageNames":"source","affectedPackageRefs":"source","affectedVendors":"model","affectedVendorsRaw":"model","classifierModel":"pipeline","classifierPromptVersion":"pipeline","summaryPromptVersion":"pipeline","headline":"model","headlinePromptVersion":"pipeline","cvssVector":"source","attackVector":"source","attackComplexity":"source","privilegesRequired":"source","userInteraction":"source","exploitMaturity":"source","epssScore":"source","epssPercentile":"source","epssCheckedAt":"pipeline","epssHistory":"source","epss30dChange":"source","exploitUrls":"source","patchCommitUrls":"source","ssvcExploitation":"source","nvdStatus":"source","referencesCheckedAt":"pipeline","kevDateAdded":"source","advisoryAliases":"source","affectedPackagesSource":"pipeline","affectedPackagesCheckedAt":"pipeline","patchAvailable":"source","disclosureDate":"source","fixReleasedAt":"source","daysToFix":"source","fixCheckedAt":"pipeline","capecIds":"source","crossRefCount":"source","attackSophistication":"model","impactType":"model","aiComponentTargeted":"model","llmSpecific":"model","classifierConfidence":"model","atlasIds":"model","openalexId":"source","openalexMatch":"pipeline","openalexCheckedAt":"pipeline","paperAuthors":"source","paperVenue":"source","paperVenueType":"source","paperYear":"source","paperDoi":"source","paperPublished":"source","paperOaUrl":"source","citedByCount":"source","codeUrls":"source","nvdFilled":"pipeline","fixedVersions":"source","affectedPurls":"source","owaspLlmIds":"model","doi":"source","arxivId":"source","hasPublicExploit":"source","timeline":"source"},"model":{"classifier":"claude-haiku-5-5","classifierPromptVersion":"v4","summaryPromptVersion":"v2"}},"fixes":[{"ecosystem":"pypi","name":"sentence-transformers","fixedVersion":"5.6.0","matchedVersion":"5.6.0","fixReleasedAt":"2026-06-16T14:01:55.103Z","daysToFix":-45,"match":"ecosystem","source":"tracked","status":"found","checkedAt":"2026-12-03T18:30:43.254Z"}]}}