CVE-2025-15710: Elasticsearch Arbitrary File Read via Malicious Machine Learning Model
An issue was discovered in Elasticsearch where a specially crafted machine learning model could read files accessible to the machine learning native inference process. An authenticated attacker with the manageml privilege could upload and deploy a malicious trained model and invoke inference to read files outside their authorized model access, potentially exposing sensitive information within the operating-system permissions of the inference process.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 8.17.7 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 8.18.2 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 9.0.2
Event History
Frequently Asked Questions
Who can exploit this issue?
An attacker must be authenticated and have the manage_ml privilege. They also need to be able to upload and deploy a specially crafted trained machine learning model and invoke inference.
What data could be exposed?
The malicious model can read files accessible to the machine learning native inference process, including files outside the attacker's authorized model access. Exposure is limited by the operating-system permissions of that inference process.
Are deployments without machine learning model upload and inference capabilities affected?
The described attack requires uploading and deploying a malicious trained model and invoking inference. Environments where an attacker cannot perform those actions with manage_ml privilege are not exposed through the described attack path.