Vulnerability · Published Jun 2, 2026 · Assigned by VulnCheck
CVE-2026-47117OpenMed < 1.5.2 Remote Code Execution via PII Model Loading
Critical 9.8
In plain English
A critical-severity code injection in openmed from maziyarpanahi. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.9% (higher than 60% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | openmed | 1.5.2 | GHSA-m3v4-v5gx-7wf5 |
| PyPI | openmed | 1.5.2 | PYSEC-2026-2852 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| maziyarpanahi | openmed | 0 – before 1.5.2 |
Weakness: CWE-94 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- Researcher Disclosure technical-description, exploit
- Release Notes release-notes
- Pull Request issue-tracking
- Patch Commit patch
- https://www.vulncheck.com/advisories/openmed-remote-code-execution-via-pii-model-loading third-party-advisory