Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconIdentify exposed OpenMed PII endpoint
-
DeliveryPublish malicious HF repo named */*-privacy-filter-*
-
ExploitSubmit repo ID as model_name
-
InstallDispatcher substring-matches and trusts repo
-
C2Transformers loads auto_map with trust_remote_code=True
-
ExecuteAttacker Python executes in OpenMed process
-
ImpactExfiltrate PII and pivot
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that the target deployment runs OpenMed < 1.5.2 and exposes a code path that lets a remote caller supply the model_name parameter to the PII Privacy Filter dispatcher (the PrivacyFilterTorchPipeline / privacy-filter loading entry point); the attacker must control a Hugging Face repository whose name contains the substring 'privacy-filter' and ships a config.json or tokenizer_config.json with an auto_map referencing custom Python. The OpenMed host must have outbound network access to huggingface.co (or a mirror) to fetch the attacker's repo at load time. Per CVSS 4.0 PR:N/UI:N/AT:N no authentication, user interaction, or special attack requirements are needed; the principal limiting factor is whether the model_name parameter is reachable from an untrusted network surface in the specific deployment - installations that hardcode model_name to a trusted first-party repo or that gate the endpoint behind authentication are not exploitable in practice. |
| Impact | The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H) accurately reflects a network-reachable, no-prerequisite, no-user-interaction RCE that fully compromises confidentiality, integrity, and availability of the OpenMed process, justifying the 9.3 base score. The technical impact is total (full code execution as the service user), and exploitation is highly automatable since the attacker only needs to host a malicious HF repo whose name contains 'privacy-filter' and submit that name to the dispatcher. There is no EPSS score or CISA KEV listing in the provided data and no public exploit identified at time of analysis, so this is not (yet) evidence of mass in-the-wild activity; however, the trigger is trivial, the patch commit and release notes publicly describe the exact bypass, and the issue was disclosed by a credible vendor (VulnCheck), so weaponization risk in the short term is high and patching should be treated as urgent. |
| Exploit ScenarioDerived | An attacker publishes a Hugging Face repository named e.g. attacker/foo-privacy-filter-bar containing a config.json with an auto_map entry pointing at a malicious modeling_*.py file, then submits that repo ID as the model_name parameter to an internet-reachable OpenMed PII privacy-filter endpoint. The dispatcher's substring match treats it as a privacy-filter model and loads it with trust_remote_code=True, causing the attacker's Python to execute inside the OpenMed service process - yielding unauthenticated RCE, access to in-memory PHI/PII being filtered, and a pivot point into the surrounding environment. No public PoC has been published, but the patch notes describe the exact bypass and crafting one is straightforward. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv3 – Jun 02, 2026
Remote code execution in OpenMed before 1.5.2 allows unauthenticated attackers to execute arbitrary Python code on the OpenMed service by abusing broad substring matching in the PII privacy-filter model dispatcher to load attacker-controlled Hugging Face repositories with trust_remote_code=True. The flaw, reported by VulnCheck and tracked as CWE-94 (Code Injection), carries a CVSS 4.0 score of 9.3 and a vendor-released patch is available; no public exploit identified at time of analysis.
Earlier versions of this analysis (2)
Remote code execution in OpenMed before 1.5.2 allows unauthenticated attackers to execute arbitrary code as the service process by supplying a crafted Hugging Face model identifier that abuses the privacy-filter dispatcher's broad substring matching to reach a load path with trust_remote_code=True. The flaw, reported by VulnCheck and rated CVSS 9.3 (CVSS:4.0 AV:N/AC:L/PR:N/UI:N), carries no public exploit identified at time of analysis but is fully patched in the vendor-released 1.5.2.
Remote code execution in OpenMed before 1.5.2 allows unauthenticated attackers to execute arbitrary Python code on the host by supplying a crafted model_name parameter that abuses substring matching in the PII privacy-filter dispatcher to reach a Hugging Face load path with trust_remote_code=True. Reported by VulnCheck with a CVSS of 9.8 (AV:N/AC:L/PR:N/UI:N) and a vendor advisory plus patch in v1.5.2; no public exploit identified at time of analysis, but the trivial network reachability and absence of authentication make this a high-priority issue for any operator exposing OpenMed inference endpoints.
RemediationAI
Upgrade to the vendor-released patch OpenMed 1.5.2 (https://github.com/maziyarpanahi/openmed/releases/tag/v1.5.2), which is the authoritative fix landed via PR https://github.com/maziyarpanahi/openmed/pull/59 and commit https://github.com/maziyarpanahi/openmed/commit/98724f65df98d7518b9006e6356740aa36c2f224; 1.5.2 replaces substring matching with an explicit allowlist of first-party repos (openai/privacy-filter, OpenMed/privacy-filter-multilingual, OpenMed/privacy-filter-nemotron), flips PrivacyFilterTorchPipeline's trust_remote_code default to False, and fails fast for untrusted IDs. If you cannot upgrade immediately, prevent untrusted model_name values from reaching the privacy-filter dispatcher - restrict the endpoint behind authentication or a request filter that only permits the three first-party repo IDs above, and audit any code that constructs PrivacyFilterTorchPipeline with trust_remote_code=True (the trade-off is that legitimate custom fine-tunes will stop loading until allowlisted, which on 1.5.2 can be re-enabled per-deployment via the OPENMED_TRUSTED_REMOTE_CODE_MODELS environment variable). Additionally, run the OpenMed process as an unprivileged user with no outbound write access to model caches or secrets so that a successful exploit has minimal blast radius.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
OpenMed is a medical/healthcare-oriented Python application from maintainer maziyarpanahi (CPE cpe:2.3:a:maziyarpanahi:openmed) that ships a Privacy Filter pipeline for stripping PII from text using Hugging Face Transformers models. The vulnerable dispatcher decided whether a requested model belonged to the trusted 'privacy-filter' family using a broad substring match on the user-supplied model_name, so any repo identifier containing the substring 'privacy-filter' (e.g. attacker/foo-privacy-filter-bar) was treated as first-party and routed through a code path that instantiated the model with trust_remote_code=True. Hugging Face's trust_remote_code mechanism honors the auto_map entries in a repository's config.json or tokenizer_config.json, dynamically importing arbitrary Python modules shipped in the repo - the canonical CWE-94 (Improper Control of Generation of Code) sink - and executing them inside the loading process.
Know when Openmed gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Primary rating from Vendor (VulnCheck) · only source for this CVE.
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
3DescriptionCVE.org
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.
Executive ViewAI
OpenMed versions prior to 1.5.2 are vulnerable to unauthenticated remote code execution allowing attackers to execute arbitrary code on affected systems; no public exploit identified at time of analysis. This critical vulnerability requires emergency patching as it enables complete system compromise and represents a severe organizational risk.
Apply vendor patch. Upgrade to OpenMed version 1.5.2 or later immediately; no interim mitigations can protect against unauthenticated remote code execution in production environments.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
EUVD-2026-33942
GHSA-m3v4-v5gx-7wf5
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB