Browse / Unsafe Model Loading and Supply Chain / CVE-2024-27132
Cross-site Scripting in MLFlow
- Class
- Unsafe Model Loading and Supply Chain (filed by a model that read the advisory)
- Technique
- Cross-site scripting
- Affected
- mlflow (PyPI)
- CVSS
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
- EPSS
- 0.9% chance of exploitation in 30 days
How it works, in short
Running an untrusted MLflow recipe renders template variables without sanitisation, so script injected through them executes in the notebook client. (Our summary, written by a model. The source text is below.)
Details
Insufficient sanitization in MLflow leads to XSS when running an untrusted recipe.
This issue leads to a client-side RCE when running an untrusted recipe in Jupyter Notebook.
The vulnerability stems from lack of sanitization over template variables.
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-27132
- https://github.com/mlflow/mlflow/pull/10873
- https://github.com/mlflow/mlflow
- https://github.com/pypa/advisory-database/tree/main/vulns/mlflow/PYSEC-2024-240.yaml
- https://research.jfrog.com/vulnerabilities/mlflow-untrusted-recipe-xss-jfsa-2024-000631930
Source: GitHub Advisory Database, used under CC BY 4.0.