# CVE-2021-22138: In Logstash versions after 6.4.0 and before 6.8.15 and 7.12.0 a TLS certificate validation flaw was found in the monitoring feature.

- Severity: Low 3.7 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.46%, higher than 41% of CVEs (2026-12-01)
- Published: 2021-05-13T17:35:19.000Z
- Modified: 2026-09-08T08:48:09.364Z
- Also known as: BIT-LOGSTASH-2021-22138
- Weaknesses: CWE-295
- Assigned by: elastic

## Description

In Logstash versions after 6.4.0 and before 6.8.15 and 7.12.0 a TLS certificate validation flaw was found in the monitoring feature. When specifying a trusted server CA certificate Logstash would not properly verify the certificate returned by the monitoring server. This could result in a man in the middle style attack against the Logstash monitoring data.

(As written by CVE List.)

## Affected

- Elastic Elasticsearch: after 6.4.0 and before 6.8.15 and 7.12.0
- elastic logstash: from 6.4.0 before 6.8.15; from 7.0.0 before 7.12.0
- logstash (Bitnami): from 6.4.0 before 6.8.15; from 7.0.0 before 7.12.0

## Every score

- NVD: CVSS:3.1 3.7 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:P/I:N/A:N`
- Bitnami Vulnerability Database: rating Low

## References

- <https://discuss.elastic.co/t/elastic-stack-7-12-0-and-6-8-15-security-update/268125> (advisory, vendor-advisory)
- <https://security.netapp.com/advisory/ntap-20210629-0001/> (advisory, third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-22138> (web)

## Sources

- CVE List: [CVE-2021-22138](https://www.cve.org/CVERecord?id=CVE-2021-22138), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-22138](https://nvd.nist.gov/vuln/detail/CVE-2021-22138), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-LOGSTASH-2021-22138](https://osv.dev/vulnerability/BIT-LOGSTASH-2021-22138), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2021-22138 · Whole record: https://cve.day/CVE-2021-22138.json · Rebuilt by cve.day 2026-11-25T22:58:01.333Z
