OpenMed < 1.5.2 Remote Code Execution via PII Model Loading
OpenMed before 1.5.2 contains a remote code execution vulnerability in the PII privacy-filter model loading path. The privacy-filter dispatcher used broad substring matching on the user-supplied model_name parameter, allowing a value such as attacker/foo-privacy-filter-bar to route through a path that loads Hugging Face models with trust_remote_code=True. An unauthenticated attacker can supply a malicious model repository containing custom Transformers code via auto_map in config.json or tokenizer_config.json, which is imported and executed with the privileges of the OpenMed service process.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-47117
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 09:46 UTC · Revision 1
Source evidence
OpenMed < 1.5.2 Remote Code Execution via PII Model Loading
core-osv · Original sourcePublished 2 Jun 2026, 14:15 UTC
OpenMed before 1.5.2 contains a remote code execution vulnerability in the PII privacy-filter model loading path. The privacy-filter dispatcher used broad substring matching on the user-supplied model_name parameter, allowing a value such as attacker/foo-privacy-filter-bar to route through a path that loads Hugging Face models with trust_remote_code=True. An unauthenticated attacker can supply a malicious model repository containing custom Transformers code via auto_map in config.json or tokenizer_config.json, which is imported and executed with the privileges of the OpenMed service process.
osv:CVE-2026-47117
Complete source record
{
"id": "bbaa8ffb24606d4148399c2d23c95139c0216a00a6bb464cb8527f8fdc047999",
"url": "https://osv.dev/vulnerability/CVE-2026-47117",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "OpenMed < 1.5.2 Remote Code Execution via PII Model Loading",
"summary": "OpenMed before 1.5.2 contains a remote code execution vulnerability in the PII privacy-filter model loading path. The privacy-filter dispatcher used broad substring matching on the user-supplied model_name parameter, allowing a value such as attacker/foo-privacy-filter-bar to route through a path that loads Hugging Face models with trust_remote_code=True. An unauthenticated attacker can supply a malicious model repository containing custom Transformers code via auto_map in config.json or tokenizer_config.json, which is imported and executed with the privileges of the OpenMed service process.",
"evidence": "osv:CVE-2026-47117",
"products": [],
"severity": "critical",
"structured": {
"id": "CVE-2026-47117",
"aliases": [
"CVE-2026-47117",
"GHSA-m3v4-v5gx-7wf5",
"PYSEC-2026-2852"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/maziyarpanahi/openmed",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "6d094a0f70b42cbfb44e70d7e42b65dcd63feb72"
},
{
"fixed": "98724f65df98d7518b9006e6356740aa36c2f224"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "1.5.2"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
},
{
"range": [
{
"fixed": "6d094a0f70b42cbfb44e70d7e42b65dcd63feb72"
}
],
"source": "REFERENCES_TAG",
"original_tag": "v1.5.2"
},
{
"range": [
{
"fixed": "98724f65df98d7518b9006e6356740aa36c2f224"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"v1.5.0",
"v1.4.0",
"v1.3.0",
"v1.2.0",
"v1.1.0",
"v1.0.0",
"v0.6.4",
"v0.6.3",
"v0.6.2",
"v0.6.1",
"v0.6.0",
"v0.5.8",
"v0.5.7",
"v0.5.6",
"v0.5.5",
"v0.5.1",
"v0.5.0",
"v0.4.0",
"v0.3.0",
"v0.2.2",
"v0.2.1",
"v0.2.0",
"v0.2.0-rc2",
"v0.2.0-rc1",
"v0.1.10",
"v0.1.10-rc1",
"v0.1.9",
"v0.1.9-rc1",
"v0.1.8",
"v0.1.8-rc2",
"v0.1.8-rc",
"v0.1.7",
"v0.1.6",
"0.1.5"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-47117.json"
}
}
],
"modified": "2026-10-28T02:30:27.876339856Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/47xxx/CVE-2026-47117.json",
"https://github.com/maziyarpanahi/openmed/releases/tag/v1.5.2",
"https://nvd.nist.gov/vuln/detail/CVE-2026-47117",
"https://www.vulncheck.com/advisories/openmed-remote-code-execution-via-pii-model-loading",
"https://github.com/maziyarpanahi/openmed/pull/59",
"https://github.com/maziyarpanahi/openmed/commit/98724f65df98d7518b9006e6356740aa36c2f224",
"https://github.com/maziyarpanahi/openmed",
"https://github.com/SaiTeja-Erukude/CVE-2026-47117-openmed-rce"
],
"provider_metadata": {
"cwe_ids": [
"CWE-94"
],
"cna_assigner": "VulnCheck",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/47xxx/CVE-2026-47117.json"
}
},
"related_cves": [
{
"value": "CVE-2026-47117",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 494262,
"published_at": "2026-06-02T14:15:17.898+00:00"
}