Elasticsearch is a search server based on Lucene. The old versions of ElasticSearch support passing in dynamic scripts (MVEL) to perform some complex operations, and MVEL can execute Java code, and there is no sandbox, so a user can directly execute arbitrary code.
Mitigation / Precaution
- In order to patch this vulnerability, we suggest you to update ElasticSearch to the latest version.
- We recommend you to configure ‘script.disable_dynamic: true’ in elasticsearch.yml.
Automated human-like penetration testing for your web apps & APIs
Teams using Beagle Security are set up in minutes, embrace release-based CI/CD security testing and save up to 65% with timely remediation of vulnerabilities. Sign up for a free account to see what it can do for you.