/

CVE-2026-116690

Severity:

HIGH RISK

(7.5)

Path Traversal (CWE-22) in MLflow Model Version API

CVE-2026-116690

Awaiting Analysis

Vulnerability type

Category:

Path Traversal

CWE:

CWE-22

Impact:

Arbitrary Local File Read

Severity:

HIGH RISK

(7.5)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

MLflow model-version handling can accept a schemeless relative path as an artifact location, allowing a server-local file path to be stored as model metadata. A remote caller may then use the artifact retrieval API to read files accessible to the MLflow server process, with exposure depending on authentication and model-creation permissions.

MLflow model-version handling can accept a schemeless relative path as an artifact location, allowing a server-local file path to be stored as model metadata. A remote caller may then use the artifact retrieval API to read files accessible to the MLflow server process, with exposure depending on authentication and model-creation permissions.

Affected context

The issue affects MLflow deployments in the impacted version range when model versions are created through the server API and their sources are processed by the prompt-specific path handling logic. Risk is higher when the MLflow server can access sensitive local files and exposes artifact retrieval functionality to unauthenticated or broadly authenticated users.

The issue affects MLflow deployments in the impacted version range when model versions are created through the server API and their sources are processed by the prompt-specific path handling logic. Risk is higher when the MLflow server can access sensitive local files and exposes artifact retrieval functionality to unauthenticated or broadly authenticated users.

Exploit preconditions

  • Attack surface: MLflow model-version creation and artifact retrieval APIs
  • Required access: No privileges on default unauthenticated deployments; authenticated access and permission to create registered models may be required when basic authentication is enabled
  • Trigger point: Processing a model version source followed by a request to retrieve its artifact
  • Why exploitation is possible: Path validation is applied only when a URL scheme is present, allowing a relative local path to bypass the intended restriction and reference files available to the server process
  • Attack surface: MLflow model-version creation and artifact retrieval APIs
  • Required access: No privileges on default unauthenticated deployments; authenticated access and permission to create registered models may be required when basic authentication is enabled
  • Trigger point: Processing a model version source followed by a request to retrieve its artifact
  • Why exploitation is possible: Path validation is applied only when a URL scheme is present, allowing a relative local path to bypass the intended restriction and reference files available to the server process

Why this happens

The underlying flaw is incomplete validation of user-controlled artifact paths. The application treats sources differently based on whether they contain a URL scheme, leaving schemeless relative paths outside the normal path-safety checks. In addition, prompt identification based on tag presence rather than a validated true value can place input on the vulnerable handling path. This behavior maps to CWE-22: Improper Limitation of a Pathname to a Restricted Directory, because attacker-influenced path data can escape the intended artifact-location constraints.

The underlying flaw is incomplete validation of user-controlled artifact paths. The application treats sources differently based on whether they contain a URL scheme, leaving schemeless relative paths outside the normal path-safety checks. In addition, prompt identification based on tag presence rather than a validated true value can place input on the vulnerable handling path. This behavior maps to CWE-22: Improper Limitation of a Pathname to a Restricted Directory, because attacker-influenced path data can escape the intended artifact-location constraints.

Potential impact

  • Sensitive local files may be disclosed through the artifact retrieval endpoint
  • Credentials, configuration data, or service tokens may be exposed
  • MLflow server confidentiality and tenant isolation could be weakened
  • Disclosed files could support follow-on compromise of connected systems
  • Sensitive local files may be disclosed through the artifact retrieval endpoint
  • Credentials, configuration data, or service tokens may be exposed
  • MLflow server confidentiality and tenant isolation could be weakened
  • Disclosed files could support follow-on compromise of connected systems

General mitigation guidance

Mitigation generally focuses on enforcing a single, secure artifact-location policy for every source format and reducing trust in client-supplied paths.

Common defensive patterns include:

  • Canonicalizing paths before validation and enforcing containment within approved artifact directories
  • Rejecting local filesystem paths when only managed artifact references are expected
  • Applying equivalent validation to schemeless, relative, absolute, and URL-based sources
  • Treating boolean-like metadata as validated values rather than relying on tag presence
  • Restricting artifact retrieval and model creation to authorized principals
  • Running MLflow with least-privilege filesystem access and isolated service credentials
  • Avoiding exposure of sensitive host paths to the MLflow process

Mitigation generally focuses on enforcing a single, secure artifact-location policy for every source format and reducing trust in client-supplied paths.

Common defensive patterns include:

  • Canonicalizing paths before validation and enforcing containment within approved artifact directories
  • Rejecting local filesystem paths when only managed artifact references are expected
  • Applying equivalent validation to schemeless, relative, absolute, and URL-based sources
  • Treating boolean-like metadata as validated values rather than relying on tag presence
  • Restricting artifact retrieval and model creation to authorized principals
  • Running MLflow with least-privilege filesystem access and isolated service credentials
  • Avoiding exposure of sensitive host paths to the MLflow process

How teams detect issues like this

Organizations can look for:

  • Static analysis findings where user-controlled model sources reach filesystem APIs without canonicalization and containment checks
  • Code review signals involving scheme-dependent validation, relative-path acceptance, or metadata checks based only on key presence
  • API monitoring for model versions whose sources reference local filesystem locations
  • Access logs showing unusual artifact retrieval requests or repeated reads across unrelated paths
  • Policy enforcement that limits artifact sources to approved URI schemes and managed storage locations

Automated security scanning and code-review tools can help identify inconsistent path validation and unsafe filesystem access patterns.

Organizations can look for:

  • Static analysis findings where user-controlled model sources reach filesystem APIs without canonicalization and containment checks
  • Code review signals involving scheme-dependent validation, relative-path acceptance, or metadata checks based only on key presence
  • API monitoring for model versions whose sources reference local filesystem locations
  • Access logs showing unusual artifact retrieval requests or repeated reads across unrelated paths
  • Policy enforcement that limits artifact sources to approved URI schemes and managed storage locations

Automated security scanning and code-review tools can help identify inconsistent path validation and unsafe filesystem access patterns.

Sources

SourceLink
github.comgithub.com/mlflow/mlflow/commit/81730a2ce4ebcd60d5d18f68c96f422ad7e30772
github.comgithub.com/mlflow/mlflow/pull/25870
github.comgithub.com/mlflow/mlflow/releases/tag/v3.17.0
github.comgithub.com/mlflow/mlflow/security/advisories/GHSA-m65p-9j7q-6w33

Frequently asked

questions

It can be remotely exploitable through MLflow APIs when the server exposes model-version creation and artifact retrieval functionality. The practical scope depends on authentication, authorization, and network exposure.

On default unauthenticated deployments, no prior privileges may be required. In basic-auth deployments, the caller generally needs authentication and permission to create registered models.

Apply canonicalization and strict containment checks to every artifact source, reject untrusted local paths, and restrict artifact retrieval to approved storage locations.

Use allowlisted artifact schemes, validate metadata values rather than key presence, enforce authorization at each relevant API, and run the service with minimal filesystem privileges.

It can be remotely exploitable through MLflow APIs when the server exposes model-version creation and artifact retrieval functionality. The practical scope depends on authentication, authorization, and network exposure.

On default unauthenticated deployments, no prior privileges may be required. In basic-auth deployments, the caller generally needs authentication and permission to create registered models.

Apply canonicalization and strict containment checks to every artifact source, reject untrusted local paths, and restrict artifact retrieval to approved storage locations.

Use allowlisted artifact schemes, validate metadata values rather than key presence, enforce authorization at each relevant API, and run the service with minimal filesystem privileges.

Find out what's already
exploitable in your codebase.