CVE-2021-22138: elastic elasticsearch Improper Certificate Validation
Vulnerability summary
CVE-2021-22138 is a medium (CVSS 4.3) Improper Certificate Validation vulnerability in elastic elasticsearch. EPSS estimates a 0.46% chance of exploitation in the next 30 days, higher than 41.5% of scored vulnerabilities.
Not severe (CVSS 3.7, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 13-05-2021PublishedVulnerability first disclosed.
- 03-08-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
2 scores · 1 source · 2 versionsEPSS trend
Probability
0.46%
Chance of exploitation in the next 30 days
Percentile
42%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.46% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Elastic2 products
- elasticsearchafter 6.4.0 and before 6.8.15 and 7.12.0
- logstash≥ 6.4.0, < 6.8.15 | ≥ 7.0.0, < 7.12.0
1 vendor · 2 products
References
2 links- discuss.elastic.co/t/elastic-stack-7-12-0-and-6-8-15-security-update/268125X Refsource MISCVendor Advisory