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.
Published: 2026-06-02
Score: 9.3 Critical
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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

No advisories yet.

History

Tue, 02 Jun 2026 17:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Tue, 02 Jun 2026 15:45:00 +0000

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'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-06-02T16:42:18.299Z

Reserved: 2026-05-18T19:22:26.749Z

Link: CVE-2026-47117

cve-icon Vulnrichment

Updated: 2026-06-02T16:35:15.715Z

cve-icon NVD

Status : Deferred

Published: 2026-06-02T16:16:43.980

Modified: 2026-06-02T17:18:19.573

Link: CVE-2026-47117

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-06-02T16:45:13Z

Weaknesses