# CVE-2026-47117: OpenMed < 1.5.2 Remote Code Execution via PII Model Loading

> Unauthenticated attackers can execute arbitrary code by supplying a malicious model name that triggers remote code execution during model loading.

- **Severity:** Critical 9.3 (`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`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 2 Jun 2026
- **Updated:** 8 Oct 2026
- **Also known as:** GHSA-m3v4-v5gx-7wf5, PYSEC-2026-2852

## What is CVE-2026-47117?

CVE-2026-47117 is a critical code injection vulnerability in maziyarpanahi openmed, published on 2 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

### 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.

Weakness: CWE-94 (Improper Control of Generation of Code)

## Which versions are affected by CVE-2026-47117?

3 open source packages ship an affected version, including openmed.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `openmed` | PyPI | All versions | 1.5.2 |
| `openmed` | PyPI | All versions | 1.5.2 |
| `openmed` | PyPI | All versions | 1.5.2 |

## How do I fix CVE-2026-47117?

Upgrade openmed to 1.5.2 or later.

## Is CVE-2026-47117 being exploited?

There is no known exploitation of CVE-2026-47117 in the wild and no public exploit code.

Public exploit code:

- OpenMed < 1.5.2 unauthenticated RCE via PII privacy-filter model loading and trust_remote_code=True (github_poc): https://github.com/SaiTeja-Erukude/CVE-2026-47117-openmed-rce

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-47117 and fix it if it is affected.

What it is: CVE-2026-47117 is a critical code injection vulnerability in maziyarpanahi openmed, published on 2 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2026-47117 in the wild and no public exploit code.

Affected packages and fixed versions:
- openmed (PyPI): affected all versions; fixed in 1.5.2
- openmed (PyPI): affected all versions; fixed in 1.5.2
- openmed (PyPI): affected all versions; fixed in 1.5.2

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-47117/ (Markdown: https://insights.sbomify.com/CVE-2026-47117/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-47117
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-47117
- OSV: https://osv.dev/vulnerability/CVE-2026-47117

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-47117/
Summaries are generated and may contain mistakes; the official description above is the record.
