BreachSpiderVerified, not vibes

CVE-2021-22145 in Elasticsearch and 1 more product

Medium 6.5 Public exploit reported

A memory disclosure vulnerability was identified in Elasticsearch 7.10.0 to 7.13.3 error reporting. A user with the ability to submit arbitrary queries to Elasticsearch could submit a malformed query that would result in an error message returned containing previously used portions of a data buffer. This buffer coul...

Affects 2 products from 2 vendors. Facts below cite their sources.

CVSS 3.16.5
EPSS76.2%
EPSS percentile100th
FixSee advisory

Remotely exploitable over the network, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, no integrity impact, no availability impact.

Affected products and versions

VendorProductAffected versions
Elastic Elasticsearch ≥ 7.10.0, ≤ 7.13.3
Oracle Communications Cloud Native Core Automated Test Suite 1.8.0

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

View Vendor Advisory →

Vendor PSIRT: [email protected]

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitReported · reference

Official description

A memory disclosure vulnerability was identified in Elasticsearch 7.10.0 to 7.13.3 error reporting. A user with the ability to submit arbitrary queries to Elasticsearch could submit a malformed query that would result in an error message returned containing previously used portions of a data buffer. This buffer could contain sensitive information such as Elasticsearch documents or authentication details.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2021-22145
BreachSpider IDBS-2021-GLOBAL-248369-M
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Published2021-07-21
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-200: Exposure of Sensitive Information

Application reveals restricted data such as system internals, credentials, or user data to unauthorized actors.

CWE-209: CWE-209

Related attack patterns (CAPEC)

CAPEC-7 Blind SQL Injection via CWE-209

CAPEC-13 Subverting Environment Variable Values via CWE-200

CAPEC-59 Session Credential Falsification through Prediction via CWE-200

CAPEC-60 Reusing Session IDs (aka Session Replay) via CWE-200

CAPEC-79 Using Slashes in Alternate Encoding via CWE-200

Show all 63

CAPEC-215 Fuzzing for application mapping via CWE-209

CAPEC-285 ICMP Echo Request Ping via CWE-200

CAPEC-287 TCP SYN Scan via CWE-200

CAPEC-290 Enumerate Mail Exchange (MX) Records via CWE-200

CAPEC-291 DNS Zone Transfers via CWE-200

CAPEC-293 Traceroute Route Enumeration via CWE-200

CAPEC-294 ICMP Address Mask Request via CWE-200

CAPEC-295 Timestamp Request via CWE-200

CAPEC-296 ICMP Information Request via CWE-200

CAPEC-297 TCP ACK Ping via CWE-200

CAPEC-298 UDP Ping via CWE-200

CAPEC-299 TCP SYN Ping via CWE-200

CAPEC-301 TCP Connect Scan via CWE-200

CAPEC-302 TCP FIN Scan via CWE-200

CAPEC-303 TCP Xmas Scan via CWE-200

CAPEC-304 TCP Null Scan via CWE-200

CAPEC-305 TCP ACK Scan via CWE-200

CAPEC-306 TCP Window Scan via CWE-200

CAPEC-307 TCP RPC Scan via CWE-200

CAPEC-308 UDP Scan via CWE-200

CAPEC-310 Scanning for Vulnerable Software via CWE-200

CAPEC-317 IP ID Sequencing Probe via CWE-200

CAPEC-318 IP 'ID' Echoed Byte-Order Probe via CWE-200

CAPEC-319 IP (DF) 'Don't Fragment Bit' Echoing Probe via CWE-200

CAPEC-320 TCP Timestamp Probe via CWE-200

CAPEC-321 TCP Sequence Number Probe via CWE-200

CAPEC-322 TCP (ISN) Greatest Common Divisor Probe via CWE-200

CAPEC-323 TCP (ISN) Counter Rate Probe via CWE-200

CAPEC-324 TCP (ISN) Sequence Predictability Probe via CWE-200

CAPEC-325 TCP Congestion Control Flag (ECN) Probe via CWE-200

CAPEC-326 TCP Initial Window Size Probe via CWE-200

