XML External Entity Injection in Elastic App Search

Check todaySensitive data exposure over the network, no login needed.
7.5HIGH

CVE-2021-22140

Key Information:

Vendor

Elastic

CVE ID
CVE ID:
CVE-2021-22140
Vendor
CVE Published:
13 May 2021

Timeline

  • Vulnerability published

  • Vulnerability Reserved

How risky is it?

  • Yes: Works over the network, no login needed
  • No: No public exploit yet
  • No: Not on CISA's exploited list
  • No: No ransomware use seen

Our verdict

Check today

Find out if you're affected. If you are, patch.

What to do

1Check the vendor's fix

No fixed version is recorded yet. The vendor advisory is the authoritative source for patches.

Read the vendor advisory β†—
2Can't patch yet? Reduce exposure

It can be reached over the network, so limit who can reach Elastic App Search. Block it from the internet, allow only trusted hosts or a VPN, and turn off the affected feature if you don't use it, until you can update.

3Why it's rated "Check today"
  • It can be exploited remotely without credentials.
  • Its CVSS severity is high (7.5).

What is CVE-2021-22140?

Elastic App Search contains a vulnerability in the web crawler beta feature that allows for an XML External Entity Injection (XXE). An attacker can leverage this flaw by crafting a malicious sitemap.xml while their website is being crawled. This may allow the attacker to traverse the filesystem of the host running the instance of App Search, potentially exposing sensitive files and data.

Affected Version(s)

Elastic App Search after 7.11.0 and before 7.12.0

References

Input Validation Flaw in Kibana

CVE-2026-0543
ElasticKibanaπŸ˜„6.5MEDIUM

Cross-site Scripting Vulnerability in Vega by Elastic

CVE-2025-68385
ElasticKibana7.2HIGH

Privilege Escalation in Elastic Cloud Enterprise

CVE-2025-37736
ElasticElastic Cloud Enterpri...8.8HIGH
View more Elastic vulnerabilities...

Facts on this page come from the sources listed above; the writeup is AI-assisted. How we rate vulnerabilities Β· Report a correction

CVSS V3.1

Score:
7.5
Severity:
HIGH
Confidentiality:
High
Integrity:
None
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
None
Scope:
Unchanged
.