Description
A weakness has been identified in Ultralytics FastSAM up to b4ed20c2fed75eadc5aa7d8b09fedd137b873b52. This affects the function session.get_modelmeta.custom_metadata_map of the file ultralytics/nn/autobackend.py of the component AutoBackend Model Loading. This manipulation of the argument imgsz/names/kpt_shape causes improper neutralization of directives in dynamically evaluated code. The attack requires local access. This product uses a rolling release model to deliver continuous updates. As a result, specific version information for affected or updated releases is not available. The project was informed of the problem early through an issue report but has not responded yet.
Published: 2026-10-16
Score: 4.8 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Local code execution
Action: Assess Impact
AI Analysis

Impact

Ultralytics FastSAM contains a code‑execution flaw in the AutoBackend Model Loading component, specifically in the session.get_modelmeta.custom_metadata_map function. By manipulating the imgsz, names, or kpt_shape arguments the victim can influence the dynamic evaluation used by the library, causing unescaped code directives to be executed. The attack requires local access to the system running FastSAM and can allow an attacker to run arbitrary commands or modify system state on that host.

Affected Systems

The affected product is Ultralytics FastSAM, with vulnerability present up to the code commit b4ed20c2fed75eadc5aa7d8b09fedd137b873b52. The project follows a rolling model so no specific version numbers are explicitly listed as fixed or affected. Any deployment of FastSAM before the fix is released may be vulnerable.

Risk and Exploitability

The CVSS score of 4.8 indicates a moderate severity. The EPSS score < 1% indicates a very low exploitation probability, and the vulnerability is not listed in the CISA KEV catalog. Because the exploit requires local access and depends on user‑controlled input to the custom_metadata_map, the risk is confined to locally trusted or compromised hosts. In the absence of a patch, successful exploitation would allow an attacker with local privileges to execute arbitrary code on the affected machine.

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

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update FastSAM to the latest release that fixes the code evaluation issue as soon as it is available.
  • If a fix is not yet released, limit local access to the component that processes model metadata or run the service in a sandboxed environment to contain potential execution.
  • Sanitize or validate all custom_metadata_map parameters (imgsz, names, kpt_shape) to avoid passing unsafe code directives into dynamic evaluation before they are processed.

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

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 21 Oct 2026 02:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


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

Type Values Removed Values Added
Description A weakness has been identified in Ultralytics FastSAM up to b4ed20c2fed75eadc5aa7d8b09fedd137b873b52. This affects the function session.get_modelmeta.custom_metadata_map of the file ultralytics/nn/autobackend.py of the component AutoBackend Model Loading. This manipulation of the argument imgsz/names/kpt_shape causes improper neutralization of directives in dynamically evaluated code. The attack requires local access. This product uses a rolling release model to deliver continuous updates. As a result, specific version information for affected or updated releases is not available. The project was informed of the problem early through an issue report but has not responded yet.
Title Ultralytics FastSAM AutoBackend Model Loading autobackend.py session.get_modelmeta.custom_metadata_map eval injection
First Time appeared Ultralytics
Ultralytics fastsam
Weaknesses CWE-94
CWE-95
CPEs cpe:2.3:a:ultralytics:fastsam:*:*:*:*:*:*:*:*
Vendors & Products Ultralytics
Ultralytics fastsam
References
Metrics cvssV2_0

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

cvssV3_0

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

cvssV3_1

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

cvssV4_0

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


Subscriptions

Ultralytics Fastsam
cve-icon MITRE

Status: PUBLISHED

Assigner: VulDB

Published:

Updated: 2026-10-21T02:01:19.191Z

Reserved: 2026-10-15T18:25:36.595Z

Link: CVE-2026-111237

cve-icon Vulnrichment

Updated: 2026-10-21T02:01:15.212Z

cve-icon NVD

Status : Deferred

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

Modified: 2026-10-21T02:17:05.017

Link: CVE-2026-111237

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-17T14:00:09Z

Weaknesses
  • CWE-94

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

  • CWE-95

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