CVE-2026-47117

OpenMed < 1.5.2 Remote Code Execution via PII Model Loading

Published Jun 2, 2026 CVSS 4.0 · 9.3 Critical EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

OpenMed versions prior to 1.5.2 are vulnerable to remote code execution when a user supplies a model_name that contains a slash. The privacy‑filter dispatcher performs a broad substring match on this parameter, allowing values such as attacker/foo-privacy-filter-bar to be interpreted as a path that loads Hugging Face models with trust_remote_code enabled. An unauthenticated attacker can upload a malicious repository that includes custom Transformers code in auto_map or tokenizer_config.json; that code is imported and executed with the privileges of the OpenMed process. This flaw enables an attacker to run arbitrary code, compromising confidentiality, integrity, and availability of the affected system.

Affected Systems

The issue affects the OpenMed project by maziyarpanahi in all releases before version 1.5.2. No specific sub‑versions are listed beyond the pre‑1.5.2 boundary.

Risk and Exploitability

The flaw has a CVSS score of 9.3, indicating Critical severity, and is exploitable by any unauthenticated user who can send a request with a crafted model_name. The EPSS score is not available, and the vulnerability is not yet listed in CISA’s KEV catalog. The wide latitude of the substring match and the implicit trust_remote_code flag create a clear attack vector that requires no authentication or privileged input, making exploitation highly likely if the software remains unpatched.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the OpenMed 1.5.2 patch or later to eliminate the vulnerable dispatcher logic
  • If immediate upgrade is not possible, restrict allowed model_name values to a whitelist of known safe identifiers and disable trust_remote_code for model loading
  • Configure the application firewall or reverse proxy to block unauthenticated access to the model loading endpoint and monitor for suspicious requests

Generated by OpenCVE AI on June 2, 2026 at 16:39 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-m3v4-v5gx-7wf5 OpenMed vulnerable to remote code injection through privacy-filter model loading path
History
Type Values Removed Values Added
First Time appeared Maziyarpanahi
Maziyarpanahi openmed
Vendors & Products Maziyarpanahi
Maziyarpanahi openmed
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title OpenMed < 1.5.2 Remote Code Execution via PII Model Loading
Weaknesses CWE-94
References
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 9.3, 'vector': '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'}

Weaknesses
  • CWE-94

    Improper Control of Generation of Code ('Code Injection')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 8, 2026, 2:04 PM
Reserved
May 18, 2026, 7:22 PM
Status
Deferred
Published
Jun 2, 2026, 4:16 PM
Modified
Oct 8, 2026, 4:17 PM