Vulnerabilities in pkg:pypi/openmed

PACKAGE
Advisory Identifier: GHSA-m3v4-v5gx-7wf5
Advisory Summary

CVE-2026-47117 is a CRITICAL (CVSS 9.8) openmed vulnerable to remote code vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Openmed libraries in the PyPI ecosystem. The issue involves openmed vulnerable to remote code injection through privacy-filter model loading path. Remediation is available by upgrading affected packages to version 1.5.2.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/openmed

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:pypi/openmed. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-m3v4-v5gx-7wf5 CVE-2026-47117 CRITICAL OpenMed vulnerable to remote code injection through privacy-filter model loading path

CVE-2026-47117 at a Glance

CVE Identifier CVE-2026-47117
GHSA Identifier GHSA-m3v4-v5gx-7wf5
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification CWE-94: Improper Control of Generation of Code ('Code Injection')
Affected Product Openmed
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 9.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2026-47117

To remediate this vulnerability, upgrade all affected Openmed dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

openmed fixed: 1.5.2
pip install openmed>=1.5.2
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show openmed

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2026-47117, inspect your installed packages using pip:

pip show openmed

Analyze the terminal output to locate any version of Openmed in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.5.2), your application is affected.

Note: The pip show openmed command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. In Openmed, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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.

CVE-2026-47117 Affected Openmed Versions

1 component(s)
Fixed Versions:
1.5.2
Product / Package Ecosystem Affected Versions Fixed Version
openmed
PyPI
< 1.5.2
1.5.2

References

Frequently Asked Questions

What is CVE-2026-47117?
CVE-2026-47117 is a security vulnerability in Openmed involving OpenMed vulnerable to remote code injection through privacy-filter model loading path under CWE-94: Improper Control of Generation of Code ('Code Injection').
Which Openmed versions are affected?
Affected versions include releases prior to 1.5.2 across affected packages: openmed.
What version fixes CVE-2026-47117?
Upgrading to 1.5.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is openmed affected?
Yes, openmed is affected in releases prior to 1.5.2. Upgrade your dependency to 1.5.2 or later.
What is the CVSS score of CVE-2026-47117?
CVE-2026-47117 has a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2026-47117?
CVE-2026-47117 is classified under CWE-94: Improper Control of Generation of Code ('Code Injection') (The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.).
How can I check PyPI dependencies for CVE-2026-47117?
Run the dependency tree command: 'pip show openmed'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-m3v4-v5gx-7wf5",
  "modified" : "2026-06-30T21:42:32Z",
  "published" : "2026-06-02T18:31:33Z",
  "aliases" : [ "CVE-2026-47117" ],
  "summary" : "OpenMed vulnerable to remote code injection through privacy-filter model loading path",
  "details" : "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.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  }, {
    "type" : "CVSS_V4",
    "score" : "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"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "openmed"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.5.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-47117"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/maziyarpanahi/openmed/pull/59"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/maziyarpanahi/openmed/commit/98724f65df98d7518b9006e6356740aa36c2f224"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/maziyarpanahi/openmed/releases/tag/v1.5.2"
  }, {
    "type" : "WEB",
    "url" : "https://www.vulncheck.com/advisories/openmed-remote-code-execution-via-pii-model-loading"
  }, {
    "type" : "PACKAGE",
    "url" : "github.com/maziyarpanahi/openmed"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-94" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-06-30T21:42:32Z",
    "nvd_published_at" : "2026-06-02T16:16:43Z"
  }
}