CAPEC-327 TCP Options Probe via CWE-200

CAPEC-328 TCP 'RST' Flag Checksum Probe via CWE-200

CAPEC-329 ICMP Error Message Quoting Probe via CWE-200

CAPEC-330 ICMP Error Message Echoing Integrity Probe via CWE-200

CAPEC-463 Padding Oracle Crypto Attack via CWE-209

CAPEC-472 Browser Fingerprinting via CWE-200

CAPEC-508 Shoulder Surfing via CWE-200

CAPEC-643 Identify Shared Files/Directories on System via CWE-200

CAPEC-54 Query System for Information via CWE-209

CAPEC-292 Host Discovery via CWE-200

CAPEC-300 Port Scanning via CWE-200

CAPEC-309 Network Topology Mapping via CWE-200

CAPEC-312 Active OS Fingerprinting via CWE-200

CAPEC-313 Passive OS Fingerprinting via CWE-200

CAPEC-497 File Discovery via CWE-200

CAPEC-573 Process Footprinting via CWE-200

CAPEC-574 Services Footprinting via CWE-200

CAPEC-575 Account Footprinting via CWE-200

CAPEC-576 Group Permission Footprinting via CWE-200

CAPEC-577 Owner Footprinting via CWE-200

CAPEC-616 Establish Rogue Location via CWE-200

CAPEC-646 Peripheral Footprinting via CWE-200

CAPEC-651 Eavesdropping via CWE-200

CAPEC-22 Exploiting Trust in Client via CWE-200

CAPEC-116 Excavation via CWE-200

CAPEC-169 Footprinting via CWE-200

CAPEC-224 Fingerprinting via CWE-200

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

{ "executive_summary": "A memory disclosure vulnerability in Elasticsearch versions 7.10.0 to 7.13.3 allows users with the ability to submit arbitrary queries to potentially access sensitive information from error messages.", "attack_vector_detail": "An attacker can exploit this vulnerability by submitting a malformed query to Elasticsearch. The error response may include portions of a data buffer that could contain sensitive data such as Elasticsearch documents or authentication details.", "affected_components": ["Elasticsearch 7.10.0", "Elasticsearch 7.10.1", "Elasticsearch 7.10.2", "Elasticsearch 7.11.0", "Elasticsearch 7.11.1", "Elasticsearch 7.11.2", "Elasticsearch 7.12.0", "Elasticsearch 7.12.1", "Elasticsearch 7.13.0", "Elasticsearch 7.13.1", "Elasticsearch 7.13.2", "Elasticsearch 7.13.3"], "exploitation_likelihood": "MEDIUM

Vulnerability details: A memory disclosure vulnerability was identified in Elasticsearch 7.10.0 to 7.13.3 error reporting. A user with the ability to submit arbitrary queries to Elasticsearch could submit a malformed query that would result in an error message returned containing previously used portions of a data buffer. This buffer could contain sensitive information such as Elasticsearch documents or authentication details. CVSS vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N.

Questions

What is CVE-2021-22145?

{ "executive_summary": "A memory disclosure vulnerability in Elasticsearch versions 7.10.0 to 7.13.3 allows users with the ability to submit arbitrary queries to potentially access sensitive information from error messages.", "attack_vector_detail": "An attacker can exploit this vulnerability by submitting a malformed query to Elasticsearch. The error response may include portions of a data buffer that could contain sensitive data such as Elasticsearch documents or authentication details.",

What is the CVSS score for CVE-2021-22145?

CVE-2021-22145 has CVSS 6.5 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N. EPSS: 76.2%.

Is CVE-2021-22145 actively exploited?

Public exploit available for CVE-2021-22145. Exploitation risk elevated.

How do I remediate CVE-2021-22145?

Priority: MONITOR. Advisory: https://discuss.elastic.co/t/elasticsearch-7-13-4-security-update/279177 PSIRT: [email protected]

What systems are affected by CVE-2021-22145?

CVE-2021-22145 affects Elastic Elasticsearch; Oracle Communications Cloud Native Core Automated Test Suite.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Elastic","product":"Elasticsearch","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.