home / blog
2026-11-26 · critical
CVE-2017-12629: Remote Code Execution in Apache Solr
Apache Solr vulnerable to remote code execution via XXE exploitation combined with Config API.

CVE-2017-12629 is a critical vulnerability affecting Apache Solr, allowing remote code execution on vulnerable systems. The flaw exploits a combination of XML External Entity (XXE) in the XML Query Parser with the use of Config API add-listener to reach the RunExecutableListener class, enabling an attacker to execute arbitrary commands on the Solr server.
The vulnerability has a CVSS score of 9.8, classifying it as 'critical'. According to official NVD data, published on October 14, 2017, the vulnerability exists in all versions of Apache Solr before 7.1. Recently, public repositories on GitHub have been reported to contain exploits for this vulnerability.
To protect yourself, it is essential to update Apache Solr to version 7.1 or later. For unsupported versions, mitigation includes disabling the XML Query Parser or configuring security policies to prevent XML external entity expansion. It is also recommended to implement strict access controls for the Config API and active monitoring to detect exploitation attempts.
At a glance
- What
- Remote code execution vulnerability in Apache Solr before version 7.1, exploiting XXE in conjunction with Config API add-listener to reach the RunExecutableListener class.
- Severity
- CVSS 9.8 (Critical). Severity confirmed by official data.
- Affected versions
- Apache Solr before version 7.1. Elasticsearch, although it uses Lucene, is NOT vulnerable.
- Fix
- Update to Apache Solr version 7.1 or later. The vulnerability has been fixed in this version.
- Status
- Published on 10/14/2017. Public exploits reported on GitHub repositories.
- Action
- Immediate verification of the Solr version in use and update to version 7.1 or later. Monitor for suspicious activity.
Sources: NVD, CVE-2017-12629