A flaw allowing arbitrary code execution was discovered in Kibana. An attacker with access to ML and Alerting connector features, as well as write access to internal ML indices can trigger a prototype pollution vulnerability, ultimately leading to arbitrary code execution.
https://discuss.elastic.co/t/kibana-8-14-2-7-17-23-security-update-esa-2024-22/