Improper Neutralization of Special Elements Used in a Template Engine Affecting mlflow package, versions [,2.9.2)
Threat Intelligence
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-PYTHON-MLFLOW-6117546
- published 12 Dec 2023
- disclosed 12 Dec 2023
- credit @kevin-mizu
Introduced: 12 Dec 2023
CVE-2023-6709 Open this link in a new tabHow to fix?
Upgrade mlflow
to version 2.9.2 or higher.
Overview
mlflow is a platform to streamline machine learning development, including tracking experiments, packaging code into reproducible runs, and sharing and deploying models.
Affected versions of this package are vulnerable to Improper Neutralization of Special Elements Used in a Template Engine. An attacker can execute arbitrary code or commands by injecting malicious input into the template system.
Note:
In order for this vulnerability to be exploited, the user must load a recipe configuration that he found on the internet.
PoC
import os
from mlflow.recipes import Recipe
os.chdir("./recipes")
regression_recipe = Recipe(profile="local")