Skip to main content

OpenMed EUVDEUVD-2026-33942

| CVE-2026-47117 CRITICAL
Code Injection (CWE-94)
2026-06-02 VulnCheck GHSA-m3v4-v5gx-7wf5
9.3
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Identify exposed OpenMed PII endpoint
  2. Delivery
    Publish malicious HF repo named */*-privacy-filter-*
  3. Exploit
    Submit repo ID as model_name
  4. Install
    Dispatcher substring-matches and trusts repo
  5. C2
    Transformers loads auto_map with trust_remote_code=True
  6. Execute
    Attacker Python executes in OpenMed process
  7. Impact
    Exfiltrate 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv3 – 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)
v2 Jun 02, 2026 - 16:28 cvss changed CVSS 9.3

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.

v1 Jun 02, 2026 - 16:00 CVSS 9.8

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

openmed 0 <1.5.2

Affected Packages

pypi openmed fix: 1.5.2

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

Vendor (VulnCheck) PRIMARY 9.3 CRITICAL
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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

3
Analysis Updated
Jun 02, 2026 - 16:28 vuln.today
v3 - CVSS changed
Analysis Updated
Jun 02, 2026 - 16:28 vuln.today
v2 - CVSS changed
CVSS changed
Jun 02, 2026 - 16:22 NVD
9.8 (CRITICAL) 9.3 (CRITICAL)

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

Why It Matters

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.

Business Impact: Severe
Compensating Controls

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

EPSS Score
0.2%
Top 53% exploitable
Threat Intel
1
1 source
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub VulDB

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Total

Priority Score

46
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +46
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

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.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy