CVE-2026-116692
Improper scorer deserialization lets attackers upload and execute arbitrary Python code via MLflow artifact endpoints.
- CVSS 9.8
- CWE-94
- Input Validation and Sanitization
- Remote
MLflow is an open source AI engineering platform for agents, large language models, and machine learning models. From 3.12.0rc0 until 3.17.0, third-party scorer deserialization in mlflow/genai/scorers/base.py accepts request-selected descendants of THIRD_PARTY_SCORER_ALLOWED_MODULES rather than requiring an exact allowed module. A caller can use MLflow artifact endpoints to place a Python module beneath a writable allowed package and submit its module and class through /ajax-api/3.0/mlflow/scorer/invoke. Scorer.model_validate_json() imports the module and constructs the class before trace processing. Authentication-disabled deployments permit this code execution without credentials, while basic-auth deployments require a principal capable of creating an experiment and run and uploading artifacts. In either configuration, the allowed scorer package must be writable by the server process. This issue is fixed in version 3.17.0.
- CWE
- CWE-94
- CVSS base score
- 9.8
- Published
- 2026-10-27
- OWASP
- A08 Software and Data Integrity Failures
- Orthogonal defect classification
- Timing/Serialization
- Code defect classification
- Serialization Issues
- Category
- Input Validation and Sanitization
- Subcategory
- Insecure Parsing or Deserialization
- Accessibility scope
- Remote
- Impact
- Arbitrary Code Execution
- Affected component
- MLflow
- Fixed by upgrading
- Yes
Solution
Upgrade MLflow to version 3.17.0 or later.
Vulnerable code sample
import importlib
# Simulated allowed scorer packages
THIRD_PARTY_SCORER_ALLOWED_MODULES = {"mlflow.scorers.third_party"}
def load_scorer(module_path: str, class_name: str):
"""
Load a scorer class from a module path supplied by the request.
"""
# VULNERABLE: accepts any submodule of an allowed package
if not any(module_path.startswith(allowed) for allowed in THIRD_PARTY_SCORER_ALLOWED_MODULES):
raise ValueError("Module not allowed")
module = importlib.import_module(module_path)
return getattr(module, class_name)()Patched code sample
import importlib
# Simulated allowed scorer packages
THIRD_PARTY_SCORER_ALLOWED_MODULES = {"mlflow.scorers.third_party"}
def load_scorer(module_path: str, class_name: str):
"""
Load a scorer class from a module path supplied by the request.
"""
# FIX: require exact allowed module, not descendants
if module_path not in THIRD_PARTY_SCORER_ALLOWED_MODULES:
raise ValueError("Module not allowed")
module = importlib.import_module(module_path)
return getattr(module, class_name)()Published fix
Public sources link this CVE to the changes below. The code samples above were generated to illustrate the defect; these links lead to the code the project actually changed.
- Match third-party scorer modules exactly instead of by package prefix (GHSA-26p8-2jq9-3vq9) (#25906) (mlflow/mlflow)
mlflow/genai/scorers/base.py · Scorer.model_validate,mlflow/genai/scorers/scorer_utils.py
Cite this entry
@misc{vaitp:cve2026116692,
title = {{Improper scorer deserialization lets attackers upload and execute arbitrary Python code via MLflow artifact endpoints.}},
author = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
year = {2026},
note = {VAITP Python Vulnerability Dataset, entry CVE-2026-116692},
howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2026-116692/}}
}
Introducing the "VAITP dataset": a specialized repository of Python vulnerabilities and patches, meticulously compiled for the use of the security research community. As Python's prominence grows, understanding and addressing potential security vulnerabilities become crucial. Crafted by and for the cybersecurity community, this dataset offers a valuable resource for researchers, analysts, and developers to analyze and mitigate the security risks associated with Python. Through the comprehensive exploration of vulnerabilities and corresponding patches, the VAITP dataset fosters a safer and more resilient Python ecosystem, encouraging collaborative advancements in programming security.
The supreme art of war is to subdue the enemy without fighting.
Sun Tzu – “The Art of War”
:: Shaping the future through research and ingenuity ::
