Description
A security flaw has been discovered in ImprintLab Medical-SAM-Adapter 0.1.0-alpha/0.1.0. Affected by this issue is the function session.get_modelmeta.custom_metadata_map of the file models/MobileSAMv2/ultralytics/nn/autobackend.py of the component AutoBackend Model Loading. The manipulation of the argument imgsz/names/kpt_shape results in improper neutralization of directives in dynamically evaluated code. The attack requires a local approach. The exploit has been released to the public and may be used for attacks. The project was informed of the problem early through an issue report but has not responded yet.
Published: 2026-10-16
Score: 2.4 Low
EPSS: < 1% Very Low
KEV: No
Impact: Local code execution
Action: Patch if available
AI Analysis

Impact

The flaw lies in the custom_metadata_map function of ImprintLab Medical‑SAM‑Adapter. An attacker who can influence the imgsz, names, or kpt_shape parameters can craft input that is not properly neutralized before being passed to Python’s eval. This allows injection of arbitrary code during model loading, giving the attacker the ability to run any command on the host system with the privileges of the adapter process.

Affected Systems

ImprintLab Medical‑SAM‑Adapter version 0.1.0‑alpha and 0.1.0 are affected. No patch version is listed, and the project has not issued a fix yet.

Risk and Exploitability

With a CVSS score of 2.4 the vulnerability is considered low severity by the metric, and the EPSS score of 0.00115 indicates a very low probability of exploitation. The exploit is local: an attacker must have enough access to supply the vulnerable inputs. A publicly disclosed exploit can be used by such an attacker, but gaining local access is a prerequisite. The risk therefore remains moderate for environments where the adapter runs with high privileges or is exposed to untrusted input.

Generated by OpenCVE AI on October 16, 2026 at 15:11 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply any ImprintLab Medical‑SAM‑Adapter update that removes the eval usage or hard‑codes safe defaults for imgsz, names, and kpt_shape.
  • Validate and sanitize the values supplied to imgsz, names, and kpt_shape, allowing only numerical or known safe patterns and rejecting any expression syntax.
  • Run the Medical‑SAM‑Adapter inside a sandboxed container or with the least privileges possible so that even if code injection succeeds, its reach is limited to the application’s restricted environment.

Generated by OpenCVE AI on October 16, 2026 at 15:11 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 16 Oct 2026 17:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Fri, 16 Oct 2026 01:00:00 +0000

Type Values Removed Values Added
Description A security flaw has been discovered in ImprintLab Medical-SAM-Adapter 0.1.0-alpha/0.1.0. Affected by this issue is the function session.get_modelmeta.custom_metadata_map of the file models/MobileSAMv2/ultralytics/nn/autobackend.py of the component AutoBackend Model Loading. The manipulation of the argument imgsz/names/kpt_shape results in improper neutralization of directives in dynamically evaluated code. The attack requires a local approach. The exploit has been released to the public and may be used for attacks. The project was informed of the problem early through an issue report but has not responded yet.
Title ImprintLab Medical-SAM-Adapter AutoBackend Model Loading autobackend.py session.get_modelmeta.custom_metadata_map eval injection
First Time appeared Imprintlab
Imprintlab medical-sam-adapter
Weaknesses CWE-94
CWE-95
CPEs cpe:2.3:a:imprintlab:medical-sam-adapter:*:*:*:*:*:*:*:*
Vendors & Products Imprintlab
Imprintlab medical-sam-adapter
References
Metrics cvssV2_0

{'score': 4.3, 'vector': 'AV:L/AC:L/Au:S/C:P/I:P/A:P/E:POC/RL:ND/RC:C'}

cvssV3_0

{'score': 4.8, 'vector': 'CVSS:3.0/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L/E:P/RL:X/RC:C'}

cvssV3_1

{'score': 4.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L/E:P/RL:X/RC:C'}

cvssV4_0

{'score': 2.4, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P'}


Subscriptions

Imprintlab Medical-sam-adapter
cve-icon MITRE

Status: PUBLISHED

Assigner: VulDB

Published:

Updated: 2026-10-16T16:28:09.956Z

Reserved: 2026-10-15T18:13:22.343Z

Link: CVE-2026-111212

cve-icon Vulnrichment

Updated: 2026-10-16T16:28:04.200Z

cve-icon NVD

Status : Deferred

Published: 2026-10-16T03:18:03.650

Modified: 2026-10-16T19:21:14.417

Link: CVE-2026-111212

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-23T09:30:11Z

Weaknesses
  • CWE-94

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

  • CWE-95

    Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')